新增营销系统、分销系统、会员功能、门店、提现功能

This commit is contained in:
Shaw
2024-02-08 21:01:37 +08:00
parent 68b3f2dcc3
commit 17c043348a
1398 changed files with 81279 additions and 56269 deletions

View File

@ -17,10 +17,17 @@ export const handleLoginFailure = () => {
if (["pages/login/guid", "pages/login/index"].includes(curRoute.route)) {
return;
}
const lastFullPath = `/${curRoute.route}?${PARAMS_KEY}=${curRoute.options[PARAMS_KEY]}`
let fullPath
// #ifndef MP-WEIXIN
fullPath = curRoute.$page.fullPath || `/${ curRoute.route }?${ PARAMS_KEY }=${ curRoute.$page.options[PARAMS_KEY] }`
// #endif
// #ifdef MP-WEIXIN
fullPath =`/${curRoute.route}?${PARAMS_KEY}=${curRoute.options[PARAMS_KEY]}`
// #endif
console.log(curRoute)
uni.setStorage({
key: 'lastFullPath',
data:lastFullPath
data: fullPath
})
uni.redirectTo({
url: '/pages/login/guid',
@ -29,10 +36,10 @@ export const handleLoginFailure = () => {
export const afterLogin = () => {
const tabsList = [
'/pages/goodsCategory/goodsCategory',
'/pages/index/index',
'/pages/shoppingCart/shoppingCart',
'/pages/user/user'
'/root/goodsCategory/goodsCategory',
'/root/index/index',
'/root/shoppingCart/shoppingCart',
'/root/user/user'
]
const lastPath = uni.getStorageSync('lastFullPath');
if (lastPath) {
@ -44,7 +51,7 @@ export const afterLogin = () => {
}
uni.removeStorageSync('lastFullPath')
} else {
uni.switchTab({url: '/pages/index/index'})
uni.switchTab({url: '/root/index/index'})
}
}