|
|
@@ -221,21 +221,28 @@
|
|
|
},
|
|
|
showLevel () {
|
|
|
var totle = !!(this.user.user.identityValidCode === 2) + !!(this.user.user.hasQuestion) + !!(this.user.user.mobileValidCode === 2) + !!(this.user.user.passwordLevel >= 2) + !!(this.user.user.emailValidCode === 2)
|
|
|
- switch (totle) {
|
|
|
- case 0:
|
|
|
- case 1:
|
|
|
- case 2:
|
|
|
- // 低
|
|
|
- this.accountLevel = 0
|
|
|
- break
|
|
|
- case 3:
|
|
|
- case 4:
|
|
|
- // 中
|
|
|
- this.accountLevel = 1
|
|
|
- break
|
|
|
- default:
|
|
|
- // 高
|
|
|
- this.accountLevel = 2
|
|
|
+ // switch (totle) {
|
|
|
+ // case 0:
|
|
|
+ // case 1:
|
|
|
+ // case 2:
|
|
|
+ // // 低
|
|
|
+ // this.accountLevel = 0
|
|
|
+ // break
|
|
|
+ // case 3:
|
|
|
+ // case 4:
|
|
|
+ // // 中
|
|
|
+ // this.accountLevel = 1
|
|
|
+ // break
|
|
|
+ // default:
|
|
|
+ // // 高
|
|
|
+ // this.accountLevel = 2
|
|
|
+ // }
|
|
|
+ if (totle === 0 || totle === 1 || totle === 2) {
|
|
|
+ this.accountLevel = 0
|
|
|
+ } else if (totle === 3 || totle === 4) {
|
|
|
+ this.accountLevel = 1
|
|
|
+ } else {
|
|
|
+ this.accountLevel = 2
|
|
|
}
|
|
|
}
|
|
|
}
|