Commit bb1a0fb2c5ddf7587e7bda4e77eab1b814a7edf5
1 parent
78393c14
月包的优化
Showing
1 changed file
with
5 additions
and
4 deletions
packageE/pages/user/monthgiftbag/monthgiftbag.js
@@ -92,9 +92,10 @@ Page({ | @@ -92,9 +92,10 @@ Page({ | ||
92 | getApp().goto('/packageE/pages/togoin/togoin'); | 92 | getApp().goto('/packageE/pages/togoin/togoin'); |
93 | return false; | 93 | return false; |
94 | } | 94 | } |
95 | - this.setData({ | ||
96 | - wareCard:[] | ||
97 | - }) | 95 | + this.data.curpage=0; |
96 | + this.data.searching=0; | ||
97 | + this.setData({ismore:0,is_get:0,wareCard:[]}); | ||
98 | + | ||
98 | this.init() | 99 | this.init() |
99 | }) | 100 | }) |
100 | 101 | ||
@@ -251,7 +252,7 @@ Page({ | @@ -251,7 +252,7 @@ Page({ | ||
251 | 252 | ||
252 | search_lb(){ | 253 | search_lb(){ |
253 | this.data.curpage=0; | 254 | this.data.curpage=0; |
254 | - this.searching=0; | 255 | + this.data.searching=0; |
255 | this.setData({ismore:0,is_get:0,wareCard:[]}); | 256 | this.setData({ismore:0,is_get:0,wareCard:[]}); |
256 | this.getList(); | 257 | this.getList(); |
257 | }, | 258 | }, |