修复小程序违规

This commit is contained in:
hero920103 committed 2026-11-16 18:25:44 +08:00
1 parent 3fdda89833
commit 54c90072fb
8 files changed
+28 -28

No files matched your search

+2 -2
View File
@@ -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() {