|
@@ -19,7 +19,7 @@
|
|
|
<view v-if='status' class='currectstatus'>已认证</view>
|
|
|
<view v-if='!status' class='currectstatus1'>未认证</view>
|
|
|
</view>
|
|
|
- <view class='phone'>{{phone}}</view>
|
|
|
+ <view class='phone'>{{starUserphone}}</view>
|
|
|
</view>
|
|
|
<view class='information' v-else @click="toLogin">立即登录</view>
|
|
|
</view>
|
|
@@ -192,11 +192,12 @@
|
|
|
} else {
|
|
|
this.cargoCall = "女士"
|
|
|
}
|
|
|
+ }else{
|
|
|
+ this.userName = this.userInfo.userName
|
|
|
}
|
|
|
-
|
|
|
})
|
|
|
- this.phone = this.userInfo.phone ? this.userInfo.phone.replace(this.userInfo.phone.substring(3, 7),
|
|
|
- "****") : ''
|
|
|
+ // this.phone = this.userInfo.phone ? this.userInfo.phone.replace(this.userInfo.phone.substring(3, 7),"****") : ''
|
|
|
+ this.phone = this.userInfo.phone
|
|
|
if (!this.cargoCall) {
|
|
|
this.userName = this.userInfo.userName
|
|
|
}
|
|
@@ -213,12 +214,12 @@
|
|
|
computed: {
|
|
|
...mapState(['hasLogin', 'userInfo', "firstAuthentication"]),
|
|
|
// 手机号中间4位加*
|
|
|
- // starUserphone() {
|
|
|
- // let reg = /^(\d{3})\d{4}(\d{4})$/;
|
|
|
- // if (this.userphone) {
|
|
|
- // return this.userphone.replace(reg, "$1****$2");
|
|
|
- // }
|
|
|
- // }
|
|
|
+ starUserphone() {
|
|
|
+ let reg = /^(\d{3})\d{4}(\d{4})$/;
|
|
|
+ if (this.phone) {
|
|
|
+ return this.phone.replace(reg, "$1****$2");
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
scanCode() {
|