Showing
1 changed file
with
4 additions
and
3 deletions
@@ -26,9 +26,7 @@ Page({ | @@ -26,9 +26,7 @@ Page({ | ||
26 | orderType: type | 26 | orderType: type |
27 | }); | 27 | }); |
28 | 28 | ||
29 | - if (app.getUid()) { | ||
30 | - this.getOrders(type); | ||
31 | - } else { | 29 | + if (!app.getUid()) { |
32 | wx.switchTab({ | 30 | wx.switchTab({ |
33 | url: '/pages/home/home', | 31 | url: '/pages/home/home', |
34 | }); | 32 | }); |
@@ -37,6 +35,9 @@ Page({ | @@ -37,6 +35,9 @@ Page({ | ||
37 | yas = new Yas(app); | 35 | yas = new Yas(app); |
38 | yas.pageOpenReport(); | 36 | yas.pageOpenReport(); |
39 | }, | 37 | }, |
38 | + onShow: function(e) { | ||
39 | + this.getOrders(this.data.orderType); | ||
40 | + }, | ||
40 | startTimer: function () { | 41 | startTimer: function () { |
41 | let that = this; | 42 | let that = this; |
42 | 43 |
-
Please register or login to post a comment