修复小程序违规
This commit is contained in:
1 parent
3fdda89833
commit
54c90072fb
8 files changed
+28
-28
No files matched your search
@@ -62,7 +62,7 @@
|
||||
<view class="field">
|
||||
<text class="label">手机号</text>
|
||||
<view class="readonly">
|
||||
<text>{{ mobileMask || '微信已验证' }}</text>
|
||||
<text>{{ mobileMask || '手机号已验证' }}</text>
|
||||
<text class="readonly-tag">不可修改</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -101,7 +101,7 @@
|
||||
<text class="edit-label">手机号</text>
|
||||
<view class="edit-readonly">
|
||||
<text>{{ phoneText }}</text>
|
||||
<text class="readonly-tag">微信验证,不可修改</text>
|
||||
<text class="readonly-tag">已验证,不可修改</text>
|
||||
</view>
|
||||
</view>
|
||||
<text v-if="editError" class="edit-error">{{ editError }}</text>
|
||||
@@ -199,7 +199,7 @@ const editForm = reactive({ name: '', email: '' })
|
||||
const phoneText = computed(() => {
|
||||
const u = user.value || {}
|
||||
const p = u.phone || (u.account && /^1\d{10}$/.test(String(u.account)) ? String(u.account) : '')
|
||||
return p ? String(p).replace(/(\d{3})\d{4}(\d{4})/, '$1****$2') : '微信已验证'
|
||||
return p ? String(p).replace(/(\d{3})\d{4}(\d{4})/, '$1****$2') : '手机号已验证'
|
||||
})
|
||||
|
||||
function onEdit() {
|
||||
|
||||
Reference in new issue
Block a user