feat:收银台区分标识返回页面

This commit is contained in:
2026-06-08 13:20:45 +08:00
parent 84ffbdee47
commit 65c229c37b
5 changed files with 34 additions and 4 deletions
+9 -3
View File
@@ -74,6 +74,7 @@
let payOrderId = ref('');
let orderInfo = ref({});
const userWallet = ref();
const returnTo = ref('');
let totalRecharge = ref();
// 检测支付环境
@@ -175,6 +176,7 @@
id.value = options.id || '';
payOrderId.value = options.payOrderId || '';
type.value = options.type || '';
returnTo.value = options.returnTo || '';
if (type.value == 2) {
state.orderType = 'aiRecharge';
@@ -206,9 +208,13 @@
sheep.$helper.toast('请选择余额支付');
return;
}
if (state.orderType === 'aiGoods') {
uni.setStorageSync('pay_return_to', 'aiStore_myshop');
}
if (returnTo.value) {
uni.setStorageSync('pay_return_to', returnTo.value);
} else if (String(type.value) === '2') {
uni.setStorageSync('pay_return_to', 'aiStore_plaza');
} else if (state.orderType === 'aiGoods') {
uni.setStorageSync('pay_return_to', 'aiStore_myshop');
}
if (state.payment === 'wallet') {
uni.showModal({
title: '提示',