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
+15
View File
@@ -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();