Browse Source

H5转小程序

tanxue 1 month ago
parent
commit
c87e18bae5
2 changed files with 8 additions and 1 deletions
  1. 2 0
      common/styles/global/pages.scss
  2. 6 1
      pages/client/Chengji/lxScoreShijuan.vue

+ 2 - 0
common/styles/global/pages.scss

@@ -104,6 +104,7 @@
 		.card-head-box{background-color:#6186fb;}
 		.card-level{color:#4794ff;}
 		.card-name{color:#4794ff;}
+		.card-name icon{background-color:#4794ff;}
 		.index-card-btn[type='default']{background-color: #6186fb;color: #fff;}
 	}
 	
@@ -113,6 +114,7 @@
 		.card-head-box{background-color:#febb6a;}
 		.card-level{color:#ffba03;}
 		.card-name{color:#ffba03;}
+		.card-name icon{background-color:#ffba03;}
 		.index-card-btn[type='default']{background-color: #febb6a;color: #fff;}
 	}
 }

+ 6 - 1
pages/client/Chengji/lxScoreShijuan.vue

@@ -57,7 +57,7 @@
 		<!-- 上下按钮 -->
 		<view class="score-bottom-box" v-if="activeSt">
 			<view @click="handleOpenCard" class="score-num-box">
-				<icon class="score-num-icon"></icon>
+				<icon class="score-num-icon" :style="{ backgroundImage: 'url(' + data.imgsArr.shitiNumIcon + ')' }"></icon>
 				<text class="active-num" @click="handleOpenCard"><i></i>
 					{{activeSt && activeSt.onlyNum||0}}/{{data.StListForSearch.length}}</text>
 			</view>
@@ -94,6 +94,7 @@
 </template>
 
 <script setup>
+	import cacheManager from '@/utils/cacheManager.js';
 	import topCard from "@/components/score/topCard.vue"
 	import danxuan from "@/components/questions/danxuan.vue";
 	import duoxuan from "@/components/questions/duoxuan.vue";
@@ -133,6 +134,9 @@
 		ksScore: 0,
 		StListForSearch: [],
 		duanluo: [],
+		imgsArr: {
+					shitiNumIcon: '',
+				},
 	})
 
 	const questionData = ref([]);
@@ -252,6 +256,7 @@
 
 	onLoad((options) => {
 		hisId.value = options.hisId;
+		data.imgsArr.shitiNumIcon = cacheManager.get('projectImg').shiti_num_icon;
 		initPage()
 	})