diff --git a/pages/index/index.vue b/pages/index/index.vue index 285d0ae..c9a6f52 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -39,7 +39,15 @@ forwardingPageCode: null } }, - onLoad(options) { + onLoad(options) { + + let curUserInfo = this.$request.getCurUserInfo(); + if(!curUserInfo) { + uni.reLaunch({ + url: '/pages/login/login' + }) + return + } this.loadData(); if (options && options.menuCode) { this.changeCurPageCode(options.menuCode) diff --git a/pages/login/login.vue b/pages/login/login.vue index f05ea6a..3ae6c37 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -82,7 +82,16 @@ - + + + + + @@ -120,7 +129,8 @@ changeOperType() { this.reset(); this.operType = this.operType === 0 ? 1 : 0; - if (this.operType === 1) { + if (this.operType === 1) { + this.$refs.focusModal.showModal(); this.authLogin(); } }, diff --git a/pages/my/certification.vue b/pages/my/certification.vue index f1f5a14..61edb0a 100644 --- a/pages/my/certification.vue +++ b/pages/my/certification.vue @@ -119,18 +119,22 @@ placeholder="请输入公司执照号码"> - 公司地址 - + 公司区域 + {{realNameInfo.companyArea && realNameInfo.companyArea.length ? realNameInfo.companyArea[0].areaName + '-' + realNameInfo.companyArea[1].areaName + '-' + realNameInfo.companyArea[2].areaName : '请选择'}} - - -