|
@@ -191,6 +191,7 @@
|
|
|
text: '租车购车'
|
|
|
}
|
|
|
],
|
|
|
+ start_id:0,
|
|
|
page: 1,
|
|
|
limit: 10,
|
|
|
status: '-1',
|
|
@@ -257,7 +258,7 @@
|
|
|
* 页面下拉触底事件的处理函数
|
|
|
*/
|
|
|
onPullDownRefresh() {
|
|
|
- this.page = 1
|
|
|
+ this.start_id
|
|
|
if (this.selectOrderType == 0) {
|
|
|
this.bindExchangeOrderFn()
|
|
|
} else if (this.selectOrderType == 1) {
|
|
@@ -284,15 +285,18 @@
|
|
|
return getRemainingTime(start, end)
|
|
|
},
|
|
|
async bindExchangeOrderFn() {
|
|
|
+ let me = this
|
|
|
let {
|
|
|
data
|
|
|
} = await request.postApi(config_gyq.API_FLK_EXCHANGE_PACKAGE_ORDER_LIST, {
|
|
|
pay_status: -1,
|
|
|
car_sn: '',
|
|
|
+ start_id:me.start_id,
|
|
|
page: this.page,
|
|
|
limit: this.limit,
|
|
|
})
|
|
|
if (data.code == 200) {
|
|
|
+ me.start_id = data.data.start_id
|
|
|
this.hireOrderList.push.apply(this.hireOrderList, data.data.list)
|
|
|
this.is_next = data.data.is_next
|
|
|
} else {
|
|
@@ -304,11 +308,13 @@
|
|
|
http.postApi(config.API_FLK_ORDER_LIST, {
|
|
|
page: me.page,
|
|
|
limit: me.limit,
|
|
|
+ start_id:me.start_id,
|
|
|
// status: me.status,
|
|
|
// sort_time: me.sort_time,
|
|
|
// sort_num: me.sort_num
|
|
|
}, (resp) => {
|
|
|
if (resp.data.code === 200) {
|
|
|
+ me.start_id = resp.data.data.start_id
|
|
|
me.hireOrderList.push.apply(me.hireOrderList, resp.data.data.list)
|
|
|
me.is_next = resp.data.data.is_next
|
|
|
if (me.hireOrderList.length > 0) {
|