feat:收银台区分标识返回页面
This commit is contained in:
@@ -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: '提示',
|
||||
|
||||
Reference in New Issue
Block a user