From f021759a3e59913fc8b4707aaa2c7d9da49a2abe Mon Sep 17 00:00:00 2001
From: 26947 <12@1>
Date: Sat, 1 Jun 2024 12:23:29 +0800
Subject: [PATCH] =?UTF-8?q?=E5=83=8F=E4=B8=8A=E5=B1=82=E6=8F=90=E5=8F=96ic?=
=?UTF-8?q?on?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
main.js | 4 ++--
pages/activity/index.vue | 30 ++++++++++++++++++++----------
utils/icon/icon.js | 11 +++++++++++
3 files changed, 33 insertions(+), 12 deletions(-)
create mode 100644 utils/icon/icon.js
diff --git a/main.js b/main.js
index eeb22bb..c6877c5 100644
--- a/main.js
+++ b/main.js
@@ -3,13 +3,13 @@ import App from './App'
import store from './store' // store
import { install } from './plugins' // plugins
import './permission.js' // permission
-
+import iconConfig from './utils/icon/icon.js'
// main.js
import uviewPlus from 'uview-plus'
export function createApp() {
const app = createSSRApp(App)
-
+ app.config.globalProperties.iconConfig = iconConfig
app.use(uviewPlus)
app.use(store)
// app.use(uView)
diff --git a/pages/activity/index.vue b/pages/activity/index.vue
index 36ebe70..583708c 100644
--- a/pages/activity/index.vue
+++ b/pages/activity/index.vue
@@ -1,5 +1,6 @@
-
+
+
-
+
@@ -60,7 +62,7 @@
-
+
@@ -72,7 +74,9 @@ import {getDicts} from "@/api/system/dict/data"
import { ref, reactive, getCurrentInstance } from 'vue'
import { useStore } from 'vuex';
const { proxy } = getCurrentInstance();
-
+const iconConfig = proxy.iconConfig;
+const tu21 = iconConfig.tu21;
+const tu22 = iconConfig.tu22;
const activityState = ref([])//字典
const imgInfo = ref("")
// 创建响应式数据 ref('#001f3f')
@@ -85,12 +89,6 @@ const list4 = reactive([
{ name: '进行中' },
{ name: '已结束' }
]);
-const QNDomain = store.state.user.QNDomain
-const tu21 = ref("")
-const tu22 = ref("")
-tu22.value = QNDomain + "home/icon/image/png/tu2-2_20240531163115818.png"
-tu21.value = QNDomain + "home/icon/image/png/tu2-1_20240531153239639.png"
-imgInfo.value = QNDomain + "home/test/image/jpeg/test1_20240531151817921.jpg"
const actiInfoList = ref([
{title:'怎么评论爱德华·艾尔加这位音乐家及其他的作品,欢迎大家发表自己的看法?',
startTime:'2023-05-01 15:00',
@@ -147,6 +145,18 @@ const getDictLabelByValue = (state) => {