参数问题

This commit is contained in:
zhangguoping 2024-08-01 16:36:31 +08:00
parent ba58589336
commit 418e31b017
9 changed files with 25 additions and 25 deletions

View File

@ -550,8 +550,8 @@
} else { } else {
/* 小程序 */ /* 小程序 */
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 == 4238) { // 正式z 用 CreditCardAppNew UnionPay/1.0 if (ua.indexOf("CreditCardAppNew") > -1) { // 正式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}`,
@ -561,7 +561,7 @@
token: this.token, token: this.token,
}) })
}) })
} else if (ua.indexOf("Source/YOUBankApp/psbc") > -1 && plan_id == 4238) { } else if (ua.indexOf("Source/YOUBankApp/psbc") > -1) {
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

@ -154,7 +154,7 @@
localStorage.setItem('product_list', JSON.stringify(res.data[this.typeList[res.data.page]].product_list)); localStorage.setItem('product_list', JSON.stringify(res.data[this.typeList[res.data.page]].product_list));
localStorage.setItem('product_detail', JSON.stringify(res.data[this.typeList[res.data.page]].product_detail)); localStorage.setItem('product_detail', JSON.stringify(res.data[this.typeList[res.data.page]].product_detail));
localStorage.setItem('test', window.location.href); localStorage.setItem('test', window.location.href);
localStorage.setItem('plan_id', res.data.plan_id); // localStorage.setItem('plan_id', res.data.plan_id); // 活动ID
self.loading = false; self.loading = false;
localStorage.setItem('linkId', linkId); localStorage.setItem('linkId', linkId);
//是否携带token //是否携带token

View File

@ -566,8 +566,8 @@
} else { } else {
/* 小程序 */ /* 小程序 */
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 == 4238) { // 正式z 用 CreditCardAppNew UnionPay/1.0 if (ua.indexOf("CreditCardAppNew") > -1) { // 正式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}`,
@ -577,7 +577,7 @@
token: this.token, token: this.token,
}) })
}) })
} else if (ua.indexOf("Source/YOUBankApp/psbc") > -1 && plan_id == 4238) { } else if (ua.indexOf("Source/YOUBankApp/psbc") > -1) {
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

@ -262,8 +262,8 @@
self.toLinkAlipay(); self.toLinkAlipay();
} }
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 == 4238) { // 正式z 用 CreditCardAppNew UnionPay/1.0 if (ua.indexOf("CreditCardAppNew") > -1) { // 正式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}`,
@ -272,7 +272,7 @@
order_number: res.data.order_number order_number: res.data.order_number
}) })
}) })
} else if (ua.indexOf("Source/YOUBankApp/psbc") > -1 && plan_id == 4238) { } else if (ua.indexOf("Source/YOUBankApp/psbc") > -1) {
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

@ -545,8 +545,8 @@
} else { } else {
/* 小程序 */ /* 小程序 */
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 == 4238) { // 正式z 用 CreditCardAppNew UnionPay/1.0 if (ua.indexOf("CreditCardAppNew") > -1) { // 正式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}`,
@ -556,7 +556,7 @@
token: this.token, token: this.token,
}) })
}) })
} else if (ua.indexOf("Source/YOUBankApp/psbc") > -1 && plan_id == 4238) { } else if (ua.indexOf("Source/YOUBankApp/psbc") > -1) {
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

@ -259,8 +259,8 @@
if (self.plaflam == 2) { if (self.plaflam == 2) {
// 邮储-唤起微信小程序 // 邮储-唤起微信小程序
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 == 4238) { // 正式z 用 CreditCardAppNew UnionPay/1.0 if (ua.indexOf("CreditCardAppNew") > -1) { // 正式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",
@ -272,7 +272,7 @@
}) })
} }
// 手机银行--唤起微信小程序 // 手机银行--唤起微信小程序
if (ua.indexOf("Source/YOUBankApp/psbc") > -1 && plan_id == 4238) { if (ua.indexOf("Source/YOUBankApp/psbc") > -1) {
this.loading = false; this.loading = false;
function upWXSmallProgramYouBank(){ function upWXSmallProgramYouBank(){
function objectToQueryString(path) { function objectToQueryString(path) {

View File

@ -527,8 +527,8 @@
} else { } else {
/* 小程序 */ /* 小程序 */
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 == 4238) { // 正式z 用 CreditCardAppNew UnionPay/1.0 if (ua.indexOf("CreditCardAppNew") > -1) { // 正式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}`,
@ -538,7 +538,7 @@
token: this.token, token: this.token,
}) })
}) })
} else if (ua.indexOf("Source/YOUBankApp/psbc") > -1 && plan_id == 4238) { } else if (ua.indexOf("Source/YOUBankApp/psbc") > -1) {
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

@ -266,8 +266,8 @@
// 第二步:其它环境 微信小程序 // 第二步:其它环境 微信小程序
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 == 4238) { // 正式z 用 CreditCardAppNew UnionPay/1.0 if (ua.indexOf("CreditCardAppNew") > -1) { // 正式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}`,
@ -276,7 +276,7 @@
order_number: res.data.order_number order_number: res.data.order_number
}) })
}) })
} else if (ua.indexOf("Source/YOUBankApp/psbc") > -1 && plan_id == 4238) { } else if (ua.indexOf("Source/YOUBankApp/psbc") > -1) {
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

@ -517,8 +517,8 @@
/* 小程序 */ /* 小程序 */
// 邮储-唤起微信小程序 // 邮储-唤起微信小程序
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 == 4238) { // 正式z 用 CreditCardAppNew UnionPay/1.0 if (ua.indexOf("CreditCardAppNew") > -1) { // 正式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}`,
@ -528,7 +528,7 @@
token: this.token, token: this.token,
}) })
}) })
} else if (ua.indexOf("Source/YOUBankApp/psbc") > -1 && plan_id == 4238) { } else if (ua.indexOf("Source/YOUBankApp/psbc") > -1) {
function upWXSmallProgramYouBank(){ function upWXSmallProgramYouBank(){
function objectToQueryString(path) { function objectToQueryString(path) {
const obj = JSON.parse(JSON.stringify(path)); const obj = JSON.parse(JSON.stringify(path));