feat: 一键分享按钮展示调整
This commit is contained in:
+19
-2
@@ -121,9 +121,26 @@
|
||||
}
|
||||
});
|
||||
|
||||
const goAiStoreMyShopTab = () => {
|
||||
const url = '/pages/index/aiStore?tab=1';
|
||||
uni.redirectTo({
|
||||
url,
|
||||
fail: () => {
|
||||
uni.reLaunch({ url });
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
const onBackHome = () => {
|
||||
if (state.orderType === 'aiGoods') {
|
||||
uni.reLaunch({ url: '/pages/index/aiStore?tab=1' });
|
||||
const returnTo = uni.getStorageSync('pay_return_to');
|
||||
if (returnTo === 'aiStore_myshop') {
|
||||
uni.removeStorageSync('pay_return_to');
|
||||
goAiStoreMyShopTab();
|
||||
return;
|
||||
}
|
||||
const orderType = String(state.orderType || '').trim();
|
||||
if (orderType === 'aiGoods') {
|
||||
goAiStoreMyShopTab();
|
||||
return;
|
||||
}
|
||||
sheep.$router.redirect('/pages/index/index');
|
||||
|
||||
Reference in New Issue
Block a user