• This project
    • Loading...
  • Sign in

Hooke / manulife-weapp

Itomix
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Graphs
  • Network
  • Create a new issue
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • manulife-weapp
  • src
  • assets
  • images
  • icon
  • doc
  • txt.svg
  • hookehuyr's avatar
    feat(docs): 实现文档图标系统并优化首页展示 · 23855f40 ...
    23855f40
    ## 主要更新
    
    ### 新增
    - 创建文档图标工具函数 (src/utils/documentIcons.js)
      - 根据文件扩展名自动匹配对应图标 (PDF/Word/Excel/PPT/图片/视频等)
      - 提供 getDocumentIcon() 和 getDocumentLabel() 工具函数
      - 支持判断文件类型 (isPDF/isImage/isVideo)
    - 添加文档图标资源 (src/assets/images/icon/doc/)
      - 10 个 SVG 图标文件,覆盖常见文档类型
    - 新增文档图标更新说明文档 (docs/DOCUMENT_ICONS_UPDATE.md)
    - 移动计划书开发指南到组件目录 (src/components/PlanSchemes/)
    
    ### 优化
    - 更新首页"本周热门资料"展示 (src/pages/index/index.vue)
      - 使用真实文档图标替换通用图标
      - 添加文件类型标签,位于标题下方
      - Mock 不同类型文件数据 (PDF/Word/Excel)
    - 更新资料列表页 (src/pages/material-list/index.vue)
      - 集成文档图标系统
    - 更新产品详情页 (src/pages/product-detail/index.vue)
      - 集成文档图标系统
    
    ### 技术细节
    - 使用 ES6 import 正确导入 SVG 资源
    - 解决 Taro 小程序静态资源加载问题
    - 统一文档类型识别逻辑
    
    Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
    hookehuyr authored 2026-01-31 14:25:56 +0800
txt.svg 1019 Bytes
Raw Blame History Permalink