Commit e057426b authored by tangfh's avatar tangfh

+

parent be64ade2
...@@ -37,7 +37,8 @@ ...@@ -37,7 +37,8 @@
page: 1, page: 1,
total_page: 1, total_page: 1,
items: [], items: [],
channel: "ongoning" channel: "ongoning",
firstRequest: true
} }
}, },
onLoad(option) { onLoad(option) {
...@@ -48,6 +49,11 @@ ...@@ -48,6 +49,11 @@
90 / getApp().globalData.pxToRpxScale; 90 / getApp().globalData.pxToRpxScale;
this.init(option); this.init(option);
}, },
onShow() {
if(!this.firstRequest) {
//this.request()
}
},
methods: { methods: {
init(option) { init(option) {
this.onRefresh() this.onRefresh()
...@@ -66,14 +72,14 @@ ...@@ -66,14 +72,14 @@
onRefresh(e) { onRefresh(e) {
this.refresherTriggered = true; this.refresherTriggered = true;
this.refreshInit(); this.refreshInit();
this.getList(); this.request();
}, },
onLoadMore(e) { onLoadMore(e) {
if ('noMore' == this.status) { if ('noMore' == this.status) {
return; return;
} }
this.status = 'loading'; this.status = 'loading';
this.getList(); this.request();
}, },
onBottomBtnClick() { onBottomBtnClick() {
uni.navigateTo({ uni.navigateTo({
...@@ -85,7 +91,7 @@ ...@@ -85,7 +91,7 @@
url: "/pages/repair-detail/repair-detail" url: "/pages/repair-detail/repair-detail"
}) })
}, },
getList() { request() {
this.page = this.page > this.total_page ? this.total_page : this.page; this.page = this.page > this.total_page ? this.total_page : this.page;
let url = ""; let url = "";
let param = { let param = {
...@@ -133,6 +139,7 @@ ...@@ -133,6 +139,7 @@
this.status = constant.LOAD_STATUS.more; this.status = constant.LOAD_STATUS.more;
} }
} }
this.firstRequest = false
uni.hideLoading() uni.hideLoading()
} }
} }
......
...@@ -85,7 +85,8 @@ ...@@ -85,7 +85,8 @@
order_sn: "SN2023050813", order_sn: "SN2023050813",
date: "2023-05-06-08 13:16", date: "2023-05-06-08 13:16",
item: "公共照明", item: "公共照明",
} },
firstRequest: true,
} }
}, },
onLoad(option) { onLoad(option) {
...@@ -100,6 +101,11 @@ ...@@ -100,6 +101,11 @@
this.init(option); this.init(option);
}, },
onShow() {
if(!this.firstRequest) {
//this.getList()
}
},
methods: { methods: {
init(option) { init(option) {
this.initTabBar(); 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