邮储app 唤起微信小程序
This commit is contained in:
parent
760ecdeb2b
commit
4050c112f0
|
@ -549,16 +549,15 @@
|
|||
this.publicCollection();
|
||||
} else {
|
||||
/* 小程序 */
|
||||
let ua = navigator.userAgent;
|
||||
// 邮储-唤起微信小程序
|
||||
if (ua.indexOf("CreditCardAppNew") > -1) {
|
||||
let ua = navigator.userAgent; //判断用户打开链接环境
|
||||
if (ua.indexOf("CreditCardAppNew") > -1) { // 正式z 用 CreditCardAppNew UnionPay/1.0
|
||||
Fw.device.api.openWXMiniProgram({
|
||||
programID: "wx9ed74283ad25bca1",
|
||||
programID: "gh_07fecf7a6d31",
|
||||
path: "pages/index/index",
|
||||
miniType: 2, // 1 开发版 2 体验版
|
||||
extJson: {
|
||||
order_number: res.data.order_number
|
||||
}
|
||||
miniType: 2, // 1 开发版 2 体验版 // 正式z 删除
|
||||
extJson: JSON.stringify({
|
||||
...res.data
|
||||
})
|
||||
})
|
||||
} else {
|
||||
window.location.replace(res.data.redirect_url);
|
||||
|
|
|
@ -565,16 +565,15 @@
|
|||
this.publicCollection();
|
||||
} else {
|
||||
/* 小程序 */
|
||||
let ua = navigator.userAgent;
|
||||
// 邮储-唤起微信小程序
|
||||
if (ua.indexOf("CreditCardAppNew") > -1) {
|
||||
return Fw.device.api.openWXMiniProgram({
|
||||
programID: "wx9ed74283ad25bca1",
|
||||
let ua = navigator.userAgent; //判断用户打开链接环境
|
||||
if (ua.indexOf("CreditCardAppNew") > -1) { // 正式z 用 CreditCardAppNew UnionPay/1.0
|
||||
Fw.device.api.openWXMiniProgram({
|
||||
programID: "gh_07fecf7a6d31",
|
||||
path: "pages/index/index",
|
||||
miniType: 2, // 1 开发版 2 体验版
|
||||
extJson: {
|
||||
order_number: res.data.order_number
|
||||
}
|
||||
miniType: 2, // 1 开发版 2 体验版 // 正式z 删除
|
||||
extJson: JSON.stringify({
|
||||
...res.data
|
||||
})
|
||||
})
|
||||
} else {
|
||||
window.location.replace(res.data.redirect_url);
|
||||
|
|
|
@ -262,14 +262,14 @@
|
|||
self.toLinkAlipay();
|
||||
}
|
||||
if (self.plaflam == 2) {
|
||||
if (ua.indexOf("CreditCardAppNew") > -1) {
|
||||
if (ua.indexOf("CreditCardAppNew") > -1) { // 正式z 用 CreditCardAppNew UnionPay/1.0
|
||||
return Fw.device.api.openWXMiniProgram({
|
||||
programID: "wx9ed74283ad25bca1",
|
||||
programID: "gh_07fecf7a6d31",
|
||||
path: "pages/index/index",
|
||||
miniType: 2, // 1 开发版 2 体验版
|
||||
extJson: {
|
||||
order_number: res.data.order_number
|
||||
}
|
||||
miniType: 2, // 1 开发版 2 体验版 // 正式z 删除
|
||||
extJson: JSON.stringify({
|
||||
...res.data
|
||||
})
|
||||
})
|
||||
}
|
||||
//微信
|
||||
|
|
27
reduce.html
27
reduce.html
|
@ -258,18 +258,18 @@
|
|||
}
|
||||
if (self.plaflam == 2) {
|
||||
// 邮储-唤起微信小程序
|
||||
alert(3)
|
||||
// let ua = navigator.userAgent; //判断用户打开链接环境
|
||||
// if (ua.indexOf("CreditCardAppNew") > -1) {
|
||||
// return Fw.device.api.openWXMiniProgram({
|
||||
// programID: "gh_07fecf7a6d31",
|
||||
// path: "pages/index/index",
|
||||
// // miniType: 2, // 1 开发版 2 体验版
|
||||
// extJson: JSON.stringify({
|
||||
// ...res.data
|
||||
// })
|
||||
// })
|
||||
// }
|
||||
let ua = navigator.userAgent; //判断用户打开链接环境
|
||||
if (ua.indexOf("CreditCardAppNew") > -1) { // 正式z 用 CreditCardAppNew UnionPay/1.0
|
||||
this.loading = false;
|
||||
return Fw.device.api.openWXMiniProgram({
|
||||
programID: "gh_07fecf7a6d31",
|
||||
path: "pages/index/index",
|
||||
miniType: 2, // 1 开发版 2 体验版 // 正式z 删除
|
||||
extJson: JSON.stringify({
|
||||
...res.data
|
||||
})
|
||||
})
|
||||
}
|
||||
//微信
|
||||
// if (ua.indexOf("dingtalk") > -1) {
|
||||
// //在钉钉内置环境打开,不能唤起微信小程序
|
||||
|
@ -280,8 +280,7 @@
|
|||
} else {
|
||||
this.loading = false;
|
||||
//唤起微信福利官小程序
|
||||
// window.location.replace(res.data.redirect_url);
|
||||
window.open(res.data.redirect_url)
|
||||
window.location.replace(res.data.redirect_url);
|
||||
}
|
||||
|
||||
// }
|
||||
|
|
|
@ -265,16 +265,15 @@
|
|||
} else {
|
||||
// 第二步:其它环境 微信小程序
|
||||
this.loading = false;
|
||||
let ua = navigator.userAgent;
|
||||
// 邮储-唤起微信小程序
|
||||
if (ua.indexOf("CreditCardAppNew") > -1) {
|
||||
return Fw.device.api.openWXMiniProgram({
|
||||
programID: "wx9ed74283ad25bca1",
|
||||
let ua = navigator.userAgent; //判断用户打开链接环境
|
||||
if (ua.indexOf("CreditCardAppNew") > -1) { // 正式z 用 CreditCardAppNew UnionPay/1.0
|
||||
Fw.device.api.openWXMiniProgram({
|
||||
programID: "gh_07fecf7a6d31",
|
||||
path: "pages/index/index",
|
||||
miniType: 2, // 1 开发版 2 体验版
|
||||
extJson: {
|
||||
order_number: res.data.order_number
|
||||
}
|
||||
miniType: 2, // 1 开发版 2 体验版 // 正式z 删除
|
||||
extJson: JSON.stringify({
|
||||
...res.data
|
||||
})
|
||||
})
|
||||
} else {
|
||||
window.location.replace(res.data.redirect_url);
|
||||
|
|
|
@ -516,15 +516,15 @@
|
|||
} else {
|
||||
/* 小程序 */
|
||||
// 邮储-唤起微信小程序
|
||||
let ua = navigator.userAgent;
|
||||
if (ua.indexOf("CreditCardAppNew") > -1) {
|
||||
let ua = navigator.userAgent; //判断用户打开链接环境
|
||||
if (ua.indexOf("CreditCardAppNew") > -1) { // 正式z 用 CreditCardAppNew UnionPay/1.0
|
||||
Fw.device.api.openWXMiniProgram({
|
||||
programID: "wx9ed74283ad25bca1",
|
||||
programID: "gh_07fecf7a6d31",
|
||||
path: "pages/index/index",
|
||||
miniType: 2, // 1 开发版 2 体验版
|
||||
extJson: {
|
||||
order_number: res.data.order_number
|
||||
}
|
||||
miniType: 2, // 1 开发版 2 体验版 // 正式z 删除
|
||||
extJson: JSON.stringify({
|
||||
...res.data
|
||||
})
|
||||
})
|
||||
} else {
|
||||
window.location.replace(res.data.redirect_url);
|
||||
|
|
Loading…
Reference in New Issue