首页引导弹窗问题修复;增加退出登录功能
This commit is contained in:
parent
1f7e1c07c8
commit
cacbb93ee7
|
|
@ -34,32 +34,22 @@
|
|||
this.isShow = false;
|
||||
},
|
||||
async chooseEntryType(typeCode) {
|
||||
let status = 1;
|
||||
this.hideModal();
|
||||
let curUserInfo = this.$request.getCurUserInfo();
|
||||
if (typeCode === 1) {
|
||||
status = 0;
|
||||
}
|
||||
let res = await this.$request.updateWorker({
|
||||
type: typeCode,
|
||||
status: status
|
||||
});
|
||||
if (res && res.code === 0) {
|
||||
this.hideModal();
|
||||
let curUserInfo = this.$request.getCurUserInfo();
|
||||
if (typeCode === 1) {
|
||||
if (curUserInfo && curUserInfo.storeStatus == 1) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/index/index?menuCode=supplyChainPage'
|
||||
})
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: '/pages/my/apply-shop'
|
||||
})
|
||||
}
|
||||
} else if (typeCode === 0) {
|
||||
if (curUserInfo && curUserInfo.storeStatus == 1) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/my/master-settled-info'
|
||||
url: '/pages/index/index?menuCode=supplyChainPage'
|
||||
})
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: '/pages/my/apply-shop'
|
||||
})
|
||||
}
|
||||
} else if (typeCode === 0) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/my/master-settled-info'
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -245,23 +245,6 @@
|
|||
let res = await this.$request.orderStatistics();
|
||||
this.orderStatistics = res.data;
|
||||
},
|
||||
async chooseEntryType(typeCode) {
|
||||
// let status = 1;
|
||||
// if (typeCode === 1) {
|
||||
// status = 0;
|
||||
// }
|
||||
// await this.$request.updateWorker({
|
||||
// type: typeCode,
|
||||
// status: status
|
||||
// });
|
||||
if (typeCode === 1) {
|
||||
this.$emit('changeCurPageCode', 'supplyChainPage');
|
||||
} else if (typeCode === 0) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/my/master-settled-info'
|
||||
})
|
||||
}
|
||||
},
|
||||
hideModal(e) {
|
||||
this[e.currentTarget.dataset.modal] = false;
|
||||
},
|
||||
|
|
|
|||
|
|
@ -109,6 +109,11 @@
|
|||
name: '师傅缴费',
|
||||
icon: 'sponsor',
|
||||
pageUrl: '/pages/my/pay-deposit'
|
||||
}, {
|
||||
name: '退出登录',
|
||||
icon: 'exit',
|
||||
pageUrl: '/pages/login/login',
|
||||
show: true
|
||||
}]
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue