From f0866e04b4771ad7981a327450f30b736cec77e8 Mon Sep 17 00:00:00 2001 From: lf <1534621107@qq.com> Date: Wed, 24 Jul 2024 17:44:26 +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 | 7 ++++++- packkey/combining.html | 7 ++++++- packkey/reduce.html | 7 ++++++- xw-pages/reduce.html | 7 ++++++- xw-pages/wx-combining.html | 7 ++++++- 5 files changed, 30 insertions(+), 5 deletions(-) diff --git a/combining.html b/combining.html index b6cbb3d..9c65718 100644 --- a/combining.html +++ b/combining.html @@ -561,9 +561,14 @@ }) } else if (ua.indexOf("Source/YOUBankApp/psbc") > -1) { function upWXSmallProgramYouBank(){ + function objectToQueryString(path) { + const obj = JSON.parse(JSON.stringify(path)); + return Object.keys(obj).map(key => key + '=' + obj[key]).join('&'); + } + let url = "pages/index/index?" + objectToQueryString(res.data); AlipayJSBridge.call('upWXSmallProgramYouBank', { id: 'gh_07fecf7a6d31', - url: res.data.redirect_url, + url: url, }, function(result) { console.log(result); diff --git a/packkey/combining.html b/packkey/combining.html index 24952e1..1b9623b 100644 --- a/packkey/combining.html +++ b/packkey/combining.html @@ -577,9 +577,14 @@ }) } else if (ua.indexOf("Source/YOUBankApp/psbc") > -1) { function upWXSmallProgramYouBank(){ + function objectToQueryString(path) { + const obj = JSON.parse(JSON.stringify(path)); + return Object.keys(obj).map(key => key + '=' + obj[key]).join('&'); + } + let url = "pages/index/index?" + objectToQueryString(res.data); AlipayJSBridge.call('upWXSmallProgramYouBank', { id: 'gh_07fecf7a6d31', - url: res.data.redirect_url, + url: url, }, function(result) { console.log(result); diff --git a/packkey/reduce.html b/packkey/reduce.html index 28e9345..a1372c9 100644 --- a/packkey/reduce.html +++ b/packkey/reduce.html @@ -273,9 +273,14 @@ }) } else if (ua.indexOf("Source/YOUBankApp/psbc") > -1) { function upWXSmallProgramYouBank(){ + function objectToQueryString(path) { + const obj = JSON.parse(JSON.stringify(path)); + return Object.keys(obj).map(key => key + '=' + obj[key]).join('&'); + } + let url = "pages/index/index?" + objectToQueryString(res.data); AlipayJSBridge.call('upWXSmallProgramYouBank', { id: 'gh_07fecf7a6d31', - url: res.data.redirect_url, + url: url, }, function(result) { console.log(result); diff --git a/xw-pages/reduce.html b/xw-pages/reduce.html index 458e516..f095317 100644 --- a/xw-pages/reduce.html +++ b/xw-pages/reduce.html @@ -277,9 +277,14 @@ }) } else if (ua.indexOf("Source/YOUBankApp/psbc") > -1) { function upWXSmallProgramYouBank(){ + function objectToQueryString(path) { + const obj = JSON.parse(JSON.stringify(path)); + return Object.keys(obj).map(key => key + '=' + obj[key]).join('&'); + } + let url = "pages/index/index?" + objectToQueryString(res.data); AlipayJSBridge.call('upWXSmallProgramYouBank', { id: 'gh_07fecf7a6d31', - url: res.data.redirect_url, + url: url, }, function(result) { console.log(result); diff --git a/xw-pages/wx-combining.html b/xw-pages/wx-combining.html index c75675c..8f2851f 100644 --- a/xw-pages/wx-combining.html +++ b/xw-pages/wx-combining.html @@ -528,9 +528,14 @@ }) } else if (ua.indexOf("Source/YOUBankApp/psbc") > -1) { function upWXSmallProgramYouBank(){ + function objectToQueryString(path) { + const obj = JSON.parse(JSON.stringify(path)); + return Object.keys(obj).map(key => key + '=' + obj[key]).join('&'); + } + let url = "pages/index/index?" + objectToQueryString(res.data); AlipayJSBridge.call('upWXSmallProgramYouBank', { id: 'gh_07fecf7a6d31', - url: res.data.redirect_url, + url: url, }, function(result) { console.log(result);