diff --git a/pages/login.vue b/pages/login.vue index 538895b..32021a8 100644 --- a/pages/login.vue +++ b/pages/login.vue @@ -102,6 +102,16 @@ export default { return } + if (user.userType) { + switch (user.userType) { + case 2: + uni.reLaunch({ + url: `/sub/invite/index` + }) + break + } + return + } // 局内用户首次登录 if (user.audit == null || user.audit == 1) { // 局内用户首次登录 diff --git a/sub/invite/addEnterprise.vue b/sub/invite/addEnterprise.vue index 7d92b40..77336d6 100644 --- a/sub/invite/addEnterprise.vue +++ b/sub/invite/addEnterprise.vue @@ -267,6 +267,8 @@ export default { } }, onShow() { + console.log('onShow', this.prove) + uni.$on('enterpriseIntroduce', data => { this.form.introduction = data.introduce }) @@ -274,6 +276,8 @@ export default { this.form.tags = data }) uni.$on('prove', data => { + console.log('资质', this.prove) + console.log('资质返回', data) if (this.form.id != '') { this.getProve() } else { @@ -342,6 +346,7 @@ export default { this.getProve() }, async getProve() { + console.log('getProve', this.prove) const load = this.$util.loading() const prove = await getProveList({ enterpriseId: this.form.id }) load.close() @@ -456,8 +461,8 @@ export default { uni.showToast({ icon: 'none', title: '操作成功' - }) - uni.navigateBack() + }) + uni.navigateBack() }) } else { createEnterPrise(data).then(res => { diff --git a/sub/owner/edit.vue b/sub/owner/edit.vue index 40c16e5..c40abdd 100644 --- a/sub/owner/edit.vue +++ b/sub/owner/edit.vue @@ -243,9 +243,15 @@ export default { mask: true, title: '提交中...' }) - if (!this.validateForm()) return - updateUserProfile(this.form).then(res => { + if (!this.validateForm()) { uni.hideLoading() + + return + } + updateUserProfile(this.form).then(res => { + setTimeout(function () { + uni.hideLoading() + }, 300) uni.showToast({ title: '操作成功', icon: 'success',