| | |
| | | <image class="header-img" src="../../static/images/head-img.jpg"></image> |
| | | <text class="font-18 white mt-5">333</text> |
| | | <text class="font-14 white mt-5">会员编号: 101010</text> |
| | | <text class="font-12 white mt-5">湖南 长沙 22</text> |
| | | <view class="flex align-center mt-5"> |
| | | <text class="font-12 white mr-10">{{this.eye==false?encryptAccount(15569216885):'15569216885'}}</text> |
| | | <text class="icon iconfont white" :class="this.eye==false?'iconyanjing':'iconyanjing1'" @click="eyeSwitch"></text> |
| | | </view> |
| | | <view class="flex align-center mt-10"> |
| | | <view class="icon-box flex justify-center align-center mr-20"> |
| | | <text class="icon iconfont icondianhua blue"></text> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | export default{ |
| | | data(){ |
| | | return{ |
| | | eye:false |
| | | } |
| | | }, |
| | | methods:{ |
| | | encryptAccount(val) { |
| | | if (/^1[3456789]\d{9}$/.test(val)) { |
| | | return String(val).substr(0, 3) + '****' + String(val).substr(7); |
| | | } else { |
| | | return val; |
| | | } |
| | | }, |
| | | eyeSwitch(){ |
| | | this.eye=!this.eye |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style> |