Commit e057426b authored by tangfh's avatar tangfh

+

parent be64ade2
......@@ -37,7 +37,8 @@
page: 1,
total_page: 1,
items: [],
channel: "ongoning"
channel: "ongoning",
firstRequest: true
}
},
onLoad(option) {
......@@ -48,6 +49,11 @@
90 / getApp().globalData.pxToRpxScale;
this.init(option);
},
onShow() {
if(!this.firstRequest) {
//this.request()
}
},
methods: {
init(option) {
this.onRefresh()
......@@ -66,14 +72,14 @@
onRefresh(e) {
this.refresherTriggered = true;
this.refreshInit();
this.getList();
this.request();
},
onLoadMore(e) {
if ('noMore' == this.status) {
return;
}
this.status = 'loading';
this.getList();
this.request();
},
onBottomBtnClick() {
uni.navigateTo({
......@@ -85,7 +91,7 @@
url: "/pages/repair-detail/repair-detail"
})
},
getList() {
request() {
this.page = this.page > this.total_page ? this.total_page : this.page;
let url = "";
let param = {
......@@ -133,6 +139,7 @@
this.status = constant.LOAD_STATUS.more;
}
}
this.firstRequest = false
uni.hideLoading()
}
}
......
......@@ -85,7 +85,8 @@
order_sn: "SN2023050813",
date: "2023-05-06-08 13:16",
item: "公共照明",
}
},
firstRequest: true,
}
},
onLoad(option) {
......@@ -100,6 +101,11 @@
this.init(option);
},
onShow() {
if(!this.firstRequest) {
//this.getList()
}
},
methods: {
init(option) {
this.initTabBar();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment