|
@@ -16,8 +16,10 @@
|
|
|
<view class="text">{{item.spaceName}}</view>
|
|
|
</view>
|
|
|
<view class="bottom-btn-wrap">
|
|
|
+ <u-button class="bt1" @click="last(list.pageNum)"><</u-button>
|
|
|
+ <u-button class="bt2" @click="next(list.pageNum)">></u-button>
|
|
|
<!-- <view class="bottom-btn" @click="openPage('pages/index/index')">返回主页</view> -->
|
|
|
- <uni-pagination class="page" v-if="roadspaceList" title="标题文字" :total='total' @change='uni_pagination_change'></uni-pagination>
|
|
|
+ <!-- <uni-pagination class="page" v-if="roadspaceList" title="标题文字" :total='total' @change='uni_pagination_change'></uni-pagination> -->
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- <u-action-sheet :list="actionList" @click="actionClick" v-model="actionShow"></u-action-sheet> -->
|
|
@@ -44,9 +46,11 @@
|
|
|
spaceId:null,
|
|
|
spaceName:'',
|
|
|
total:'',
|
|
|
- list:[],
|
|
|
+ list:{
|
|
|
+ pageNum:''
|
|
|
+ },
|
|
|
vehicleNo:'',
|
|
|
- carImg:''
|
|
|
+ carImg:'',
|
|
|
}
|
|
|
},
|
|
|
onLoad() {
|
|
@@ -55,12 +59,18 @@
|
|
|
|
|
|
},
|
|
|
methods:{
|
|
|
- uni_pagination_change(e){
|
|
|
+ // uni_pagination_change(e){
|
|
|
|
|
|
- //this.getList(e.current)
|
|
|
- this.handleGetRoadspace(this.roadNo, e.current)
|
|
|
- console.log(e)
|
|
|
- // {type: "next", current: 2}
|
|
|
+ // //this.getList(e.current)
|
|
|
+ // this.handleGetRoadspace(this.roadNo, e.current)
|
|
|
+ // console.log(e)
|
|
|
+ // // {type: "next", current: 2}
|
|
|
+ // },
|
|
|
+ last(i){
|
|
|
+ this.handleGetRoadspace(this.roadNo,i-1)
|
|
|
+ },
|
|
|
+ next(n){
|
|
|
+ this.handleGetRoadspace(this.roadNo,n+1)
|
|
|
},
|
|
|
customBack(){
|
|
|
this.$u.route({
|
|
@@ -81,6 +91,7 @@
|
|
|
// title: res.msg,
|
|
|
// type: 'success',
|
|
|
// });
|
|
|
+ this.list.pageNum=res.data.page;
|
|
|
this.total=res.data.total;
|
|
|
this.roadspaceList = res.data.rows;
|
|
|
console.log('handleGetRoadspace',res)
|