手机银行唤起微信小程序

This commit is contained in:
lf 2024-07-24 16:41:23 +08:00
parent 69f582ae11
commit ddb8fddf68
6 changed files with 71 additions and 0 deletions

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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) {

View File

@ -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) {
// //在钉钉内置环境打开,不能唤起微信小程序

View File

@ -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);
}

View File

@ -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);
}