瀏覽代碼

添加支付宝返回时关闭webview

lex-xin 4 年之前
父節點
當前提交
43857e8d6d

文件差異過大導致無法顯示
+ 0 - 0
dist/app.73a7bba53d432ac04244.js


二進制
dist/app.73a7bba53d432ac04244.js.gz


二進制
dist/app.dd88a3c4c98cc26bbec9.js.gz


文件差異過大導致無法顯示
+ 0 - 0
dist/css/PaymentResult.be54624c.css


文件差異過大導致無法顯示
+ 0 - 0
dist/index.html


文件差異過大導致無法顯示
+ 0 - 0
dist/js/PaymentResult.162f013f.js


二進制
dist/js/PaymentResult.162f013f.js.gz


文件差異過大導致無法顯示
+ 0 - 0
dist/js/PaymentResult.ad6ebe6c.js


二進制
dist/js/PaymentResult.ad6ebe6c.js.gz


+ 3 - 1
src/views/PaymentResult.vue

@@ -105,7 +105,9 @@ export default {
                 const ua = window.navigator.userAgent.toLowerCase()
                 if (ua.match(/MicroMessenger/i) == 'micromessenger') {
                     WeixinJSBridge.call('closeWindow')
-                } else {
+                } else if(ua.indexOf("alipay")!=-1) {
+					AlipayJSBridge.call('closeWebview'); // 支付宝浏览器
+				} else {
                     const examId = localStorage.getItem("examId")
                     const organId = localStorage.getItem("organId")
                     // window.location.replace(

部分文件因文件數量過多而無法顯示