This commit is contained in:
cclu 2024-02-29 18:17:01 +08:00
parent 0749ce1888
commit 7884f13034

View File

@ -127,6 +127,9 @@
</div>
</div>
</div>
<view class="load-more" v-if="allRegionList && allRegionList.length>10*selectIndexPage">
<text @click="handleGetMore">{{'点击加载更多'}}</text>
</view>
</scroll-view>
</div>
</div>
@ -362,7 +365,9 @@ export default {
selectValue:'',//
allProvince:true,//
isShowAllProvince:false,//
regionList: null,
regionList: null,//
allRegionList: [],//
selectIndexPage: 1,//
theRequest: null,
headMsg:null,
searchEndTime:'',
@ -518,6 +523,10 @@ export default {
this.searchTextMonth = ''
},
methods:{
handleGetMore(){
this.selectIndexPage +=1
this.regionList = this.allRegionList.slice(0,this.selectIndexPage * 10)
},
handleClick(e){
// console.log('click',e)
},
@ -738,7 +747,8 @@ export default {
item.Serverpart_ID = this.serviceInfo.Serverpart_ID
item.showChild = false
})
this.regionList = this.carData
this.allRegionList = this.carData
this.regionList = this.carData.slice(0,this.selectIndexPage * 10)
console.log('this.carData',this.carData)
uni.hideLoading()
// let sumObj = {
@ -1847,6 +1857,13 @@ export default {
}
}
}
.load-more {
text-align: center;
width: 100%;
height: 80rpx;
color: #9999;
font-size: 24rpx;
}
//.listItem{
// margin-bottom: 12px;
// border: 1px solid #D9DBE0;