This commit is contained in:
xiaozhiyong
2023-09-19 16:31:09 +08:00
parent aaa0058528
commit 27b6f29c00
5 changed files with 39 additions and 13 deletions

View File

@@ -8,7 +8,7 @@
<view class="card">
<view class="info">
<view>{{user.name || ''}}</view>
<view>{{user.userPhone || ''}}</view>
<view>{{phoneHandle}}</view>
</view>
<tki-qrcode ref="qrcode" cid="2" :val="qrcodeText" :size="400" :isHaveBg="false" pdground="#000"
foreground="#000" background="#fff" onval showLoading loadMake />
@@ -36,6 +36,14 @@
created() {
this.getQrStr()
},
computed: {
phoneHandle() {
let phone = this.user.userPhone
console.log('user',this.user)
if(!phone) return ''
return `${phone.substr(0,3)}****${phone.substr(-4)}`
}
},
methods: {
getQrStr(reset = 0) {
console.log('this.user', this.user)