|
|
@@ -8,7 +8,7 @@ |
|
|
|
|
|
|
|
<view class="list-box"> |
|
|
|
<view class="list-item" v-for="(item,index) in listData" :key="index"> |
|
|
|
<image @click="topage(item)" class="house-img" :src="item.pictrues[0].pictureUrl||'/static/kehu/pic1.png'" mode="" /> |
|
|
|
<image @click="topage(item)" class="house-img" :src="item.pic" mode="" /> |
|
|
|
<view class="item-info"> |
|
|
|
<view class="house-name u-line-1">{{item.address}}</view> |
|
|
|
<view class="type"> |
|
|
@@ -24,7 +24,7 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<u-modal v-model="showModal" :show-cancel-button="true" confirm-color="#FF6D25" @confirm="confirmFun" title="确认操作" content="您确认置顶?"></u-modal> |
|
|
|
<u-modal v-model="showModal" :show-cancel-button="true" confirm-color="#FF6D25" @confirm="confirmFun" title="确认操作" :content="'您确认'+(isTop==0?'置顶吗?':'取消置顶吗?')"></u-modal> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
<script> |
|
|
@@ -46,11 +46,14 @@ |
|
|
|
pageNo: 1, |
|
|
|
pageSize: 10, |
|
|
|
loadDone: false, |
|
|
|
isTop: 0 |
|
|
|
}; |
|
|
|
}, |
|
|
|
onLoad(options) { |
|
|
|
}, |
|
|
|
onShow() { |
|
|
|
this.loadDone = false; |
|
|
|
this.pageNo = 1 |
|
|
|
this.getList() |
|
|
|
}, |
|
|
|
created(){ |
|
|
@@ -60,10 +63,11 @@ |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
topfunction(item){ |
|
|
|
this.currentId = item.mediacyId |
|
|
|
this.isTop = item.isTop |
|
|
|
this.showModal = true |
|
|
|
this.currentId = item.mediacyId |
|
|
|
this.isTop = item.isTop |
|
|
|
}, |
|
|
|
console.log(item.isTop) |
|
|
|
}, |
|
|
|
// 置顶接口 |
|
|
|
confirmFun(){ |
|
|
|
if(this.isTop ==1){ |
|
|
@@ -124,8 +128,14 @@ |
|
|
|
ownerMobile:this.keyword, |
|
|
|
} |
|
|
|
this.$u.api.intermediary({body:params}).then((res)=>{ |
|
|
|
console.log(res) |
|
|
|
// console.log(res) |
|
|
|
if(res.result&&res.result.length){ |
|
|
|
res.result.forEach(item=>{ |
|
|
|
if(item.pictrues&&item.pictrues.length){ |
|
|
|
let obj = item.pictrues[item.pictrues.length-1] |
|
|
|
item.pic = obj.pictureUrl |
|
|
|
} |
|
|
|
}) |
|
|
|
if(this.pageNo==1){ |
|
|
|
this.listData = res.result |
|
|
|
}else{ |
|
|
@@ -212,7 +222,6 @@ |
|
|
|
line-height: 44rpx; |
|
|
|
background: #FFFFFF; |
|
|
|
border-radius: 8rpx; |
|
|
|
// padding: 0 18rpx; |
|
|
|
font-size: 26rpx; |
|
|
|
font-family: PingFangSC-Regular, PingFang SC; |
|
|
|
font-weight: 400; |
|
|
|