From dc3bf2c974ac51ae7cb945a464b70dfb8e0b5fc3 Mon Sep 17 00:00:00 2001 From: lf <1534621107@qq.com> Date: Wed, 24 Jul 2024 10:03:52 +0800 Subject: [PATCH] alert --- combining.html | 4 +--- packkey/combining.html | 4 +--- packkey/reduce.html | 4 +--- reduce.html | 21 +++++++++------------ xw-pages/reduce.html | 4 +--- xw-pages/wx-combining.html | 4 +--- 6 files changed, 14 insertions(+), 27 deletions(-) diff --git a/combining.html b/combining.html index 565385e..156cb3e 100644 --- a/combining.html +++ b/combining.html @@ -551,9 +551,7 @@ /* 小程序 */ let ua = navigator.userAgent; // 邮储-唤起微信小程序 - alert(4) - if (ua.indexOf("CreditCardAppNew UnionPay/1.0") > -1) { - alert(44) + if (ua.indexOf("CreditCardAppNew") > -1) { Fw.device.api.openWXMiniProgram({ programID: "wx9ed74283ad25bca1", path: "pages/index/index", diff --git a/packkey/combining.html b/packkey/combining.html index 365d318..3c23025 100644 --- a/packkey/combining.html +++ b/packkey/combining.html @@ -567,9 +567,7 @@ /* 小程序 */ let ua = navigator.userAgent; // 邮储-唤起微信小程序 - alert(6) - if (ua.indexOf("CreditCardAppNew UnionPay/1.0") > -1) { - alert(66) + if (ua.indexOf("CreditCardAppNew") > -1) { return Fw.device.api.openWXMiniProgram({ programID: "wx9ed74283ad25bca1", path: "pages/index/index", diff --git a/packkey/reduce.html b/packkey/reduce.html index 8dcec33..9a0ba0f 100644 --- a/packkey/reduce.html +++ b/packkey/reduce.html @@ -262,9 +262,7 @@ self.toLinkAlipay(); } if (self.plaflam == 2) { - alert(5) - if (ua.indexOf("CreditCardAppNew UnionPay/1.0") > -1) { - alert(55) + if (ua.indexOf("CreditCardAppNew") > -1) { return Fw.device.api.openWXMiniProgram({ programID: "wx9ed74283ad25bca1", path: "pages/index/index", diff --git a/reduce.html b/reduce.html index 8bf4354..2f2e061 100644 --- a/reduce.html +++ b/reduce.html @@ -259,18 +259,15 @@ if (self.plaflam == 2) { // 邮储-唤起微信小程序 let ua = navigator.userAgent; //判断用户打开链接环境 - console.log(ua,ua.indexOf("CreditCardAppNew UnionPay/1.0")) - alert(ua,ua.indexOf("CreditCardAppNew UnionPay/1.0")) - return Fw.device.api.openWXMiniProgram({ - programID: "wx9ed74283ad25bca1", - path: "pages/index/index", - miniType: 2, // 1 开发版 2 体验版 - extJson: { - order_number: res.data.order_number - } - }) - if (ua.indexOf("CreditCardAppNew UnionPay/1.0") > -1) { - alert(33) + if (ua.indexOf("CreditCardAppNew") > -1) { + return Fw.device.api.openWXMiniProgram({ + programID: "wx9ed74283ad25bca1", + path: "pages/index/index", + miniType: 2, // 1 开发版 2 体验版 + extJson: JSON.stringify({ + order_number: res.data.order_number + }) + }) } //微信 // if (ua.indexOf("dingtalk") > -1) { diff --git a/xw-pages/reduce.html b/xw-pages/reduce.html index 945d7c6..14f5bf2 100644 --- a/xw-pages/reduce.html +++ b/xw-pages/reduce.html @@ -267,9 +267,7 @@ this.loading = false; let ua = navigator.userAgent; // 邮储-唤起微信小程序 - alert(1) - if (ua.indexOf("CreditCardAppNew UnionPay/1.0") > -1) { - alert(11) + if (ua.indexOf("CreditCardAppNew") > -1) { return Fw.device.api.openWXMiniProgram({ programID: "wx9ed74283ad25bca1", path: "pages/index/index", diff --git a/xw-pages/wx-combining.html b/xw-pages/wx-combining.html index 43b5206..f19c237 100644 --- a/xw-pages/wx-combining.html +++ b/xw-pages/wx-combining.html @@ -517,9 +517,7 @@ /* 小程序 */ // 邮储-唤起微信小程序 let ua = navigator.userAgent; - alert(2) - if (ua.indexOf("CreditCardAppNew UnionPay/1.0") > -1) { - alert(22) + if (ua.indexOf("CreditCardAppNew") > -1) { Fw.device.api.openWXMiniProgram({ programID: "wx9ed74283ad25bca1", path: "pages/index/index",