pull/9/head
caolc 2 years ago
parent 13d887e47e
commit 1f249bc07d
  1. 1
      pages/tabbar/home/home.vue
  2. 6
      pages/tabbar/order/orderList/orderList.vue

@ -533,6 +533,7 @@
currentPage: 1,
pageSize: 10,
params: { //Object //
clientBelong:'BAICHUAN',
sort: "juli", //String // ( price juli )
// longitude: 117.157817, // //
// latitude: 31.802472, // //

@ -136,7 +136,7 @@
}
},
onShow() {
this.initList()
// this.initList()
},
onLoad() {
this.initList()
@ -168,6 +168,7 @@
}, 500)
},
initList() {
console.log('initList')
if (this.TabCur == 0 && this.list.length == 0) {
this.getOrder('全部', this.currentPage.currentPage,'initList')
} else if (this.TabCur == 1 && this.list0.length == 0) {
@ -242,6 +243,7 @@
pageSize: 10, //Number
index: (page - 1) * 10,
params: { //Object
clientBelong:'BAICHUAN',
orderStatus: id == '全部' ? '' : (id +''), //String 0 1 -1 23退
search: this.search //类型:String 必有字段 备注:搜索 ( 油站名称/ 订单编号/ 油品)
},
@ -253,7 +255,7 @@
// 0 1 -1 23退
if (id == '0') {
// 0 list0
this.list0 = this.list0.concat(res.data.list)
this.list0 = this.list0.concat(res.data.list);
if (res.data.list.length < 10) { //
this.status.loadOrderStatus0 = 'nomore'
uni.showToast({

Loading…
Cancel
Save