From b4d9fadea6810f85b007980ad39b379df4a18dc4 Mon Sep 17 00:00:00 2001 From: handongxun Date: Thu, 21 Nov 2019 12:06:59 +0800 Subject: [PATCH] =?UTF-8?q?update:=20runtime=20web-view=20=E6=94=AF?= =?UTF-8?q?=E6=8C=81nvue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/uni.webview.1.5.2.js | 2 +- .../app-plus/runtime/web-view-api.js | 33 +++++++++++++++++-- src/platforms/app-plus/runtime/web-view.js | 12 ++++--- 3 files changed, 39 insertions(+), 8 deletions(-) diff --git a/dist/uni.webview.1.5.2.js b/dist/uni.webview.1.5.2.js index ddb1c36db..8708892fd 100644 --- a/dist/uni.webview.1.5.2.js +++ b/dist/uni.webview.1.5.2.js @@ -1 +1 @@ -!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e=e||self).uni=n()}(this,function(){"use strict";function i(e,n){var i={options:{timestamp:+new Date},name:e,arg:n};if(!window.plus)return window.parent.postMessage({type:s,data:i,pageId:""},"*");if(0===d.length){var t=plus.webview.currentWebview();if(!t)throw new Error("plus.webview.currentWebview() is undefined");var a=t.parent(),r="";r=a?a.id:t.id,d.push(r)}var o=JSON.stringify(i);plus.webview.getWebviewById(u)?plus.webview.postMessageToUniNView({type:s,args:{data:i,webviewIds:d}},u):plus.webview.getLaunchWebview().evalJS('UniPlusBridge.subscribeHandler("'.concat(s,'",').concat(o,",").concat(JSON.stringify(d),");"))}var d=[],u="__uniapp__service",s="WEB_INVOKE_APPSERVICE",n={navigateTo:function(e){var n=(0