ii
This commit is contained in:
@@ -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:支付失败 ,2:已取消,3:已退款
|
||||
search: this.search //类型:String 必有字段 备注:搜索 ( 油站名称/ 订单编号/ 油品)
|
||||
},
|
||||
@@ -253,7 +255,7 @@
|
||||
// 0:待支付, 1:已支付 ,-1:支付失败 ,2:已取消,3:已退款
|
||||
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({
|
||||
|
||||
Reference in New Issue
Block a user