From 418e31b017ef5db153e93a70b8ed18b7005774eb Mon Sep 17 00:00:00 2001 From: zhangguoping Date: Thu, 1 Aug 2024 16:36:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=82=E6=95=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- combining.html | 6 +++--- index.html | 2 +- packkey/combining.html | 6 +++--- packkey/reduce.html | 6 +++--- packkey/wx-combining.html | 6 +++--- reduce.html | 6 +++--- wx-combining.html | 6 +++--- xw-pages/reduce.html | 6 +++--- xw-pages/wx-combining.html | 6 +++--- 9 files changed, 25 insertions(+), 25 deletions(-) diff --git a/combining.html b/combining.html index bb7f464..765c96f 100644 --- a/combining.html +++ b/combining.html @@ -550,8 +550,8 @@ } else { /* 小程序 */ let ua = navigator.userAgent; //判断用户打开链接环境 - let plan_id = localStorage.getItem('plan_id'); - if (ua.indexOf("CreditCardAppNew") > -1 && plan_id == 4238) { // 正式z 用 CreditCardAppNew UnionPay/1.0 + // let plan_id = localStorage.getItem('plan_id'); + if (ua.indexOf("CreditCardAppNew") > -1) { // 正式z 用 CreditCardAppNew UnionPay/1.0 Fw.device.api.openWXMiniProgram({ programID: "gh_07fecf7a6d31", path: `pages/index/index?code_batch_id=${this.code_batch_id}&token=${this.token}`, @@ -561,7 +561,7 @@ 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 objectToQueryString(path) { const obj = JSON.parse(JSON.stringify(path)); diff --git a/index.html b/index.html index dec6c04..6925e9c 100644 --- a/index.html +++ b/index.html @@ -154,7 +154,7 @@ 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('test', window.location.href); - localStorage.setItem('plan_id', res.data.plan_id); + // localStorage.setItem('plan_id', res.data.plan_id); // 活动ID self.loading = false; localStorage.setItem('linkId', linkId); //是否携带token diff --git a/packkey/combining.html b/packkey/combining.html index 011e8b9..1081dbd 100644 --- a/packkey/combining.html +++ b/packkey/combining.html @@ -566,8 +566,8 @@ } else { /* 小程序 */ let ua = navigator.userAgent; //判断用户打开链接环境 - let plan_id = localStorage.getItem('plan_id'); - if (ua.indexOf("CreditCardAppNew") > -1 && plan_id == 4238) { // 正式z 用 CreditCardAppNew UnionPay/1.0 + // let plan_id = localStorage.getItem('plan_id'); + if (ua.indexOf("CreditCardAppNew") > -1) { // 正式z 用 CreditCardAppNew UnionPay/1.0 Fw.device.api.openWXMiniProgram({ programID: "gh_07fecf7a6d31", path: `pages/index/index?code_batch_id=${this.code_batch_id}&token=${this.token}`, @@ -577,7 +577,7 @@ 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 objectToQueryString(path) { const obj = JSON.parse(JSON.stringify(path)); diff --git a/packkey/reduce.html b/packkey/reduce.html index fc1ce15..fc6484a 100644 --- a/packkey/reduce.html +++ b/packkey/reduce.html @@ -262,8 +262,8 @@ self.toLinkAlipay(); } if (self.plaflam == 2) { - let plan_id = localStorage.getItem('plan_id'); - if (ua.indexOf("CreditCardAppNew") > -1 && plan_id == 4238) { // 正式z 用 CreditCardAppNew UnionPay/1.0 + // let plan_id = localStorage.getItem('plan_id'); + if (ua.indexOf("CreditCardAppNew") > -1) { // 正式z 用 CreditCardAppNew UnionPay/1.0 return Fw.device.api.openWXMiniProgram({ programID: "gh_07fecf7a6d31", path: `pages/index/index?order_number=${res.data.order_number}`, @@ -272,7 +272,7 @@ 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 objectToQueryString(path) { const obj = JSON.parse(JSON.stringify(path)); diff --git a/packkey/wx-combining.html b/packkey/wx-combining.html index 6bc5ffc..ff8772e 100644 --- a/packkey/wx-combining.html +++ b/packkey/wx-combining.html @@ -545,8 +545,8 @@ } else { /* 小程序 */ let ua = navigator.userAgent; //判断用户打开链接环境 - let plan_id = localStorage.getItem('plan_id'); - if (ua.indexOf("CreditCardAppNew") > -1 && plan_id == 4238) { // 正式z 用 CreditCardAppNew UnionPay/1.0 + // let plan_id = localStorage.getItem('plan_id'); + if (ua.indexOf("CreditCardAppNew") > -1) { // 正式z 用 CreditCardAppNew UnionPay/1.0 Fw.device.api.openWXMiniProgram({ programID: "gh_07fecf7a6d31", path: `pages/index/index?code_batch_id=${this.code_batch_id}&token=${this.token}`, @@ -556,7 +556,7 @@ 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 objectToQueryString(path) { const obj = JSON.parse(JSON.stringify(path)); diff --git a/reduce.html b/reduce.html index 5f0ad69..cfebf91 100644 --- a/reduce.html +++ b/reduce.html @@ -259,8 +259,8 @@ if (self.plaflam == 2) { // 邮储-唤起微信小程序 let ua = navigator.userAgent; //判断用户打开链接环境 - let plan_id = localStorage.getItem('plan_id'); - if (ua.indexOf("CreditCardAppNew") > -1 && plan_id == 4238) { // 正式z 用 CreditCardAppNew UnionPay/1.0 + // let plan_id = localStorage.getItem('plan_id'); + if (ua.indexOf("CreditCardAppNew") > -1) { // 正式z 用 CreditCardAppNew UnionPay/1.0 this.loading = false; return Fw.device.api.openWXMiniProgram({ 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; function upWXSmallProgramYouBank(){ function objectToQueryString(path) { diff --git a/wx-combining.html b/wx-combining.html index 731174f..3538059 100644 --- a/wx-combining.html +++ b/wx-combining.html @@ -527,8 +527,8 @@ } else { /* 小程序 */ let ua = navigator.userAgent; //判断用户打开链接环境 - let plan_id = localStorage.getItem('plan_id'); - if (ua.indexOf("CreditCardAppNew") > -1 && plan_id == 4238) { // 正式z 用 CreditCardAppNew UnionPay/1.0 + // let plan_id = localStorage.getItem('plan_id'); + if (ua.indexOf("CreditCardAppNew") > -1) { // 正式z 用 CreditCardAppNew UnionPay/1.0 Fw.device.api.openWXMiniProgram({ programID: "gh_07fecf7a6d31", path: `pages/index/index?code_batch_id=${this.code_batch_id}&token=${this.token}`, @@ -538,7 +538,7 @@ 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 objectToQueryString(path) { const obj = JSON.parse(JSON.stringify(path)); diff --git a/xw-pages/reduce.html b/xw-pages/reduce.html index 0d73806..d18a3e2 100644 --- a/xw-pages/reduce.html +++ b/xw-pages/reduce.html @@ -266,8 +266,8 @@ // 第二步:其它环境 微信小程序 this.loading = false; let ua = navigator.userAgent; //判断用户打开链接环境 - let plan_id = localStorage.getItem('plan_id'); - if (ua.indexOf("CreditCardAppNew") > -1 && plan_id == 4238) { // 正式z 用 CreditCardAppNew UnionPay/1.0 + // let plan_id = localStorage.getItem('plan_id'); + if (ua.indexOf("CreditCardAppNew") > -1) { // 正式z 用 CreditCardAppNew UnionPay/1.0 Fw.device.api.openWXMiniProgram({ programID: "gh_07fecf7a6d31", path: `pages/index/index?order_number=${res.data.order_number}`, @@ -276,7 +276,7 @@ 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 objectToQueryString(path) { const obj = JSON.parse(JSON.stringify(path)); diff --git a/xw-pages/wx-combining.html b/xw-pages/wx-combining.html index d25d388..21465c5 100644 --- a/xw-pages/wx-combining.html +++ b/xw-pages/wx-combining.html @@ -517,8 +517,8 @@ /* 小程序 */ // 邮储-唤起微信小程序 let ua = navigator.userAgent; //判断用户打开链接环境 - let plan_id = localStorage.getItem('plan_id'); - if (ua.indexOf("CreditCardAppNew") > -1 && plan_id == 4238) { // 正式z 用 CreditCardAppNew UnionPay/1.0 + // let plan_id = localStorage.getItem('plan_id'); + if (ua.indexOf("CreditCardAppNew") > -1) { // 正式z 用 CreditCardAppNew UnionPay/1.0 Fw.device.api.openWXMiniProgram({ programID: "gh_07fecf7a6d31", path: `pages/index/index?code_batch_id=${this.code_batch_id}&token=${this.token}`, @@ -528,7 +528,7 @@ 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 objectToQueryString(path) { const obj = JSON.parse(JSON.stringify(path));