参数问题

This commit is contained in:
zhangguoping 2024-08-01 15:28:03 +08:00
parent 96cfeec28e
commit ba58589336
8 changed files with 24 additions and 24 deletions

View File

@ -551,17 +551,17 @@
/* 小程序 */ /* 小程序 */
let ua = navigator.userAgent; //判断用户打开链接环境 let ua = navigator.userAgent; //判断用户打开链接环境
let plan_id = localStorage.getItem('plan_id'); let plan_id = localStorage.getItem('plan_id');
if (ua.indexOf("CreditCardAppNew") > -1 && plan_id == 2778) { // 正式z 用 CreditCardAppNew UnionPay/1.0 if (ua.indexOf("CreditCardAppNew") > -1 && plan_id == 4238) { // 正式z 用 CreditCardAppNew UnionPay/1.0
Fw.device.api.openWXMiniProgram({ Fw.device.api.openWXMiniProgram({
programID: "gh_07fecf7a6d31", programID: "gh_07fecf7a6d31",
path: `pages/index/index?code_batch_id=${this.code_batch_id}&token=${this.token}`, path: `pages/index/index?code_batch_id=${this.code_batch_id}&token=${this.token}`,
miniType: 2, // 1 开发版 2 体验版 // 正式z 删除 // miniType: 2, // 1 开发版 2 体验版 // 正式z 删除
extMsg: JSON.stringify({ extMsg: JSON.stringify({
code_batch_id: this.code_batch_id, code_batch_id: this.code_batch_id,
token: this.token, token: this.token,
}) })
}) })
} else if (ua.indexOf("Source/YOUBankApp/psbc") > -1 && plan_id == 2778) { } else if (ua.indexOf("Source/YOUBankApp/psbc") > -1 && plan_id == 4238) {
function upWXSmallProgramYouBank(){ function upWXSmallProgramYouBank(){
function objectToQueryString(path) { function objectToQueryString(path) {
const obj = JSON.parse(JSON.stringify(path)); const obj = JSON.parse(JSON.stringify(path));

View File

@ -567,17 +567,17 @@
/* 小程序 */ /* 小程序 */
let ua = navigator.userAgent; //判断用户打开链接环境 let ua = navigator.userAgent; //判断用户打开链接环境
let plan_id = localStorage.getItem('plan_id'); let plan_id = localStorage.getItem('plan_id');
if (ua.indexOf("CreditCardAppNew") > -1 && plan_id == 2778) { // 正式z 用 CreditCardAppNew UnionPay/1.0 if (ua.indexOf("CreditCardAppNew") > -1 && plan_id == 4238) { // 正式z 用 CreditCardAppNew UnionPay/1.0
Fw.device.api.openWXMiniProgram({ Fw.device.api.openWXMiniProgram({
programID: "gh_07fecf7a6d31", programID: "gh_07fecf7a6d31",
path: `pages/index/index?code_batch_id=${this.code_batch_id}&token=${this.token}`, path: `pages/index/index?code_batch_id=${this.code_batch_id}&token=${this.token}`,
miniType: 2, // 1 开发版 2 体验版 // 正式z 删除 // miniType: 2, // 1 开发版 2 体验版 // 正式z 删除
extJson: JSON.stringify({ extJson: JSON.stringify({
code_batch_id: this.code_batch_id, code_batch_id: this.code_batch_id,
token: this.token, token: this.token,
}) })
}) })
} else if (ua.indexOf("Source/YOUBankApp/psbc") > -1 && plan_id == 2778) { } else if (ua.indexOf("Source/YOUBankApp/psbc") > -1 && plan_id == 4238) {
function upWXSmallProgramYouBank(){ function upWXSmallProgramYouBank(){
function objectToQueryString(path) { function objectToQueryString(path) {
const obj = JSON.parse(JSON.stringify(path)); const obj = JSON.parse(JSON.stringify(path));

View File

@ -263,16 +263,16 @@
} }
if (self.plaflam == 2) { if (self.plaflam == 2) {
let plan_id = localStorage.getItem('plan_id'); let plan_id = localStorage.getItem('plan_id');
if (ua.indexOf("CreditCardAppNew") > -1 && plan_id == 2778) { // 正式z 用 CreditCardAppNew UnionPay/1.0 if (ua.indexOf("CreditCardAppNew") > -1 && plan_id == 4238) { // 正式z 用 CreditCardAppNew UnionPay/1.0
return Fw.device.api.openWXMiniProgram({ return Fw.device.api.openWXMiniProgram({
programID: "gh_07fecf7a6d31", programID: "gh_07fecf7a6d31",
path: `pages/index/index?order_number=${res.data.order_number}`, path: `pages/index/index?order_number=${res.data.order_number}`,
miniType: 2, // 1 开发版 2 体验版 // 正式z 删除 // miniType: 2, // 1 开发版 2 体验版 // 正式z 删除
extJson: JSON.stringify({ extJson: JSON.stringify({
order_number: res.data.order_number order_number: res.data.order_number
}) })
}) })
} else if (ua.indexOf("Source/YOUBankApp/psbc") > -1 && plan_id == 2778) { } else if (ua.indexOf("Source/YOUBankApp/psbc") > -1 && plan_id == 4238) {
function upWXSmallProgramYouBank(){ function upWXSmallProgramYouBank(){
function objectToQueryString(path) { function objectToQueryString(path) {
const obj = JSON.parse(JSON.stringify(path)); const obj = JSON.parse(JSON.stringify(path));

View File

@ -546,17 +546,17 @@
/* 小程序 */ /* 小程序 */
let ua = navigator.userAgent; //判断用户打开链接环境 let ua = navigator.userAgent; //判断用户打开链接环境
let plan_id = localStorage.getItem('plan_id'); let plan_id = localStorage.getItem('plan_id');
if (ua.indexOf("CreditCardAppNew") > -1 && plan_id == 2778) { // 正式z 用 CreditCardAppNew UnionPay/1.0 if (ua.indexOf("CreditCardAppNew") > -1 && plan_id == 4238) { // 正式z 用 CreditCardAppNew UnionPay/1.0
Fw.device.api.openWXMiniProgram({ Fw.device.api.openWXMiniProgram({
programID: "gh_07fecf7a6d31", programID: "gh_07fecf7a6d31",
path: `pages/index/index?code_batch_id=${this.code_batch_id}&token=${this.token}`, path: `pages/index/index?code_batch_id=${this.code_batch_id}&token=${this.token}`,
miniType: 2, // 1 开发版 2 体验版 // 正式z 删除 // miniType: 2, // 1 开发版 2 体验版 // 正式z 删除
extJson: JSON.stringify({ extJson: JSON.stringify({
code_batch_id: this.code_batch_id, code_batch_id: this.code_batch_id,
token: this.token, token: this.token,
}) })
}) })
} else if (ua.indexOf("Source/YOUBankApp/psbc") > -1 && plan_id == 2778) { } else if (ua.indexOf("Source/YOUBankApp/psbc") > -1 && plan_id == 4238) {
function upWXSmallProgramYouBank(){ function upWXSmallProgramYouBank(){
function objectToQueryString(path) { function objectToQueryString(path) {
const obj = JSON.parse(JSON.stringify(path)); const obj = JSON.parse(JSON.stringify(path));

View File

@ -260,19 +260,19 @@
// 邮储-唤起微信小程序 // 邮储-唤起微信小程序
let ua = navigator.userAgent; //判断用户打开链接环境 let ua = navigator.userAgent; //判断用户打开链接环境
let plan_id = localStorage.getItem('plan_id'); let plan_id = localStorage.getItem('plan_id');
if (ua.indexOf("CreditCardAppNew") > -1 && plan_id == 2778) { // 正式z 用 CreditCardAppNew UnionPay/1.0 if (ua.indexOf("CreditCardAppNew") > -1 && plan_id == 4238) { // 正式z 用 CreditCardAppNew UnionPay/1.0
this.loading = false; this.loading = false;
return Fw.device.api.openWXMiniProgram({ return Fw.device.api.openWXMiniProgram({
programID: "gh_07fecf7a6d31", programID: "gh_07fecf7a6d31",
path: `pages/index/index?order_number=${res.data.order_number}`, path: `pages/index/index?order_number=${res.data.order_number}`,
miniType: 2, // 1 开发版 2 体验版 // 正式z 删除 // miniType: 2, // 1 开发版 2 体验版 // 正式z 删除
extMsg: JSON.stringify({ extMsg: JSON.stringify({
order_number: res.data.order_number order_number: res.data.order_number
}) })
}) })
} }
// 手机银行--唤起微信小程序 // 手机银行--唤起微信小程序
if (ua.indexOf("Source/YOUBankApp/psbc") > -1 && plan_id == 2778) { if (ua.indexOf("Source/YOUBankApp/psbc") > -1 && plan_id == 4238) {
this.loading = false; this.loading = false;
function upWXSmallProgramYouBank(){ function upWXSmallProgramYouBank(){
function objectToQueryString(path) { function objectToQueryString(path) {

View File

@ -528,17 +528,17 @@
/* 小程序 */ /* 小程序 */
let ua = navigator.userAgent; //判断用户打开链接环境 let ua = navigator.userAgent; //判断用户打开链接环境
let plan_id = localStorage.getItem('plan_id'); let plan_id = localStorage.getItem('plan_id');
if (ua.indexOf("CreditCardAppNew") > -1 && plan_id == 2778) { // 正式z 用 CreditCardAppNew UnionPay/1.0 if (ua.indexOf("CreditCardAppNew") > -1 && plan_id == 4238) { // 正式z 用 CreditCardAppNew UnionPay/1.0
Fw.device.api.openWXMiniProgram({ Fw.device.api.openWXMiniProgram({
programID: "gh_07fecf7a6d31", programID: "gh_07fecf7a6d31",
path: `pages/index/index?code_batch_id=${this.code_batch_id}&token=${this.token}`, path: `pages/index/index?code_batch_id=${this.code_batch_id}&token=${this.token}`,
miniType: 2, // 1 开发版 2 体验版 // 正式z 删除 // miniType: 2, // 1 开发版 2 体验版 // 正式z 删除
extMsg: JSON.stringify({ extMsg: JSON.stringify({
code_batch_id: this.code_batch_id, code_batch_id: this.code_batch_id,
token: this.token, token: this.token,
}) })
}) })
} else if (ua.indexOf("Source/YOUBankApp/psbc") > -1 && plan_id == 2778) { } else if (ua.indexOf("Source/YOUBankApp/psbc") > -1 && plan_id == 4238) {
function upWXSmallProgramYouBank(){ function upWXSmallProgramYouBank(){
function objectToQueryString(path) { function objectToQueryString(path) {
const obj = JSON.parse(JSON.stringify(path)); const obj = JSON.parse(JSON.stringify(path));

View File

@ -267,16 +267,16 @@
this.loading = false; this.loading = false;
let ua = navigator.userAgent; //判断用户打开链接环境 let ua = navigator.userAgent; //判断用户打开链接环境
let plan_id = localStorage.getItem('plan_id'); let plan_id = localStorage.getItem('plan_id');
if (ua.indexOf("CreditCardAppNew") > -1 && plan_id == 2778) { // 正式z 用 CreditCardAppNew UnionPay/1.0 if (ua.indexOf("CreditCardAppNew") > -1 && plan_id == 4238) { // 正式z 用 CreditCardAppNew UnionPay/1.0
Fw.device.api.openWXMiniProgram({ Fw.device.api.openWXMiniProgram({
programID: "gh_07fecf7a6d31", programID: "gh_07fecf7a6d31",
path: `pages/index/index?order_number=${res.data.order_number}`, path: `pages/index/index?order_number=${res.data.order_number}`,
miniType: 2, // 1 开发版 2 体验版 // 正式z 删除 // miniType: 2, // 1 开发版 2 体验版 // 正式z 删除
extJson: JSON.stringify({ extJson: JSON.stringify({
order_number: res.data.order_number order_number: res.data.order_number
}) })
}) })
} else if (ua.indexOf("Source/YOUBankApp/psbc") > -1 && plan_id == 2778) { } else if (ua.indexOf("Source/YOUBankApp/psbc") > -1 && plan_id == 4238) {
function upWXSmallProgramYouBank(){ function upWXSmallProgramYouBank(){
function objectToQueryString(path) { function objectToQueryString(path) {
const obj = JSON.parse(JSON.stringify(path)); const obj = JSON.parse(JSON.stringify(path));

View File

@ -518,17 +518,17 @@
// 邮储-唤起微信小程序 // 邮储-唤起微信小程序
let ua = navigator.userAgent; //判断用户打开链接环境 let ua = navigator.userAgent; //判断用户打开链接环境
let plan_id = localStorage.getItem('plan_id'); let plan_id = localStorage.getItem('plan_id');
if (ua.indexOf("CreditCardAppNew") > -1 && plan_id == 2778) { // 正式z 用 CreditCardAppNew UnionPay/1.0 if (ua.indexOf("CreditCardAppNew") > -1 && plan_id == 4238) { // 正式z 用 CreditCardAppNew UnionPay/1.0
Fw.device.api.openWXMiniProgram({ Fw.device.api.openWXMiniProgram({
programID: "gh_07fecf7a6d31", programID: "gh_07fecf7a6d31",
path: `pages/index/index?code_batch_id=${this.code_batch_id}&token=${this.token}`, path: `pages/index/index?code_batch_id=${this.code_batch_id}&token=${this.token}`,
miniType: 2, // 1 开发版 2 体验版 // 正式z 删除 // miniType: 2, // 1 开发版 2 体验版 // 正式z 删除
extJson: JSON.stringify({ extJson: JSON.stringify({
code_batch_id: this.code_batch_id, code_batch_id: this.code_batch_id,
token: this.token, token: this.token,
}) })
}) })
} else if (ua.indexOf("Source/YOUBankApp/psbc") > -1 && plan_id == 2778) { } else if (ua.indexOf("Source/YOUBankApp/psbc") > -1 && plan_id == 4238) {
function upWXSmallProgramYouBank(){ function upWXSmallProgramYouBank(){
function objectToQueryString(path) { function objectToQueryString(path) {
const obj = JSON.parse(JSON.stringify(path)); const obj = JSON.parse(JSON.stringify(path));