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, currentPage: 1,
pageSize: 10, pageSize: 10,
params: { //Object // params: { //Object //
clientBelong:'BAICHUAN',
sort: "juli", //String // ( price juli ) sort: "juli", //String // ( price juli )
// longitude: 117.157817, // // // longitude: 117.157817, // //
// latitude: 31.802472, // // // latitude: 31.802472, // //

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

Loading…
Cancel
Save