- 手机号/账号全场景一律脱敏:SensitiveFieldPolicy 删除完整值分支与 ADMIN_EDIT,SELF_PROFILE 同样脱敏;convertToVO 全调用点统一脱敏 - 联系信息接口不再返回号码:toContact 置空 phone 并给出 phoneAvailable,补齐 ensureUserCanSeeShop 真实可见范围校验 - 新增 POST /contact-info/dial,按 scene(SHOP_MANAGER/ORDER_ARTIST/PRODUCT_ARTIST/PLATFORM) 一次一取;DialTargetProvider 抽象直连/隐私号,未配置隐私号返回 9001 且不回退真实号;/contact-info/** 按用户限流并记录审计 - 验证码与换绑手机号改为服务端按当前登录用户取号,客户端 phone/oldPhone 参数兼容忽略;前端与小程序同步去掉回传 - 消息发布人昵称兜底改为脱敏账号,避免 account 明文写入 publisher_name - 新增 V5 账号加密与账号哈希、V6 协议文本改为全场景脱敏与单次拨号取号
This commit is contained in:
@@ -19,6 +19,7 @@ const reviews = ref<OrderArtistReviewVO[]>([])
|
||||
const changeRequests = ref<OrderArtistChangeRequestVO[]>([])
|
||||
const afterSales = ref<AfterSaleVO[]>([])
|
||||
const contact = ref<ContactInfoVO | null>(null)
|
||||
const dialing = ref(false)
|
||||
const quoteReply = ref('')
|
||||
const quoteSubmitting = ref(false)
|
||||
const quoteConfirming = ref(false)
|
||||
@@ -130,6 +131,20 @@ const loadRelated = async () => {
|
||||
contact.value = contactInfo
|
||||
}
|
||||
|
||||
/** 单次取号后立即拨号:不缓存号码,仅使用本次返回的 dialNumber。 */
|
||||
const dialArtist = async () => {
|
||||
if (!orderId.value) return
|
||||
dialing.value = true
|
||||
try {
|
||||
const result = await userApi.dialContact('ORDER_ARTIST', orderId.value)
|
||||
window.location.href = `tel:${result.dialNumber}`
|
||||
} catch (error: any) {
|
||||
message.error(error?.message || '获取拨号号码失败')
|
||||
} finally {
|
||||
dialing.value = false
|
||||
}
|
||||
}
|
||||
|
||||
const loadOrder = async () => {
|
||||
if (!orderId.value) {
|
||||
order.value = null
|
||||
@@ -334,7 +349,9 @@ onMounted(loadOrder)
|
||||
<section v-if="contact" class="section-card">
|
||||
<h3>联系信息</h3>
|
||||
<p>{{ contact.contactName || contact.roleLabel || '服务联系人' }}</p>
|
||||
<p v-if="contact.phoneAvailable && contact.phone">电话:{{ contact.phone }}</p>
|
||||
<p v-if="contact.phoneAvailable">
|
||||
<a-button size="small" :loading="dialing" @click="dialArtist">拨打美甲师电话</a-button>
|
||||
</p>
|
||||
<p v-if="contact.wechatAvailable && contact.wechatId">微信:{{ contact.wechatId }}</p>
|
||||
<p v-if="contact.platformContactText">{{ contact.platformContactText }}</p>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user