Browse Source

H5转成小程序

tanxue 1 month ago
parent
commit
28e362887d
2 changed files with 11 additions and 6 deletions
  1. 4 4
      components/custom-tabbar/custom-tabbar-admin.vue
  2. 7 2
      pages/client/Lianxi/exam.vue

+ 4 - 4
components/custom-tabbar/custom-tabbar-admin.vue

@@ -24,14 +24,14 @@
 				tabList: [{
 						text: '首页',
 						path: `/pages/admin/ShouYe/shouye`,
-						iconPath: getStaticUrl('static/images/tabbar/unselect/index-icon.png'),
-						activePath: getStaticUrl('static/images/tabbar/select/index-icon.png'),
+						iconPath: getStaticUrl('/static/images/tabbar/unselect/index-icon.png'),
+						activePath: getStaticUrl('/static/images/tabbar/select/index-icon.png'),
 					},
 					{
 						text: '家政',
 						path: '/pages/admin/Jiazheng/index',
-						iconPath: getStaticUrl('static/images/tabbar/unselect/jz-icon.png'),
-						activePath: getStaticUrl('static/images/tabbar/select/jz-icon.png'),
+						iconPath: getStaticUrl('/static/images/tabbar/unselect/jz-icon.png'),
+						activePath: getStaticUrl('/static/images/tabbar/select/jz-icon.png'),
 					},
 					{
 						text: '课程',

+ 7 - 2
pages/client/Lianxi/exam.vue

@@ -42,7 +42,7 @@
 			<button class="phone-green-btn bj-btn" hover-class="none" type="default" size="mini"
 				@click="handleBiaoji">{{activeSt && activeSt.marked ? '取标':'标记'}}</button>
 			<view @click="showAnswerCard" class="shiti-num-box">
-				<icon class="shiti-num-icon"></icon>
+				<icon class="shiti-num-icon" :style="{ backgroundImage: 'url(' + data.imgsArr.shitiNumIcon + ')' }"></icon>
 				<text
 					class="active-num">{{activeSt ? activeSt.onlyNum: 0}}</text>/<text>{{data.StListForSearch.length}}</text>
 			</view>
@@ -81,6 +81,7 @@
 </template>
 
 <script setup>
+	import cacheManager from '@/utils/cacheManager.js';
 	import {ref,reactive,computed,watch,nextTick} from "vue";
 	import customNavbarVue from "@/components/custom-navbar/custom-navbar.vue";
 	import answerQueren from "@/components/zhuapaiConfirm/answerQueren.vue";
@@ -110,6 +111,7 @@
 		data.lxId = option.lxId;
 		data.zhuapai = option.zhuapai;
 		data.from = option.from;
+		data.imgsArr.shitiNumIcon = cacheManager.get('projectImg').shiti_num_icon;
 		initKaoshi();
 	})
 
@@ -137,7 +139,10 @@
 		duanluo: [],
 		StListForSearch: [],
 		from: '',
-		hisId: null
+		hisId: null,
+		imgsArr: {
+			shitiNumIcon: '',
+		},
 	})
 	
 	const markDB = ref([]);