This commit is contained in:
yanran200730
2023-08-08 11:21:15 +08:00
parent 3b1de45fbf
commit e2e0543e0b
3 changed files with 7 additions and 6 deletions

View File

@@ -18,6 +18,7 @@ dayjs.extend(relativeTime)
Vue.prototype.$dayjs = dayjs
Object.keys(utils).forEach(v => Vue.prototype[`$${v}`] = utils[v])
Vue.prototype.$http = instance
new Vue({

View File

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

View File

@@ -280,7 +280,7 @@
return;
}
this.$userCheck.then(() => {
this.$userCheck().then(() => {
if (this.choosedList.length <= 0) {
Message.error('请选择备货单');
return;