|
|
@@ -30,7 +30,7 @@ export default {
|
|
|
computed: {
|
|
|
mobile() {
|
|
|
let userMobile = this.userinfo.mobile
|
|
|
- if(!userMobile) return
|
|
|
+ if (!userMobile) return
|
|
|
return `${userMobile.slice(0, 3)}****${userMobile.slice(7, 11)}`
|
|
|
}
|
|
|
},
|
|
|
@@ -40,7 +40,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
- if(!this.userinfo.nickname) {
|
|
|
+ if (!this.userinfo.nickname) {
|
|
|
location.href = '/?loginbox=show'
|
|
|
}
|
|
|
},
|
|
|
@@ -49,7 +49,7 @@ export default {
|
|
|
let res = await this.$axios.$post('/api/user/sendMobileAuthCode', {
|
|
|
mobile: this.userinfo.mobile
|
|
|
})
|
|
|
- if(res) {
|
|
|
+ if (res) {
|
|
|
this.$message({
|
|
|
message: '发送成功,请查收',
|
|
|
type: 'success'
|
|
|
@@ -57,10 +57,11 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
changeAuthCode(val) {
|
|
|
+ console.log(val, !val);
|
|
|
this.authCode = val
|
|
|
},
|
|
|
async clickNext() {
|
|
|
- if(!this.authCode.length) {
|
|
|
+ if (!this.authCode) {
|
|
|
this.$message('请输入验证码')
|
|
|
return
|
|
|
}
|
|
|
@@ -68,7 +69,7 @@ export default {
|
|
|
mobile: this.userinfo.mobile,
|
|
|
auth_code: this.authCode,
|
|
|
})
|
|
|
- if(res) {
|
|
|
+ if (res) {
|
|
|
// 成功则保存history
|
|
|
localStorage.setItem('proginn-history', this.$route.path)
|
|
|
this.$router.push('/setting/check/change_mobile')
|
|
|
@@ -76,7 +77,7 @@ export default {
|
|
|
},
|
|
|
async doCheckReal() {
|
|
|
let res = await this.$axios.$post(`/api/user/check_realname`)
|
|
|
- if(res.data.realname_verify_status) {
|
|
|
+ if (res.data.realname_verify_status) {
|
|
|
// 成功则保存history
|
|
|
localStorage.setItem('proginn-history', this.$route.path)
|
|
|
this.$router.push('/setting/check/real_info')
|