Logo
Explore Help
Register Sign In
xkyy/xk-client-wx
1
0
Fork 0
You've already forked xk-client-wx
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
2d2a8abfd4e87d74dc231d6abbeaa0f2fe2e9fc5
xk-client-wx/utils/formatStoreNameWithHu.js

13 lines
390 B
JavaScript
Raw Normal View History

feat(home/chat): 列表骨架屏、聊天室己方头像与协议/医生详情优化 - 新增分包组件 ListSkeleton(doctor/message/product/article/category/zone) - 首页/消息/资讯首次加载改用骨架屏,刷新不再清空旧数据避免闪空 · 去掉 home getList、消息 onShow 中的数组清空 · 三页 pages.json 增加 easycom 与 componentPlaceholder 主包异步引用 - 聊天室己方头像改为读取本地 userinfo.avatarurl(登录后微信头像), mycollection 上传头像成功后同步写回 storage - 修复协议抽屉点不开:page-container 改为 v-if + :show; 协议名单独可点节点,匹配放宽 name/desc 双向 includes - 医生气泡头像可点击进入 doctor-detail?readonly=1 只读医生详情, 隐藏预约挂号区
2026-07-19 16:08:04 +08:00
/**
* 在线处方诊所名追加「(互)」:is_online 为 1/2/3,线下 0 不加
*/
export function formatStoreNameWithHu(storeName, isOnline) {
const name = String(storeName || '').trim()
if (!name) return ''
const online = Number(isOnline)
if (online === 1 || online === 2 || online === 3) {
return name.endsWith('(互)') ? name : `${name}(互)`
}
return name
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 25.5.0 Page: 38ms Template: 2ms
English
English 简体中文 繁體中文(台灣) 繁體中文(香港)
Licenses API