Просмотр исходного кода

feat: map oa-wechat-notify icon for mobile menu grid

Co-authored-by: Cursor <cursoragent@cursor.com>
zlwu 2 месяцев назад
Родитель
Сommit
b79ff2d830

+ 3 - 0
backend/app/api/mini_menu.py

@@ -103,6 +103,8 @@ def _mobile_menu_icon(path: str) -> str:
         return "oa-mine"
     if "oa/cc" in p:
         return "oa-cc"
+    if "oa/wechat-notify" in p:
+        return "oa-wechat-notify"
     if "form-sink" in p:
         return "orders-o"
     return "apps-o"
@@ -121,6 +123,7 @@ def _mobile_menu_icon_colors(path: str) -> dict:
             "oa/done",
             "oa/mine",
             "oa/cc",
+            "oa/wechat-notify",
         )
     ):
         return {"iconBg": "transparent", "iconFg": ""}

+ 2 - 1
mobile-h5/components/van-icon/van-icon.vue

@@ -54,7 +54,8 @@
     'oa-pending': '/static/menu-icons/oa-pending.png',
     'oa-done': '/static/menu-icons/oa-done.png',
     'oa-mine': '/static/menu-icons/oa-mine.png',
-    'oa-cc': '/static/menu-icons/oa-cc.png'
+    'oa-cc': '/static/menu-icons/oa-cc.png',
+    'oa-wechat-notify': '/static/menu-icons/oa-wechat-notify.png'
   }
 
   export default {

+ 3 - 1
mobile-h5/utils/menu-icon-colors.js

@@ -9,7 +9,8 @@ const OA_PNG_ICONS = new Set([
   'oa-pending',
   'oa-done',
   'oa-mine',
-  'oa-cc'
+  'oa-cc',
+  'oa-wechat-notify'
 ])
 
 export const MENU_ICON_COLOR_DEFAULTS = {
@@ -19,6 +20,7 @@ export const MENU_ICON_COLOR_DEFAULTS = {
   'oa-done': { iconBg: 'transparent', iconFg: '' },
   'oa-mine': { iconBg: 'transparent', iconFg: '' },
   'oa-cc': { iconBg: 'transparent', iconFg: '' },
+  'oa-wechat-notify': { iconBg: 'transparent', iconFg: '' },
   'orders-o': { iconBg: '#eef2f1', iconFg: '#3d524a' },
   'apps-o': { iconBg: '#eef2f1', iconFg: '#3d524a' }
 }