注册有礼

This commit is contained in:
2024-04-24 23:14:34 +08:00
parent 7f6ace8ac6
commit 5bbfff9e21
3 changed files with 4 additions and 2 deletions

View File

@@ -85,6 +85,8 @@ const navigateTo = (e: any) => {
pay({
'orderId': orderBean.value?.id,
'result': 'xxx'
}).then(res => {
uni.navigateBack();
});
}
});

View File

@@ -264,6 +264,7 @@ const payment = async () => {
}]
};
await overPayment(paymentParams);
await uni.navigateBack()
uni.hideLoading();
};
</script>

View File

@@ -98,15 +98,14 @@ const buildSqbParams = computed(() => {
const navigateTo = (e: any) => {
handlePayResult(preRechargeOrderId.value, e, {
onSuccess: async () => {
console.log('---------->>> recharge success ');
await goRecharge();
await userState.setUserInfo({
...userInfo.value,
balance: Number(userInfo.value.balance) + Number(rechargeItems.value[currentIndex.value].rechargeamount) + Number(rechargeItems.value[currentIndex.value]?.rewardamount)
});
await uni.navigateBack()
},
onFailure: () => {
console.log('---------->>> recharge failure ');
}
});
};