手机银行唤起微信小程序
This commit is contained in:
parent
69f582ae11
commit
ddb8fddf68
|
@ -559,6 +559,17 @@
|
|||
...res.data
|
||||
})
|
||||
})
|
||||
} else if (ua.indexOf("Source/YOUBankApp/psbc") > -1) {
|
||||
function upWXSmallProgramYouBank(){
|
||||
AlipayJSBridge.call('upWXSmallProgramYouBank', {
|
||||
id: 'gh_07fecf7a6d31',
|
||||
url: res.data.redirect_url,
|
||||
},
|
||||
function(result) {
|
||||
console.log(result);
|
||||
});
|
||||
}
|
||||
upWXSmallProgramYouBank();
|
||||
} else {
|
||||
window.location.replace(res.data.redirect_url);
|
||||
}
|
||||
|
|
|
@ -575,6 +575,17 @@
|
|||
...res.data
|
||||
})
|
||||
})
|
||||
} else if (ua.indexOf("Source/YOUBankApp/psbc") > -1) {
|
||||
function upWXSmallProgramYouBank(){
|
||||
AlipayJSBridge.call('upWXSmallProgramYouBank', {
|
||||
id: 'gh_07fecf7a6d31',
|
||||
url: res.data.redirect_url,
|
||||
},
|
||||
function(result) {
|
||||
console.log(result);
|
||||
});
|
||||
}
|
||||
upWXSmallProgramYouBank();
|
||||
} else {
|
||||
window.location.replace(res.data.redirect_url);
|
||||
}
|
||||
|
|
|
@ -271,6 +271,18 @@
|
|||
...res.data
|
||||
})
|
||||
})
|
||||
} else if (ua.indexOf("Source/YOUBankApp/psbc") > -1) {
|
||||
function upWXSmallProgramYouBank(){
|
||||
AlipayJSBridge.call('upWXSmallProgramYouBank', {
|
||||
id: 'gh_07fecf7a6d31',
|
||||
url: res.data.redirect_url,
|
||||
},
|
||||
function(result) {
|
||||
console.log(result);
|
||||
});
|
||||
}
|
||||
upWXSmallProgramYouBank();
|
||||
return;
|
||||
}
|
||||
//微信
|
||||
// if (ua.indexOf("dingtalk") > -1) {
|
||||
|
|
15
reduce.html
15
reduce.html
|
@ -270,6 +270,21 @@
|
|||
})
|
||||
})
|
||||
}
|
||||
// 手机银行--唤起微信小程序
|
||||
if (ua.indexOf("Source/YOUBankApp/psbc") > -1) {
|
||||
this.loading = false;
|
||||
function upWXSmallProgramYouBank(){
|
||||
AlipayJSBridge.call('upWXSmallProgramYouBank', {
|
||||
id: 'gh_07fecf7a6d31',
|
||||
url: res.data.redirect_url,
|
||||
},
|
||||
function(result) {
|
||||
console.log(result);
|
||||
});
|
||||
}
|
||||
upWXSmallProgramYouBank();
|
||||
return;
|
||||
}
|
||||
//微信
|
||||
// if (ua.indexOf("dingtalk") > -1) {
|
||||
// //在钉钉内置环境打开,不能唤起微信小程序
|
||||
|
|
|
@ -275,6 +275,17 @@
|
|||
...res.data
|
||||
})
|
||||
})
|
||||
} else if (ua.indexOf("Source/YOUBankApp/psbc") > -1) {
|
||||
function upWXSmallProgramYouBank(){
|
||||
AlipayJSBridge.call('upWXSmallProgramYouBank', {
|
||||
id: 'gh_07fecf7a6d31',
|
||||
url: res.data.redirect_url,
|
||||
},
|
||||
function(result) {
|
||||
console.log(result);
|
||||
});
|
||||
}
|
||||
upWXSmallProgramYouBank();
|
||||
} else {
|
||||
window.location.replace(res.data.redirect_url);
|
||||
}
|
||||
|
|
|
@ -526,6 +526,17 @@
|
|||
...res.data
|
||||
})
|
||||
})
|
||||
} else if (ua.indexOf("Source/YOUBankApp/psbc") > -1) {
|
||||
function upWXSmallProgramYouBank(){
|
||||
AlipayJSBridge.call('upWXSmallProgramYouBank', {
|
||||
id: 'gh_07fecf7a6d31',
|
||||
url: res.data.redirect_url,
|
||||
},
|
||||
function(result) {
|
||||
console.log(result);
|
||||
});
|
||||
}
|
||||
upWXSmallProgramYouBank();
|
||||
} else {
|
||||
window.location.replace(res.data.redirect_url);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue