增加app下载,支付失败优化

This commit is contained in:
GaoHao
2024-12-31 16:06:10 +08:00
parent 246d48a6e4
commit cfe567a206
5 changed files with 34 additions and 14 deletions

View File

@@ -810,10 +810,19 @@
console.log('nvue payType=' + paytype);
httpsRequest.getT("/app/wuyou/payOrder/" + this.ordersId + '?payType=' + paytype, {}).then(ret => {
// plus.runtime.openURL(ret.data.h5Url)
uni.navigateTo({
url: '/pages/pays/pays?ordersId=' + this.ordersId + '&url=' + ret.data.h5Url
});
if(ret.code == 0 ) {
uni.hideLoading()
uni.navigateTo({
url: '/pages/pays/pays?ordersId=' + this.ordersId + '&url=' + ret.data.h5Url
});
} else {
uni.hideLoading()
uni.showToast({
icon: res.msg,
title: '支付失败!'
});
}
// uni.navigateTo({
// url: '/pages/index/webView?ordersId='+this.ordersId+'url=' + ret.data.h5Url