fix(ui): 我的页继续瘦身 + 计算结果页客服按钮统一 + 历史页标题运行时回写

my-profile.vue:
- 整段移除「工具与服务」(邀请有礼当前未上线,剩它一项无意义)
- 同步清理 iconGift / goToInvite 残留

calculator-result.vue:
- 「联系专业营养师」按钮 MP-WEIXIN 端改用 <button open-type='contact'>
- 与 welcome-gift / customer-service 统一行为,零 JS API 依赖
- 非小程序端保留原 contactNutritionist 兜底
- contact-btn-mp 重置 button 默认 line-height/border 视觉一致

calculator-history.vue:
- onLoad 中 uni.setNavigationBarTitle 强制回写「我的计算记录」
- 兜底部分开发者工具/旧编译缓存把 UTF-8 标题渲染成乱码的场景

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
msh-agent
2026-05-03 03:44:04 +08:00
parent 1224ed328b
commit 560d4de275
3 changed files with 52 additions and 49 deletions

View File

@@ -63,6 +63,9 @@ export default {
}
},
onLoad() {
// 运行时强制回写中文标题,避免开发者工具/旧编译缓存读取 pages.json 时
// 出现页面标题乱码(部分版本会把 UTF-8 当 GBK 渲染)
uni.setNavigationBarTitle({ title: '我的计算记录' })
this.fetch()
},
onPullDownRefresh() {