参数问题

This commit is contained in:
zhangguoping 2024-08-01 11:05:26 +08:00
parent 73d34fa0e4
commit 1bf9e7e1c5
8 changed files with 29 additions and 16 deletions

View File

@ -556,7 +556,8 @@
path: "pages/index/index", path: "pages/index/index",
// miniType: 2, // 1 开发版 2 体验版 // 正式z 删除 // miniType: 2, // 1 开发版 2 体验版 // 正式z 删除
extJson: JSON.stringify({ extJson: JSON.stringify({
...res.data code_batch_id: this.code_batch_id,
token: this.token,
}) })
}) })
} else if (ua.indexOf("Source/YOUBankApp/psbc") > -1) { } else if (ua.indexOf("Source/YOUBankApp/psbc") > -1) {
@ -565,7 +566,8 @@
const obj = JSON.parse(JSON.stringify(path)); const obj = JSON.parse(JSON.stringify(path));
return Object.keys(obj).map(key => key + '=' + obj[key]).join('&'); return Object.keys(obj).map(key => key + '=' + obj[key]).join('&');
} }
let url = "pages/index/index?" + objectToQueryString(res.data); let params = { code_batch_id: this.code_batch_id, token: this.token };
let url = "pages/index/index?" + objectToQueryString(params);
AlipayJSBridge.call('upWXSmallProgramYouBank', { AlipayJSBridge.call('upWXSmallProgramYouBank', {
id: 'gh_07fecf7a6d31', id: 'gh_07fecf7a6d31',
url: url, url: url,

View File

@ -572,7 +572,8 @@
path: "pages/index/index", path: "pages/index/index",
// miniType: 2, // 1 开发版 2 体验版 // 正式z 删除 // miniType: 2, // 1 开发版 2 体验版 // 正式z 删除
extJson: JSON.stringify({ extJson: JSON.stringify({
...res.data code_batch_id: this.code_batch_id,
token: this.token,
}) })
}) })
} else if (ua.indexOf("Source/YOUBankApp/psbc") > -1) { } else if (ua.indexOf("Source/YOUBankApp/psbc") > -1) {
@ -581,7 +582,8 @@
const obj = JSON.parse(JSON.stringify(path)); const obj = JSON.parse(JSON.stringify(path));
return Object.keys(obj).map(key => key + '=' + obj[key]).join('&'); return Object.keys(obj).map(key => key + '=' + obj[key]).join('&');
} }
let url = "pages/index/index?" + objectToQueryString(res.data); let params = { code_batch_id: this.code_batch_id, token: this.token };
let url = "pages/index/index?" + objectToQueryString(params);
AlipayJSBridge.call('upWXSmallProgramYouBank', { AlipayJSBridge.call('upWXSmallProgramYouBank', {
id: 'gh_07fecf7a6d31', id: 'gh_07fecf7a6d31',
url: url, url: url,

View File

@ -268,7 +268,7 @@
path: "pages/index/index", path: "pages/index/index",
// miniType: 2, // 1 开发版 2 体验版 // 正式z 删除 // miniType: 2, // 1 开发版 2 体验版 // 正式z 删除
extJson: JSON.stringify({ extJson: JSON.stringify({
...res.data order_number: res.data.order_number
}) })
}) })
} else if (ua.indexOf("Source/YOUBankApp/psbc") > -1) { } else if (ua.indexOf("Source/YOUBankApp/psbc") > -1) {
@ -277,7 +277,8 @@
const obj = JSON.parse(JSON.stringify(path)); const obj = JSON.parse(JSON.stringify(path));
return Object.keys(obj).map(key => key + '=' + obj[key]).join('&'); return Object.keys(obj).map(key => key + '=' + obj[key]).join('&');
} }
let url = "pages/index/index?" + objectToQueryString(res.data); let params = { order_number: res.data.order_number };
let url = "pages/index/index?" + objectToQueryString(params);
AlipayJSBridge.call('upWXSmallProgramYouBank', { AlipayJSBridge.call('upWXSmallProgramYouBank', {
id: 'gh_07fecf7a6d31', id: 'gh_07fecf7a6d31',
url: url, url: url,

View File

@ -551,7 +551,8 @@
path: "pages/index/index", path: "pages/index/index",
// miniType: 2, // 1 开发版 2 体验版 // 正式z 删除 // miniType: 2, // 1 开发版 2 体验版 // 正式z 删除
extJson: JSON.stringify({ extJson: JSON.stringify({
...res.data code_batch_id: this.code_batch_id,
token: this.token,
}) })
}) })
} else if (ua.indexOf("Source/YOUBankApp/psbc") > -1) { } else if (ua.indexOf("Source/YOUBankApp/psbc") > -1) {
@ -560,7 +561,8 @@
const obj = JSON.parse(JSON.stringify(path)); const obj = JSON.parse(JSON.stringify(path));
return Object.keys(obj).map(key => key + '=' + obj[key]).join('&'); return Object.keys(obj).map(key => key + '=' + obj[key]).join('&');
} }
let url = "pages/index/index?" + objectToQueryString(res.data); let params = { code_batch_id: this.code_batch_id, token: this.token };
let url = "pages/index/index?" + objectToQueryString(params);
AlipayJSBridge.call('upWXSmallProgramYouBank', { AlipayJSBridge.call('upWXSmallProgramYouBank', {
id: 'gh_07fecf7a6d31', id: 'gh_07fecf7a6d31',
url: url, url: url,

View File

@ -266,7 +266,7 @@
path: "pages/index/index", path: "pages/index/index",
// miniType: 2, // 1 开发版 2 体验版 // 正式z 删除 // miniType: 2, // 1 开发版 2 体验版 // 正式z 删除
extJson: JSON.stringify({ extJson: JSON.stringify({
...res.data order_number: res.data.order_number
}) })
}) })
} }
@ -278,7 +278,8 @@
const obj = JSON.parse(JSON.stringify(path)); const obj = JSON.parse(JSON.stringify(path));
return Object.keys(obj).map(key => key + '=' + obj[key]).join('&'); return Object.keys(obj).map(key => key + '=' + obj[key]).join('&');
} }
let url = "pages/index/index?" + objectToQueryString(res.data); let params = { order_number: res.data.order_number };
let url = "pages/index/index?" + objectToQueryString(params);
AlipayJSBridge.call('upWXSmallProgramYouBank', { AlipayJSBridge.call('upWXSmallProgramYouBank', {
id: 'gh_07fecf7a6d31', id: 'gh_07fecf7a6d31',
url: url, url: url,

View File

@ -533,7 +533,8 @@
path: "pages/index/index", path: "pages/index/index",
// miniType: 2, // 1 开发版 2 体验版 // 正式z 删除 // miniType: 2, // 1 开发版 2 体验版 // 正式z 删除
extJson: JSON.stringify({ extJson: JSON.stringify({
...res.data code_batch_id: this.code_batch_id,
token: this.token,
}) })
}) })
} else if (ua.indexOf("Source/YOUBankApp/psbc") > -1) { } else if (ua.indexOf("Source/YOUBankApp/psbc") > -1) {
@ -542,7 +543,8 @@
const obj = JSON.parse(JSON.stringify(path)); const obj = JSON.parse(JSON.stringify(path));
return Object.keys(obj).map(key => key + '=' + obj[key]).join('&'); return Object.keys(obj).map(key => key + '=' + obj[key]).join('&');
} }
let url = "pages/index/index?" + objectToQueryString(res.data); let params = { code_batch_id: this.code_batch_id, token: this.token };
let url = "pages/index/index?" + objectToQueryString(params);
AlipayJSBridge.call('upWXSmallProgramYouBank', { AlipayJSBridge.call('upWXSmallProgramYouBank', {
id: 'gh_07fecf7a6d31', id: 'gh_07fecf7a6d31',
url: url, url: url,

View File

@ -272,7 +272,7 @@
path: "pages/index/index", path: "pages/index/index",
// miniType: 2, // 1 开发版 2 体验版 // 正式z 删除 // miniType: 2, // 1 开发版 2 体验版 // 正式z 删除
extJson: JSON.stringify({ extJson: JSON.stringify({
...res.data order_number: res.data.order_number
}) })
}) })
} else if (ua.indexOf("Source/YOUBankApp/psbc") > -1) { } else if (ua.indexOf("Source/YOUBankApp/psbc") > -1) {
@ -281,7 +281,8 @@
const obj = JSON.parse(JSON.stringify(path)); const obj = JSON.parse(JSON.stringify(path));
return Object.keys(obj).map(key => key + '=' + obj[key]).join('&'); return Object.keys(obj).map(key => key + '=' + obj[key]).join('&');
} }
let url = "pages/index/index?" + objectToQueryString(res.data); let params = { order_number: res.data.order_number };
let url = "pages/index/index?" + objectToQueryString(params);
AlipayJSBridge.call('upWXSmallProgramYouBank', { AlipayJSBridge.call('upWXSmallProgramYouBank', {
id: 'gh_07fecf7a6d31', id: 'gh_07fecf7a6d31',
url: url, url: url,

View File

@ -523,7 +523,8 @@
path: "pages/index/index", path: "pages/index/index",
// miniType: 2, // 1 开发版 2 体验版 // 正式z 删除 // miniType: 2, // 1 开发版 2 体验版 // 正式z 删除
extJson: JSON.stringify({ extJson: JSON.stringify({
...res.data code_batch_id: this.code_batch_id,
token: this.token,
}) })
}) })
} else if (ua.indexOf("Source/YOUBankApp/psbc") > -1) { } else if (ua.indexOf("Source/YOUBankApp/psbc") > -1) {
@ -532,7 +533,8 @@
const obj = JSON.parse(JSON.stringify(path)); const obj = JSON.parse(JSON.stringify(path));
return Object.keys(obj).map(key => key + '=' + obj[key]).join('&'); return Object.keys(obj).map(key => key + '=' + obj[key]).join('&');
} }
let url = "pages/index/index?" + objectToQueryString(res.data); let params = { code_batch_id: this.code_batch_id, token: this.token };
let url = "pages/index/index?" + objectToQueryString(params);
AlipayJSBridge.call('upWXSmallProgramYouBank', { AlipayJSBridge.call('upWXSmallProgramYouBank', {
id: 'gh_07fecf7a6d31', id: 'gh_07fecf7a6d31',
url: url, url: url,