diff --git a/pages/summaryOfPortraits/components/carPortrait.vue b/pages/summaryOfPortraits/components/carPortrait.vue index ed81335..f30d941 100644 --- a/pages/summaryOfPortraits/components/carPortrait.vue +++ b/pages/summaryOfPortraits/components/carPortrait.vue @@ -127,6 +127,9 @@ + + {{'点击加载更多'}} + @@ -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;