feat: 修改api地址
This commit is contained in:
@@ -63,8 +63,6 @@
|
||||
current.value = e.detail.current;
|
||||
};
|
||||
|
||||
const HOME_DEFAULT_TAB_STORAGE_KEY = 'home.goods.defaultTabName';
|
||||
|
||||
const parsePath = (raw) => {
|
||||
const s = typeof raw === 'string' ? raw : '';
|
||||
const [p] = s.split('?');
|
||||
@@ -88,20 +86,11 @@
|
||||
if (!opened) {
|
||||
const message =
|
||||
'您尚未开通AI店铺,无法查看购物车。请先开通AI店铺后再进行购买。';
|
||||
uni.setStorageSync(HOME_DEFAULT_TAB_STORAGE_KEY, '会员优选');
|
||||
uni.showToast({
|
||||
title: message,
|
||||
icon: 'none',
|
||||
duration: 2500,
|
||||
});
|
||||
setTimeout(() => {
|
||||
uni.switchTab({
|
||||
url: '/pages/index/index',
|
||||
fail: () => {
|
||||
uni.reLaunch({ url: '/pages/index/index' });
|
||||
},
|
||||
});
|
||||
}, 1000);
|
||||
return;
|
||||
}
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user