This commit is contained in:
caolc
2023-02-15 19:57:59 +08:00
parent 13d887e47e
commit 1f249bc07d
2 changed files with 5 additions and 2 deletions

View File

@@ -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, // 必有字段 备注:// 当前位置维度

View File

@@ -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支付失败 2已取消3已退款 orderStatus: id == '全部' ? '' : (id +''), //类型String 必有字段 备注:订单状态 0待支付 1已支付 -1支付失败 2已取消3已退款
search: this.search //类型String 必有字段 备注:搜索 ( 油站名称/ 订单编号/ 油品) search: this.search //类型String 必有字段 备注:搜索 ( 油站名称/ 订单编号/ 油品)
}, },
@@ -253,7 +255,7 @@
// 0待支付 1已支付 -1支付失败 2已取消3已退款 // 0待支付 1已支付 -1支付失败 2已取消3已退款
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({