From de2d8600b213761dbafdaa23832295f58dede97c Mon Sep 17 00:00:00 2001 From: dragon <3013557874@qq.com> Date: Tue, 9 Jul 2024 09:38:50 +0800 Subject: [PATCH] =?UTF-8?q?=E7=82=B9=E5=8D=95=E6=9A=82=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- view/molistar/modules/order/js/index.js | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/view/molistar/modules/order/js/index.js b/view/molistar/modules/order/js/index.js index e8bb7b0..f5a1017 100644 --- a/view/molistar/modules/order/js/index.js +++ b/view/molistar/modules/order/js/index.js @@ -40,31 +40,16 @@ $(function () { } }; // 頂部返回事件 - // $('.back img').click(() => { - // if (browser.android) { - // window.androidJsObj.closeWebView() - // } else { - // window.webkit.messageHandlers.closeWebView.postMessage(null) - // } - // }) - // 頂部返回事件 $('.back img').click(() => { - var productId = '我是字符串' if (browser.android) { - window.androidJsObj.openPayment(productId) + window.androidJsObj.closeWebView() } else { - window.webkit.messageHandlers.openPayment.postMessage(productId) + window.webkit.messageHandlers.closeWebView.postMessage(null) } }) }, 100) -}) -function openPaymentCallback(obj) { - console.log('回调对象', obj); - console.log('回调orderId', obj.orderId); - console.log('回调code', obj.code); - console.log('回调productId', obj.productId); -} +}) function getRecords() { showLoading() networkRequest({