|
@@ -19,7 +19,7 @@
|
|
<image v-bind:src="headUrl" class="headPortrait"></image>
|
|
<image v-bind:src="headUrl" class="headPortrait"></image>
|
|
<view class="personal">
|
|
<view class="personal">
|
|
<view @click="toLogin" class="information">{{hasLogin? username : '立即登录' }}</view>
|
|
<view @click="toLogin" class="information">{{hasLogin? username : '立即登录' }}</view>
|
|
- <view class="information">{{userphone}}</view>
|
|
|
|
|
|
+ <view class="information">{{starUserphone}}</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
</view>
|
|
</view>
|
|
@@ -257,7 +257,12 @@
|
|
},
|
|
},
|
|
// #endif
|
|
// #endif
|
|
computed: {
|
|
computed: {
|
|
- ...mapState(['hasLogin', 'userInfo'])
|
|
|
|
|
|
+ ...mapState(['hasLogin', 'userInfo']),
|
|
|
|
+ // 手机号中间4位加*
|
|
|
|
+ starUserphone(){
|
|
|
|
+ let reg = /^(\d{3})\d{4}(\d{4})$/;
|
|
|
|
+ return this.userphone.replace(reg, "$1****$2");
|
|
|
|
+ }
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
uni.showTabBar()
|
|
uni.showTabBar()
|