From f6a5c45639ac7dec073d28e55cb20ac2512469ad Mon Sep 17 00:00:00 2001 From: lf <1534621107@qq.com> Date: Wed, 24 Jul 2024 11:17:34 +0800 Subject: [PATCH] alert --- reduce.html | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/reduce.html b/reduce.html index 3306ba8..bb07917 100644 --- a/reduce.html +++ b/reduce.html @@ -258,22 +258,19 @@ } if (self.plaflam == 2) { // 邮储-唤起微信小程序 - // let ua = navigator.userAgent; //判断用户打开链接环境 - alert(8) - // if (ua.indexOf("CreditCardAppNew") > -1) { - // alert(8) - // window.open("weixin://dl/business/?t=qFSkO5EQyFh") - // return Fw.device.api.openWXMiniProgram({ - // programID: "wx9ed74283ad25bca1", - // path: "pages/index/index", - // miniType: 2, // 1 开发版 2 体验版 - // extJson: JSON.stringify({ - // theme_id: 'market_voucher', - // token: '', - // order_number: res.data.order_number - // }) - // }) - // } + let ua = navigator.userAgent; //判断用户打开链接环境 + alert(1) + if (ua.indexOf("CreditCardAppNew") > -1) { + alert(1) + return Fw.device.api.openWXMiniProgram({ + programID: "gh_07fecf7a6d31", + path: "pages/index/index", + miniType: 2, // 1 开发版 2 体验版 + extJson: JSON.stringify({ + order_number: res.data.order_number + }) + }) + } //微信 // if (ua.indexOf("dingtalk") > -1) { // //在钉钉内置环境打开,不能唤起微信小程序