Council
|
80ea6bfdef
|
refactor(iconfont): 主包精简 Phase 4B — u-icon 全量替换为 iconfont
【背景】
VR 扩展引入的 u-icon 组件通过 easycom 全局注册,导致主包引入:
- u-icon.wxss base64 副本 224.7 KB
- iconfont.json 元数据 85.8 KB
- u-icon.vue 1.7 KB
合计 ≈312 KB 冗余。
原版项目已有 <iconfont> 全局组件,功能等价。直接用 iconfont 替换可彻底消除冗余。
【变更】
1) components/iconfont/iconfont.vue 增强
- 新增 #ifdef APP-NVUE 分支(合并 u-icon.vue 的 NVUE 逻辑)
- iconfontCode computed:剥离 'icon-' 前缀后查 glyphs
- iconSizeNvue computed:NVUE 单位补全
- mounted 中调用 domModule.addRule('fontFace') 注册字体
- 保留全部 iOS 修复注释
2) 替换 31 处 <u-icon> → <iconfont>
- 属性映射:propName→name(+icon-前缀)、propColor→color、propSize→size
- 动态 :propName 改写为 :name="'icon-'+var"
3) 删除
- components/u-icon/u-icon.vue
- components/u-icon/ 空目录
4) 修改的 11 个文件
- pages/plugins/video/detail/detail.nvue (14 处)
- pages/plugins/video/components/{loading,comment-info,comment-more,search}.vue (5 处)
- pages/plugins/live/pull/pull.vue + pull.nvue (3 处)
- pages/plugins/live/pull/components/{goods,live-content}/*.vue (7 处)
- components/u-popup/u-popup.vue (1 处)
- components/u-share-popup/u-share-popup.vue (1 处)
【效果】
- 用户实测:主包 2347.6 KB → 1997.9 KB(与原版 6.8 持平)
- 进一步在 HBuilder 中将 iconfont.json 加入自动排除列表后 → 1919.7 KB
- 比原版 6.8(1997 KB)小 77 KB
【风险】
- LOW(gitnexus detect_changes: 0 affected processes)
- NVUE 兼容性:iconfont.vue 已继承 u-icon.vue 全部 NVUE 逻辑(用户实测视频详情页正常)
- 直播场景:因项目无直播环境,未在生产 NVUE 验证(待启用时手动测试)
【验证】
- 用户实测:视频详情页、商品页图标显示正常
- 弹窗关闭图标(u-popup / u-share-popup)显示正常
|
2026-07-01 18:12:21 +08:00 |
Council
|
4438a84056
|
fix(iOS微信真机): 修复核销记录页高度塌陷+header点击穿透+iconfont裁剪
1. records/index.css: .records-page 加 height:100vh (同 verify 修复)
- 原先只有 min-height:100vh,iOS flex:1 scroll-view 高度塌陷
2. records/index.css + verify/index.css: header pointer-events 修复
- backdrop-filter 在 iOS 创建合成层会拦截下方点击
- header 容器 pointer-events:none,header-inner pointer-events:auto
- 修复 header 半透明区域无法点击、返回按钮无响应
3. records/index.vue: getApp() 从顶层移到 onLoad() (同 verify 修复)
- 消除 subpackage evaluate 时机隐患
- 5 处 app.globalData 改为 getApp().globalData
4. iconfont.vue: 修复 iOS 大尺寸 icon 裁剪/样式残缺
- 移除 max-width/max-height:100px 限制
- 移除 width/height:1em 硬约束
- display:flex → inline-block,让 font-size 驱动尺寸
gitnexus detect_changes: risk_level=low, 0 affected_processes
|
2026-06-30 16:16:07 +08:00 |
bigemon
|
2c13951249
|
feat: VR ticket page integration (goods-vr-ticket) + improved .gitignore
- Add goods-vr-ticket page with ticket-header/venue-card/ticket-popup components
- Integrate VR redirect logic in goods-detail (detects vr_goods_config → redirect)
- Update pages.json to register goods-vr-ticket route
- Add iconfont improvements
- Update .gitignore: add node_modules, .agent, .claude, .vite, .vscode, .gitnexus, references, AGENTS.md, CLAUDE.md
|
2026-05-14 07:59:23 +08:00 |
于肖磊
|
db92640e84
|
新增图标上滑渐变效果
|
2025-05-16 11:16:44 +08:00 |
gongfuxiang
|
5414b98e4a
|
icon样式优化
|
2024-10-14 14:35:45 +08:00 |
gongfuxiang
|
aa7bcbf554
|
细节优化
|
2024-09-29 01:18:25 +08:00 |
gongfuxiang
|
22ba5b0c6f
|
icon居中优化
|
2024-09-28 20:53:09 +08:00 |
于肖磊
|
82a289946e
|
修改商品购买显示逻辑
|
2024-09-25 11:51:00 +08:00 |
sws
|
b5f0b58ec3
|
1.diy---选项卡
|
2024-09-24 14:17:18 +08:00 |
sws
|
28018d6b48
|
1.diy---公告
|
2024-09-14 14:15:08 +08:00 |
sws
|
40d462cd0e
|
1.diy---- 文章选项卡开发
|
2024-09-11 15:49:55 +08:00 |
sws
|
5eca36f886
|
1.diy---- 文章选项卡开发
|
2024-09-11 15:24:51 +08:00 |
sws
|
b9cc3e2420
|
1.虚拟币开发--首页开发
2024.3.6 sws
|
2024-03-06 18:13:00 +08:00 |
sws
|
eb8c1eccb2
|
1.博客列表和编辑新增接口联调
2023.11.24周五--sws
|
2023-11-24 18:00:30 +08:00 |
sws
|
cdd2f3518e
|
1.多语言
2023.11.23周四--sws
|
2023-11-24 10:28:42 +08:00 |
gongfuxiang
|
9c4bf00e39
|
适配app
|
2023-11-24 00:41:26 +08:00 |
sws
|
a27b291c5c
|
1.登陆页面优化
|
2023-11-22 18:57:45 +08:00 |
sws
|
3f747c5155
|
1.支付宝小程序兼容性优化
|
2023-11-09 17:36:26 +08:00 |
sws
|
2e3c1f1d41
|
1.图标上传
|
2023-09-28 17:14:11 +08:00 |
sws
|
958a99f535
|
1.问答
|
2023-09-28 16:03:38 +08:00 |
sws
|
29eb2d576b
|
1.博文
|
2023-09-27 16:11:09 +08:00 |
sws
|
ae4ce2e51d
|
1.我的签到
|
2023-09-25 15:09:53 +08:00 |
sws
|
ce2348b034
|
1.我的发票
2.我的钱包
|
2023-09-25 10:32:06 +08:00 |
sws
|
548dabdf60
|
1.分类优化滚动条
|
2023-09-22 18:08:50 +08:00 |
sws
|
42211958e5
|
1.我的—会员码点击区域优化
|
2023-09-22 17:30:56 +08:00 |
sws
|
92c931726c
|
1.门店开发
|
2023-09-14 13:46:06 +08:00 |
sws
|
b72599466b
|
1.会员
|
2023-09-12 14:23:18 +08:00 |
sws
|
514177cf3d
|
1.会员
|
2023-09-11 18:57:43 +08:00 |
sws
|
ec07d1c3fe
|
1.秒杀
|
2023-09-11 10:01:49 +08:00 |
sws
|
6076988b1b
|
1.签到
|
2023-09-09 15:56:28 +08:00 |
sws
|
fadb631e54
|
1.签到
|
2023-09-09 09:44:47 +08:00 |
sws
|
1379aa689b
|
1.分类
|
2023-09-05 19:23:05 +08:00 |
sws
|
6a0f07a451
|
1.分类
|
2023-09-05 17:38:15 +08:00 |
sws
|
e2a91d49ad
|
1.更多组件开发
|
2023-09-04 19:05:36 +08:00 |
sws
|
74d7bfc7e3
|
1.活动
|
2023-09-04 14:24:47 +08:00 |
sws
|
c0bbb94045
|
1.首页优化
|
2023-08-31 14:26:22 +08:00 |
sws
|
7b5b798c96
|
1.首页优化
|
2023-08-31 14:26:06 +08:00 |