Sfoglia il codice sorgente

✨ feat(icon): 添加clock图标支持
- 在icon组件中添加clock图标映射'i-heroicons-clock-20-solid'

♻️ refactor(cell): 优化箭头图标样式
- 将cell组件中的箭头图标从'chevron-right'更改为'arrow-right'

🔧 chore(profile): 临时注释关于我们和隐私政策相关代码
- 注释个人中心页面中的关于我们和隐私政策相关菜单配置
- 注释对应菜单点击事件处理逻辑

yourname 1 mese fa
parent
commit
b7e3536bb8

+ 1 - 1
mini/src/components/tdesign/cell/index.tsx

@@ -43,7 +43,7 @@ export default function TDesignCell({
   }
 
   const getArrowIcon = () => {
-    if (arrow === true) return 'chevron-right'
+    if (arrow === true) return 'arrow-right'
     if (typeof arrow === 'string') return arrow
     return null
   }

+ 1 - 0
mini/src/components/tdesign/icon/index.tsx

@@ -59,6 +59,7 @@ const iconClassMap: Record<string, string> = {
   'ellipsis': 'i-heroicons-ellipsis-horizontal-20-solid',
 
   // 订单相关
+  'clock': 'i-heroicons-clock-20-solid',
   'truck': 'i-heroicons-truck-20-solid',
   'package': 'i-heroicons-cube-20-solid',
 

+ 10 - 10
mini/src/pages/profile/index.tsx

@@ -136,10 +136,10 @@ const ProfilePage: React.FC = () => {
       { title: '收货地址', icon: 'location', type: 'address' },
       { title: '联系客服', icon: 'service', type: 'service' }
     ],
-    [
-      { title: '关于我们', icon: 'info-circle', type: 'about' },
-      { title: '隐私政策', icon: 'shield-check', type: 'privacy' }
-    ]
+    // [
+    //   { title: '关于我们', icon: 'info-circle', type: 'about' },
+    //   { title: '隐私政策', icon: 'shield-check', type: 'privacy' }
+    // ]
   ]
 
   const handleCellClick = (type: string) => {
@@ -150,12 +150,12 @@ const ProfilePage: React.FC = () => {
       case 'service':
         handleCustomerService()
         break
-      case 'about':
-        Taro.showToast({ title: '关于我们功能开发中...', icon: 'none' })
-        break
-      case 'privacy':
-        Taro.showToast({ title: '隐私政策功能开发中...', icon: 'none' })
-        break
+      // case 'about':
+      //   Taro.showToast({ title: '关于我们功能开发中...', icon: 'none' })
+      //   break
+      // case 'privacy':
+      //   Taro.showToast({ title: '隐私政策功能开发中...', icon: 'none' })
+      //   break
       default:
         Taro.showToast({ title: '功能开发中...', icon: 'none' })
     }