This commit is contained in:
liushiwei
2023-08-09 00:55:57 +08:00
parent 7b0c28f4c8
commit b9195c137e
5 changed files with 55 additions and 56 deletions

View File

@@ -90,7 +90,7 @@ const dateUtil = {
}
}
const userCheck = () => {
const userCheck = (mallId) => {
return new Promise((resolve, reject) => {
store.dispatch('getUserInfo').then(res => {
if (res.flag != 1) {
@@ -99,7 +99,7 @@ const userCheck = () => {
reject('您的账号未激活或已失效,请激活后使用')
return false
}
if (res.type != 4 && store.state.mallId != store.state.userInfo.mallId) {
if (res.type != 4 && mallId != store.state.userInfo.mallId) {
Message.error('您当前登录的TEMU账号与会员绑定账号不一致')
reject('您当前登录的TEMU账号与会员绑定账号不一致')
return false