From 7e3551636f18a92177fa090801862bd17fa7e209 Mon Sep 17 00:00:00 2001
From: DEV_DSW <562304744@qq.com>
Date: Thu, 28 May 2026 13:38:24 +0800
Subject: [PATCH] refactor: replace legacy icon usages with unified ZnIcon
Replace van-icon and uni-icons custom icon usages with the unified ZnIcon component in GoodFacility, CreateServiceOrder and GoodDetail components. Remove unused iconsMap imports from all modified files, and delete the redundant @font-face style declaration for znicons in GoodDetail.
---
src/components/CreateServiceOrder/index.vue | 6 ++----
src/components/GoodDetail/index.vue | 13 ++-----------
src/pages/goods/components/GoodFacility/index.vue | 6 ++----
3 files changed, 6 insertions(+), 19 deletions(-)
diff --git a/src/components/CreateServiceOrder/index.vue b/src/components/CreateServiceOrder/index.vue
index 554e59b..292f676 100644
--- a/src/components/CreateServiceOrder/index.vue
+++ b/src/components/CreateServiceOrder/index.vue
@@ -37,9 +37,7 @@
-
- {{ iconsMap["zn-camera"] }}
-
+
@@ -74,7 +72,7 @@ import { ref, computed, onMounted, nextTick, defineProps, watch } from "vue";
import { SCROLL_TO_BOTTOM } from "@/constants/constant";
import { createWorkOrder } from "@/api/workOrder";
import { uploadFile } from "@/api/upload";
-import { iconsMap } from "@/assets/fonts/znicons";
+import ZnIcon from "@/components/ZnIcon/index.vue";
const props = defineProps({
toolCall: {
diff --git a/src/components/GoodDetail/index.vue b/src/components/GoodDetail/index.vue
index 1e1c288..66943d5 100644
--- a/src/components/GoodDetail/index.vue
+++ b/src/components/GoodDetail/index.vue
@@ -12,9 +12,7 @@
1,
}">
-
- {{ iconsMap[moduleItem.moduleIcon] }}
-
+
{{ moduleItem.moduleTitle }}
@@ -33,7 +31,7 @@
import { defineProps } from "vue";
import Vue3MarkdownIt from 'vue3-markdown-it';
import ModuleTitle from "@/components/ModuleTitle/index.vue";
-import { iconsMap } from "@/assets/fonts/znicons";
+import ZnIcon from "@/components/ZnIcon/index.vue";
// Props定义
const props = defineProps({
@@ -47,10 +45,3 @@ const props = defineProps({
},
});
-
-
diff --git a/src/pages/goods/components/GoodFacility/index.vue b/src/pages/goods/components/GoodFacility/index.vue
index 6164179..1a8f56e 100644
--- a/src/pages/goods/components/GoodFacility/index.vue
+++ b/src/pages/goods/components/GoodFacility/index.vue
@@ -5,9 +5,7 @@
'border-bottom': index < goodsData.commodityEquipment.length - 1,
}">
-
-
-
+
{{ moduleItem.title }}
@@ -24,7 +22,7 @@