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