update
This commit is contained in:
parent
0749ce1888
commit
7884f13034
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user