wangxy hace 1 semana
padre
commit
7619dd1336

+ 1 - 1
components/custom-tabbar/custom-tabbar-kehu.vue

@@ -24,7 +24,7 @@
 			return {
 				tabList: [{
 						text: '首页',
-						path: `/pages/kehu/shouYe/shouye`,
+						path: `/pages/kehu/shouye/shouye`,
 						iconPath: '/static/images/tabbar/unselect/client-jz-icon.png',
 						activePath:'/static/images/tabbar/select/client-jz-icon.png',
 					},

+ 5 - 2
components/listCard/hetongCard.vue

@@ -64,6 +64,8 @@
 		}
 	})
 	
+	const Emits = defineEmits(['study'])
+	
 	function checkMore() {
 		uni.navigateTo({
 			url:"/pages/client/Kecheng/list?from=shouye"
@@ -71,9 +73,10 @@
 	}
 	
 	function handleStudy(item) {
-		uni.navigateTo({
+		Emits('study', item)
+		/* uni.navigateTo({
 			url: `/pages/client/hetong/hetongInfo?id=${item.id}`
-		})
+		}) */
 	}
 </script>
 

+ 1 - 1
pages.json

@@ -16,7 +16,7 @@
 				"navigationStyle": "custom"
 			}
 		}, {
-			"path": "pages/kehu/shouYe/shouye",
+			"path": "pages/kehu/shouye/shouye",
 			"style": {
 				"navigationStyle": "custom"
 			}

+ 1 - 1
pages/Login/clientIndex.vue

@@ -153,7 +153,7 @@
 			})
 		} else {
 			uni.navigateTo({
-				url: `/pages/kehu/shouYe/shouye`
+				url: `/pages/kehu/shouye/shouye`
 			})
 		}
 	}

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

@@ -10,7 +10,7 @@
 			<kechengCardVue v-if="data.kechengList.length"   :data="{ count: data.kechengCount,...data.kechengList[0],iconsArr:data.iconsArr}"></kechengCardVue>
 			<!-- 合同 -->
 		
-			<hetongCardVue v-if="data.hetongList.length" :data="{...data.hetongList[0],iconsArr:data.iconsArr}"></hetongCardVue>
+			<hetongCardVue v-if="data.hetongList.length" :data="{...data.hetongList[0],iconsArr:data.iconsArr}" @study="handleStudy"></hetongCardVue>
 		</template>
 		<view class="default-img-box" v-else>
 			<icon :style="{ backgroundImage: 'url(' + data.defaultIndexImg + ')' }"></icon>
@@ -102,4 +102,10 @@
 	onShow(() => {
 		initPage();
 	})
+	
+	function handleStudy(item) {
+		uni.navigateTo({
+			url: `/pages/client/hetong/hetongInfo?id=${item.id}`
+		})
+	}
 </script>

+ 0 - 1
pages/kehu/hetong/HetongInfo.vue

@@ -151,7 +151,6 @@
 
 	}
 	function handleGoLishi() {
-		
 		if (fromPage.value == 'appcx') {
 			uni.redirectTo({
 				url: '/pages/kehu/shouye/shouye'

+ 7 - 1
pages/kehu/shouye/shouye.vue

@@ -3,7 +3,7 @@
 		<customNavbarVue title="首页"></customNavbarVue>
 		<template v-if="data.hetongList.length">
 			<!-- 合同 -->
-			<hetongCardVue v-if="data.hetongList.length" :data="{...data.hetongList[0],iconsArr:data.iconsArr}"></hetongCardVue>
+			<hetongCardVue v-if="data.hetongList.length" :data="{...data.hetongList[0],iconsArr:data.iconsArr}" @study="handleStudy"></hetongCardVue>
 		</template>
 		<view class="default-img-box" v-else>
 			<icon :style="{ backgroundImage: 'url(' + data.defaultIndexImg + ')' }"></icon>
@@ -62,4 +62,10 @@
 	onShow(() => {
 		initPage();
 	})
+	
+	function handleStudy(item) {
+		uni.navigateTo({
+			url: `/pages/kehu/hetong/hetongInfo?id=${item.id}`
+		})
+	}
 </script>