feat: 一键分享按钮展示调整

This commit is contained in:
2026-06-05 16:16:13 +08:00
parent 07740f7746
commit a1c5dd5514
9 changed files with 55 additions and 20 deletions
+19 -2
View File
@@ -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');