From ddb8fddf6849dc1e18ff94a2a276a4b5388e9e8c Mon Sep 17 00:00:00 2001 From: lf <1534621107@qq.com> Date: Wed, 24 Jul 2024 16:41:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=8B=E6=9C=BA=E9=93=B6=E8=A1=8C=E5=94=A4?= =?UTF-8?q?=E8=B5=B7=E5=BE=AE=E4=BF=A1=E5=B0=8F=E7=A8=8B=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- combining.html | 11 +++++++++++ packkey/combining.html | 11 +++++++++++ packkey/reduce.html | 12 ++++++++++++ reduce.html | 15 +++++++++++++++ xw-pages/reduce.html | 11 +++++++++++ xw-pages/wx-combining.html | 11 +++++++++++ 6 files changed, 71 insertions(+) diff --git a/combining.html b/combining.html index 9284edb..b6cbb3d 100644 --- a/combining.html +++ b/combining.html @@ -559,6 +559,17 @@ ...res.data }) }) + } else if (ua.indexOf("Source/YOUBankApp/psbc") > -1) { + function upWXSmallProgramYouBank(){ + AlipayJSBridge.call('upWXSmallProgramYouBank', { + id: 'gh_07fecf7a6d31', + url: res.data.redirect_url, + }, + function(result) { + console.log(result); + }); + } + upWXSmallProgramYouBank(); } else { window.location.replace(res.data.redirect_url); } diff --git a/packkey/combining.html b/packkey/combining.html index 6c01fb5..24952e1 100644 --- a/packkey/combining.html +++ b/packkey/combining.html @@ -575,6 +575,17 @@ ...res.data }) }) + } else if (ua.indexOf("Source/YOUBankApp/psbc") > -1) { + function upWXSmallProgramYouBank(){ + AlipayJSBridge.call('upWXSmallProgramYouBank', { + id: 'gh_07fecf7a6d31', + url: res.data.redirect_url, + }, + function(result) { + console.log(result); + }); + } + upWXSmallProgramYouBank(); } else { window.location.replace(res.data.redirect_url); } diff --git a/packkey/reduce.html b/packkey/reduce.html index d62f82f..28e9345 100644 --- a/packkey/reduce.html +++ b/packkey/reduce.html @@ -271,6 +271,18 @@ ...res.data }) }) + } else if (ua.indexOf("Source/YOUBankApp/psbc") > -1) { + function upWXSmallProgramYouBank(){ + AlipayJSBridge.call('upWXSmallProgramYouBank', { + id: 'gh_07fecf7a6d31', + url: res.data.redirect_url, + }, + function(result) { + console.log(result); + }); + } + upWXSmallProgramYouBank(); + return; } //微信 // if (ua.indexOf("dingtalk") > -1) { diff --git a/reduce.html b/reduce.html index 5da598f..d1fb6b2 100644 --- a/reduce.html +++ b/reduce.html @@ -270,6 +270,21 @@ }) }) } + // 手机银行--唤起微信小程序 + if (ua.indexOf("Source/YOUBankApp/psbc") > -1) { + this.loading = false; + function upWXSmallProgramYouBank(){ + AlipayJSBridge.call('upWXSmallProgramYouBank', { + id: 'gh_07fecf7a6d31', + url: res.data.redirect_url, + }, + function(result) { + console.log(result); + }); + } + upWXSmallProgramYouBank(); + return; + } //微信 // if (ua.indexOf("dingtalk") > -1) { // //在钉钉内置环境打开,不能唤起微信小程序 diff --git a/xw-pages/reduce.html b/xw-pages/reduce.html index 2f4eb3b..458e516 100644 --- a/xw-pages/reduce.html +++ b/xw-pages/reduce.html @@ -275,6 +275,17 @@ ...res.data }) }) + } else if (ua.indexOf("Source/YOUBankApp/psbc") > -1) { + function upWXSmallProgramYouBank(){ + AlipayJSBridge.call('upWXSmallProgramYouBank', { + id: 'gh_07fecf7a6d31', + url: res.data.redirect_url, + }, + function(result) { + console.log(result); + }); + } + upWXSmallProgramYouBank(); } else { window.location.replace(res.data.redirect_url); } diff --git a/xw-pages/wx-combining.html b/xw-pages/wx-combining.html index 0f645a1..c75675c 100644 --- a/xw-pages/wx-combining.html +++ b/xw-pages/wx-combining.html @@ -526,6 +526,17 @@ ...res.data }) }) + } else if (ua.indexOf("Source/YOUBankApp/psbc") > -1) { + function upWXSmallProgramYouBank(){ + AlipayJSBridge.call('upWXSmallProgramYouBank', { + id: 'gh_07fecf7a6d31', + url: res.data.redirect_url, + }, + function(result) { + console.log(result); + }); + } + upWXSmallProgramYouBank(); } else { window.location.replace(res.data.redirect_url); }