|
@@ -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')
|
|
|
}
|
|
|
},
|
|
|
// 跳转至效果报表
|