Quellcode durchsuchen

新增合同卡片

tanxue vor 8 Stunden
Ursprung
Commit
5beb369431
2 geänderte Dateien mit 19 neuen und 3 gelöschten Zeilen
  1. 3 2
      components/listCard/kechengCard.vue
  2. 16 1
      pages/client/ShouYe/shouye.vue

+ 3 - 2
components/listCard/kechengCard.vue

@@ -42,9 +42,10 @@
 	}
 	
 	function handleStudy(item) {
-		uni.navigateTo({
+		console.log('itemkc',item);
+		/* uni.navigateTo({
 			url: `/pages/client/Kecheng/study?kcId=${item.kcId}&jzId=${item.jzId}&from=shouye`
-		})
+		}) */
 	}
 </script>
 

+ 16 - 1
pages/client/ShouYe/shouye.vue

@@ -9,6 +9,8 @@
 			<lianxiCardVue v-if="data.lianxiList.length"  :data="{ count: data.lianxiCount,...data.lianxiList[0],iconsArr:data.iconsArr}"></lianxiCardVue>
 			<!-- 课程 -->
 			<kechengCardVue v-if="data.kechengList.length"   :data="{ count: data.kechengCount,...data.kechengList[0],iconsArr:data.iconsArr}"></kechengCardVue>
+			<!-- 合同 -->
+			<hetongCardVue v-if="data.hetongList!={}" :data="{...data.hetongList[0],iconsArr:data.iconsArr}"></hetongCardVue>
 		</template>
 		<view class="default-img-box" v-else>
 			<icon :style="{ backgroundImage: 'url(' + data.defaultIndexImg + ')' }"></icon>
@@ -24,6 +26,7 @@
 	import kaoshiCardVue from '@/components/listCard/kaoshiCard.vue';
 	import kechengCardVue from '@/components/listCard/kechengCard.vue';
 	import lianxiCardVue from '@/components/listCard/lianxiCard.vue';
+	import hetongCardVue from '@/components/listCard/hetongCard.vue';
 	import customTabbarClient from "@/components/custom-tabbar/custom-tabbar-client.vue"
 
 	import * as httpApi from "@/api/shouye.js"
@@ -44,11 +47,16 @@
 		lianxiList: [],
 		realName: '',
 		defaultIndexImg: '',
+		hetongList: [],
 		iconsArr: {
 			timeIcon: '',
 			numIcon: '',
 			sumIcon: '',
 			jgIcon: '',
+			htJzIcon: '',
+			htKhIcon: '',
+			htTimeIcon: '',
+			htZtIcon: '',
 		},
 	})
 
@@ -60,7 +68,8 @@
 				kechengCount,
 				kechengList,
 				lianxiCount,
-				lianxiList
+				lianxiList,
+				hetong
 			} = res.data;
 			
 			data.kaoshiCount = kaoshiCount;
@@ -69,6 +78,8 @@
 			data.kechengList = kechengList || [];
 			data.lianxiCount = lianxiCount;
 			data.lianxiList = lianxiList || [];
+			data.hetongList = [hetong] || [];
+			console.log('data.hetongList',data.hetongList);
 		})
 	}
 
@@ -81,6 +92,10 @@
 		data.iconsArr.numIcon = cacheManager.get('projectImg').index_content_icon2;
 		data.iconsArr.sumIcon = cacheManager.get('projectImg').index_content_icon3;
 		data.iconsArr.jgIcon = cacheManager.get('projectImg').index_content_icon4;
+		data.iconsArr.htJzIcon = cacheManager.get('projectImg').user_green_icon;
+		data.iconsArr.htKhIcon = cacheManager.get('projectImg').zymc_icon;
+		data.iconsArr.htTimeIcon = cacheManager.get('projectImg').my_score_icon;
+		data.iconsArr.htZtIcon = cacheManager.get('projectImg').htzt_icon;
 	})
 	
 	onShow(() => {