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); }