소스 검색

扫码跳转

张文飞 3 년 전
부모
커밋
14689243ba
1개의 변경된 파일12개의 추가작업 그리고 6개의 파일을 삭제
  1. 12 6
      pages/homePage/homePage.vue

+ 12 - 6
pages/homePage/homePage.vue

@@ -145,7 +145,7 @@
 
 				<view class="list_item" v-for="(item,index) in  houseList" :key='index'>
 					<image class="house_img" :src="item.image" mode="aspectFill"></image>
-					<view class="item_content" @click="goDetailAction(item)">
+					<view class="item_content" @click="goDetailAction(item,1)">
 						<text class="house_name">{{item.name}}</text>
 						<view class="house_hk" v-if="item.taskCategory">
 							<text class="house_hk_" v-for="(item1,index1) in item.taskCategory" :key='index1'>{{item1.category}} ¥{{item1.unitPrice}}/人</text>
@@ -232,7 +232,7 @@
 				let e = {
 					projectId
 				}
-				this.goDetailAction(e)
+				this.goDetailAction(e,2)
 			}
 		},
 		onReachBottom() {
@@ -290,13 +290,19 @@
 				}
 			},
 			// 调准项目详情
-			goDetailAction(e) {
-				if(this.userInfo.userId){
+			goDetailAction(e,type) {
+				if(type==1){
+					if(this.userInfo.userId){
+						uni.navigateTo({
+							url: '../houseDetail/houseDetail?projectId='+e.projectId
+						})
+					}else{
+						uni.$emit('unLogin')
+					}
+				}else{
 					uni.navigateTo({
 						url: '../houseDetail/houseDetail?projectId='+e.projectId
 					})
-				}else{
-					uni.$emit('unLogin')
 				}
 			},
 			// 跳转至效果报表