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