Showing
1 changed file
with
6 additions
and
3 deletions
| ... | ... | @@ -6,7 +6,7 @@ Page({ |
| 6 | 6 | * 页面的初始数据 |
| 7 | 7 | */ |
| 8 | 8 | data: { |
| 9 | - xiala: false, | |
| 9 | + xiala: true, | |
| 10 | 10 | currentTab: 0, |
| 11 | 11 | toubu: true, |
| 12 | 12 | skey: '', |
| ... | ... | @@ -119,7 +119,6 @@ Page({ |
| 119 | 119 | */ |
| 120 | 120 | onLoad: function (options) { |
| 121 | 121 | var that = this |
| 122 | - console.log(999999) | |
| 123 | 122 | var skey = wx.getStorageSync('key') |
| 124 | 123 | console.log('skey', skey) |
| 125 | 124 | that.setData({ |
| ... | ... | @@ -139,7 +138,11 @@ Page({ |
| 139 | 138 | // id:'1' |
| 140 | 139 | }, |
| 141 | 140 | success: function (res) { |
| 142 | - console.log('con', res.data) | |
| 141 | + if (res.data.data.length < 8) { | |
| 142 | + that.setData({ | |
| 143 | + xiala: false, | |
| 144 | + }) | |
| 145 | + } | |
| 143 | 146 | if (res.data.countTotal > 100) { |
| 144 | 147 | that.setData({ |
| 145 | 148 | toubu: false | ... | ... |
Please
register
or
login
to post a comment