feat:收银台区分标识返回页面
This commit is contained in:
@@ -131,6 +131,16 @@
|
||||
});
|
||||
};
|
||||
|
||||
const goAiStorePlazaTab = () => {
|
||||
const url = '/pages/index/aiStore';
|
||||
uni.redirectTo({
|
||||
url,
|
||||
fail: () => {
|
||||
uni.reLaunch({ url });
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
const onBackHome = () => {
|
||||
const returnTo = uni.getStorageSync('pay_return_to');
|
||||
if (returnTo === 'aiStore_myshop') {
|
||||
@@ -138,6 +148,11 @@
|
||||
goAiStoreMyShopTab();
|
||||
return;
|
||||
}
|
||||
if (returnTo === 'aiStore_plaza') {
|
||||
uni.removeStorageSync('pay_return_to');
|
||||
goAiStorePlazaTab();
|
||||
return;
|
||||
}
|
||||
const orderType = String(state.orderType || '').trim();
|
||||
if (orderType === 'aiGoods') {
|
||||
goAiStoreMyShopTab();
|
||||
|
||||
Reference in New Issue
Block a user