Browse Source

修改登录逻辑

master
parent
commit
a8de1baafc
  1. 10
      pages/login.vue
  2. 9
      sub/invite/addEnterprise.vue
  3. 10
      sub/owner/edit.vue

10
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) {
//

9
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 => {

10
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',

Loading…
Cancel
Save