Commit 7d0e0a79 authored by gengchunlei's avatar gengchunlei

居民端小程序 复筛详情字段样式调整

parent 7ebe6efc
......@@ -18,6 +18,7 @@ export function registe(app) {
app.config.globalProperties.$idCardHide = idCardHide
app.config.globalProperties.$phoneHide = phoneHide
app.config.globalProperties.$addrJoin = addrJoin
}
// idCard 脱敏
......@@ -35,3 +36,9 @@ function phoneHide(phone) {
}
return phone.substring(0, 3) + '******' + phone.substring(9)
}
// 地址拼接显示
function addrJoin(str1 = '', str2 = '') {
if (!str1 && !str2) return '-'
return (str1 ?? '') + (str2 ?? '')
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment