hookehuyr

fix(pages): 修改所有页面数据中的图标名称为小写

将所有页面和组件数据对象中的图标名称从首字母大写改为小写。

修改的图标名称:
- Shop → shop
- Category → category
- Edit → edit
- Check → check
- Checklist → checklist
- Cart → cart
- People → people
- Clock → clock
- Refresh → refresh
- Location → location
- Service → service
- Star → star
- Find → find
- Top → top
- My → my
- PlayCircleFill → playCircleFill
- Order → order
- Link → link

涉及文件:
- 9个页面组件的数据对象
- DocumentPreview 组件的 iconMap 对象

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
......@@ -139,15 +139,15 @@ const needWebView = computed(() => fileSize.value === 0 || fileSize.value >= 10
const fileIcon = computed(() => {
const type = finalFileType.value.toLowerCase()
const iconMap = {
pdf: 'Order',
doc: 'Edit',
docx: 'Edit',
xls: 'Category',
xlsx: 'Category',
ppt: 'PlayCircleFill',
pptx: 'PlayCircleFill'
pdf: 'order',
doc: 'edit',
docx: 'edit',
xls: 'category',
xlsx: 'category',
ppt: 'playCircleFill',
pptx: 'playCircleFill'
}
return iconMap[type] || 'Link'
return iconMap[type] || 'link'
})
const previewButtonText = computed(() => {
......
<!--
* @Date: 2026-01-29 20:33:23
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2026-01-29 21:18:33
* @LastEditTime: 2026-01-30 20:13:36
* @FilePath: /manulife-weapp/src/components/TabBar.vue
* @Description: 通用底部导航栏组件,用于页面底部固定导航栏,展示页面标题。
-->
......@@ -47,19 +47,19 @@ const tabs = shallowRef([
{
key: 'home',
label: '首页',
icon: 'Home',
icon: 'home',
path: '/pages/index/index'
},
{
key: 'ai',
label: 'AI答疑',
icon: 'Service',
icon: 'service',
path: '/pages/ai/index'
},
{
key: 'me',
label: '我的',
icon: 'My',
icon: 'my',
path: '/pages/mine/index'
}
])
......
......@@ -37,12 +37,12 @@ const sections = shallowRef([
{
title: '成员列表',
subtitle: '管理家庭成员信息',
icon: 'My'
icon: 'my'
},
{
title: '新增成员',
subtitle: '添加家庭成员',
icon: 'Edit'
icon: 'edit'
}
]
},
......@@ -53,12 +53,12 @@ const sections = shallowRef([
{
title: '体检报告',
subtitle: '查看家庭成员体检记录',
icon: 'Order'
icon: 'order'
},
{
title: '就医记录',
subtitle: '家庭成员就医历史',
icon: 'Clock'
icon: 'clock'
}
]
},
......@@ -69,12 +69,12 @@ const sections = shallowRef([
{
title: '保单管理',
subtitle: '家庭保单汇总',
icon: 'Star'
icon: 'star'
},
{
title: '资产总览',
subtitle: '家庭资产分布',
icon: 'Find'
icon: 'find'
}
]
},
......@@ -85,12 +85,12 @@ const sections = shallowRef([
{
title: '高端医疗',
subtitle: '预约高端医疗服务',
icon: 'Service'
icon: 'service'
},
{
title: '康养服务',
subtitle: '健康养生服务',
icon: 'PlayCircleFill'
icon: 'playCircleFill'
}
]
}
......
......@@ -86,7 +86,7 @@ const list = ref([
category: '入职培训',
date: '2024-01-15',
type: 'onboarding',
icon: 'Order', // Represents a document
icon: 'order', // Represents a document
iconColor: '#EF4444', // Red for PDF
iconBgClass: 'bg-red-50',
// 使用真实的可下载 PDF 文件(W3C 测试文件)
......@@ -98,7 +98,7 @@ const list = ref([
category: '签单相关',
date: '2024-01-14',
type: 'signing',
icon: 'Order', // Represents a document
icon: 'order', // Represents a document
iconColor: '#2563EB', // Blue for Word
iconBgClass: 'bg-blue-50',
// 使用真实的可下载图片(作为文档示例)
......@@ -110,7 +110,7 @@ const list = ref([
category: '产品知识',
date: '2024-01-13',
type: 'product',
icon: 'Order', // Represents a document
icon: 'order', // Represents a document
iconColor: '#F59E0B', // Orange for PPT
iconBgClass: 'bg-orange-50',
// 使用另一个图片作为示例
......@@ -122,7 +122,7 @@ const list = ref([
category: '政策解读',
date: '2024-01-12',
type: 'other',
icon: 'Edit', // Represents text
icon: 'edit', // Represents text
iconColor: '#10B981', // Green for TXT
iconBgClass: 'bg-green-50',
downloadUrl: '' // 空下载地址,用于测试无地址情况
......
......@@ -130,21 +130,21 @@ const currentQuestion = ref(null)
// Contact methods data
const contactMethods = [
{
icon: 'Location',
icon: 'location',
label: '客服热线',
value: '400-888-9999',
desc: '工作时间:周一至周五 9:00-18:00',
color: '#2563EB' // blue-600
},
{
icon: 'Service',
icon: 'service',
label: '微信公众号',
value: '美乐爱觉',
desc: '搜索"美乐爱觉"关注我们',
color: '#16A34A' // green-600
},
{
icon: 'Edit',
icon: 'edit',
label: '邮箱',
value: 'service@manulife.com',
desc: '我们会在24小时内回复您的邮件',
......
......@@ -28,7 +28,7 @@
<div class="flex justify-between items-start pt-[32rpx] first:pt-0">
<div class="flex items-start flex-1 mr-[20rpx]" @tap="onView(item)">
<div class="w-[80rpx] h-[88rpx] mr-[24rpx] flex-shrink-0 flex items-center justify-center bg-blue-50 rounded-[12rpx]">
<IconFont :name="item.iconName || 'Order'" size="32" :color="item.iconColor || '#2563EB'" />
<IconFont :name="item.iconName || 'order'" size="32" :color="item.iconColor || '#2563EB'" />
</div>
<div class="flex flex-col">
<span class="text-[#1F2937] text-[28rpx] font-normal leading-[1.2] mb-[14rpx] line-clamp-2">
......@@ -81,7 +81,7 @@ const list = ref([
title: '2024年保险代理人考试大纲.pdf',
desc: '最新考试范围与重点解析',
size: '2.1MB',
iconName: 'Order',
iconName: 'order',
iconColor: '#EF4444',
collected: true,
// 添加文件相关数据
......@@ -92,7 +92,7 @@ const list = ref([
title: '历年真题汇总及解析.pdf',
desc: '2019-2023年真题完整版',
size: '5.3MB',
iconName: 'Order',
iconName: 'order',
iconColor: '#EF4444',
collected: false,
fileName: '历年真题汇总及解析.pdf',
......@@ -102,7 +102,7 @@ const list = ref([
title: '考试技巧与经验分享.pdf',
desc: '高分学员备考心得',
size: '1.8MB',
iconName: 'Order',
iconName: 'order',
iconColor: '#EF4444',
collected: false,
fileName: '考试技巧与经验分享.pdf',
......@@ -112,7 +112,7 @@ const list = ref([
title: '保险基础知识速记手册.pdf',
desc: '核心知识点快速记忆',
size: '3.2MB',
iconName: 'Order',
iconName: 'order',
iconColor: '#EF4444',
collected: false,
fileName: '保险基础知识速记手册.pdf',
......@@ -122,7 +122,7 @@ const list = ref([
title: '模拟试卷10套及答案.pdf',
desc: '考前冲刺模拟练习',
size: '4.5MB',
iconName: 'Order',
iconName: 'order',
iconColor: '#EF4444',
collected: true,
fileName: '模拟试卷10套及答案.pdf',
......@@ -132,7 +132,7 @@ const list = ref([
title: '法律法规重点条款解读.pdf',
desc: '保险相关法规详解',
size: '2.8MB',
iconName: 'Order',
iconName: 'order',
iconColor: '#EF4444',
collected: false,
fileName: '法律法规重点条款解读.pdf',
......@@ -142,7 +142,7 @@ const list = ref([
title: '考试常见易错题分析.pdf',
desc: '高频错题归纳总结',
size: '1.5MB',
iconName: 'Order',
iconName: 'order',
iconColor: '#EF4444',
collected: false,
fileName: '考试常见易错题分析.pdf',
......@@ -152,7 +152,7 @@ const list = ref([
title: '案例分析题库及解答.pdf',
desc: '实务案例精选练习',
size: '3.9MB',
iconName: 'Order',
iconName: 'order',
iconColor: '#EF4444',
collected: false,
fileName: '案例分析题库及解答.pdf',
......@@ -162,7 +162,7 @@ const list = ref([
title: '考前冲刺复习资料.pdf',
desc: '最后一周复习要点',
size: '2.3MB',
iconName: 'Order',
iconName: 'order',
iconColor: '#EF4444',
collected: false,
fileName: '考前冲刺复习资料.pdf',
......@@ -172,7 +172,7 @@ const list = ref([
title: '考场注意事项及答题技巧.pdf',
desc: '应试策略与时间分配',
size: '1.2MB',
iconName: 'Order',
iconName: 'order',
iconColor: '#EF4444',
collected: false,
fileName: '考场注意事项及答题技巧.pdf',
......
......@@ -77,10 +77,10 @@ import Taro from '@tarojs/taro'
const go = useGo()
const menuItems = [
{ title: '我的计划书', icon: 'Order', path: '/pages/plan/index' },
{ title: '我的收藏', icon: 'Star', path: '/pages/favorites/index' },
{ title: '帮助中心', icon: 'Service', path: '/pages/help-center/index' },
{ title: '意见反馈', icon: 'Edit', path: '/pages/feedback/index' }
{ title: '我的计划书', icon: 'order', path: '/pages/plan/index' },
{ title: '我的收藏', icon: 'star', path: '/pages/favorites/index' },
{ title: '帮助中心', icon: 'service', path: '/pages/help-center/index' },
{ title: '意见反馈', icon: 'edit', path: '/pages/feedback/index' }
]
const handleMenuClick = (item) => {
......
......@@ -34,17 +34,17 @@ const sections = shallowRef([
title: '入职前',
items: [
{
icon: 'Edit',
icon: 'edit',
title: '考试报名',
subtitle: '报名参加代理人资格考试'
},
{
icon: 'Find',
icon: 'find',
title: '面试结果查询',
subtitle: '查看面试状态和结果'
},
{
icon: 'Order',
icon: 'order',
title: '入职材料提交',
subtitle: '上传入职所需证件和资料'
}
......@@ -54,17 +54,17 @@ const sections = shallowRef([
title: '入职中',
items: [
{
icon: 'Clock',
icon: 'clock',
title: '各个进度时间线表格',
subtitle: '查看入职流程关键节点'
},
{
icon: 'Checklist',
icon: 'checklist',
title: '待办事项清单',
subtitle: '你需要完成的任务列表'
},
{
icon: 'Check',
icon: 'check',
title: '签署合同',
subtitle: '电子合同在线签署'
}
......@@ -74,17 +74,17 @@ const sections = shallowRef([
title: '入职后',
items: [
{
icon: 'Star',
icon: 'star',
title: '新人培训',
subtitle: '参加新人岗前培训课程'
},
{
icon: 'Top',
icon: 'top',
title: '业绩目标设定',
subtitle: '制定首月业绩目标'
},
{
icon: 'PlayCircleFill',
icon: 'playCircleFill',
title: '团队介绍',
subtitle: '了解你的团队和主管'
}
......
......@@ -34,12 +34,12 @@ const sections = shallowRef([
title: '培训板块',
items: [
{
icon: 'Shop',
icon: 'shop',
title: '公司介绍',
subtitle: '企业背景及发展历程'
},
{
icon: 'Category',
icon: 'category',
title: '产品介绍及更新',
subtitle: '最新产品资料库'
}
......@@ -49,12 +49,12 @@ const sections = shallowRef([
title: '签单前',
items: [
{
icon: 'Check',
icon: 'check',
title: '预核保',
subtitle: '核保流程指引'
},
{
icon: 'Edit',
icon: 'edit',
title: '做计划书',
subtitle: '方案设计工具'
}
......@@ -64,17 +64,17 @@ const sections = shallowRef([
title: '签单中',
items: [
{
icon: 'Checklist',
icon: 'checklist',
title: '信息收集及健康告知模板',
subtitle: '标准表格及注意事项'
},
{
icon: 'Cart',
icon: 'cart',
title: '缴费方式银行开户',
subtitle: '支付渠道办理指南'
},
{
icon: 'People',
icon: 'people',
title: '体检经验',
subtitle: '体检流程及常见问题'
}
......@@ -84,17 +84,17 @@ const sections = shallowRef([
title: '签单后',
items: [
{
icon: 'Order',
icon: 'order',
title: '批单跟进',
subtitle: '保单变更处理流程'
},
{
icon: 'Clock',
icon: 'clock',
title: '核保/pending',
subtitle: '核保进度查询'
},
{
icon: 'Refresh',
icon: 'refresh',
title: '续保',
subtitle: '续期服务指引'
}
......@@ -104,7 +104,7 @@ const sections = shallowRef([
title: '售后',
items: [
{
icon: 'Location',
icon: 'location',
title: '香港医生资源',
subtitle: '专业医疗机构名录'
}
......