修改iOS H5支付

This commit is contained in:
2024-12-14 10:30:16 +08:00
parent e822e614b8
commit 4b9d78ec5a
5 changed files with 62 additions and 10 deletions

View File

@@ -528,7 +528,19 @@
this.getMyLoveStatus()
this.getMoneyList()
this.getMyMoney()
}else{
if(e.allId){
const arr=e.allId.split('-')
this.courseId = arr[0];
if (arr[1] && arr[1] != 'null') {
this.courseDetailsId = arr[1]
}
this.getMyLoveStatus()
this.getMoneyList()
this.getMyMoney()
}
}
},
methods: {
@@ -755,8 +767,13 @@
this.isCheckPay(ret.code, 'wxpay', JSON.stringify(ret.data));
})
} else if (this.openWay == 1) {
let paytype='h5'
// #ifdef APP
paytype='app'
// #endif
// APP支付宝支付
httpsRequest.getT("/app/wuyou/payOrder/" + this.ordersId, {}).then(ret => {
console.log('nvue payType='+paytype);
httpsRequest.getT("/app/wuyou/payOrder/" + this.ordersId+'?payType='+paytype, {}).then(ret => {
// plus.runtime.openURL(ret.data.h5Url)
uni.navigateTo({