diff --git a/components/vertify/vertify-worker-type.vue b/components/vertify/vertify-worker-type.vue index cab18fc..6284960 100644 --- a/components/vertify/vertify-worker-type.vue +++ b/components/vertify/vertify-worker-type.vue @@ -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' + }) } } } diff --git a/pages/index/index-home.vue b/pages/index/index-home.vue index f61f7ed..90ed355 100644 --- a/pages/index/index-home.vue +++ b/pages/index/index-home.vue @@ -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; }, diff --git a/pages/index/my-home.vue b/pages/index/my-home.vue index 1cb89c1..c10abde 100644 --- a/pages/index/my-home.vue +++ b/pages/index/my-home.vue @@ -109,6 +109,11 @@ name: '师傅缴费', icon: 'sponsor', pageUrl: '/pages/my/pay-deposit' + }, { + name: '退出登录', + icon: 'exit', + pageUrl: '/pages/login/login', + show: true }] } },