Showing
3 changed files
with
8 additions
and
2 deletions
@@ -93,7 +93,12 @@ Component({ | @@ -93,7 +93,12 @@ Component({ | ||
93 | }, | 93 | }, |
94 | 94 | ||
95 | goList() { | 95 | goList() { |
96 | - router.go('index'); | 96 | + if(getCurrentPages().length === 1) { |
97 | + router.go('index'); | ||
98 | + } else { | ||
99 | + wx.navigateBack() | ||
100 | + } | ||
101 | + | ||
97 | }, | 102 | }, |
98 | 103 | ||
99 | cancelAlert() { | 104 | cancelAlert() { |
@@ -69,6 +69,7 @@ class ZeroSellService extends Service { | @@ -69,6 +69,7 @@ class ZeroSellService extends Service { | ||
69 | } | 69 | } |
70 | 70 | ||
71 | fetchCode(data) { | 71 | fetchCode(data) { |
72 | + data.miniAppType = MINI_APP_TYPE | ||
72 | return this._post('/code/gain', data); | 73 | return this._post('/code/gain', data); |
73 | } | 74 | } |
74 | 75 |
-
Please register or login to post a comment