Commit f43241ca6cb55c85bc7973d591792ec5f7789b6e
1 parent
b810ce02
Manage/Support #16994 写作培训选中学院后,下拉刷新会获取大师课堂的内容
Showing
2 changed files
with
7 additions
and
3 deletions
| ... | ... | @@ -8,7 +8,7 @@ Page({ |
| 8 | 8 | data: { |
| 9 | 9 | currentTab:'0', |
| 10 | 10 | skey: '', |
| 11 | - xiala: true, | |
| 11 | + xiala: false, | |
| 12 | 12 | meng: true, |
| 13 | 13 | index1: '', |
| 14 | 14 | num: '', |
| ... | ... | @@ -31,6 +31,9 @@ Page({ |
| 31 | 31 | var num = that.data.num |
| 32 | 32 | var skey = that.data.skey |
| 33 | 33 | var index1 = that.data.index1 |
| 34 | + that.setData({ | |
| 35 | + xiala: true | |
| 36 | + }) | |
| 34 | 37 | if (index1 == 0) { |
| 35 | 38 | wx.request({ |
| 36 | 39 | url: app.url + '/mpapi/1.0.0/writing-training?tag=&offset=&limit=', |
| ... | ... | @@ -294,7 +297,8 @@ Page({ |
| 294 | 297 | setTimeout(function () { |
| 295 | 298 | wx.stopPullDownRefresh() |
| 296 | 299 | }, 1500) |
| 297 | - if (that.data.index1 == 1) { | |
| 300 | + | |
| 301 | + if (that.data.currentTab == 1) { | |
| 298 | 302 | var skey = wx.getStorageSync('key') |
| 299 | 303 | that.setData({ |
| 300 | 304 | skey: skey, | ... | ... |
| ... | ... | @@ -20,7 +20,7 @@ |
| 20 | 20 | <view class="xiala">{{xiala?'正在加载...':'没有更多信息了'}}</view> |
| 21 | 21 | </view> |
| 22 | 22 | </view> |
| 23 | - <view wx:else class='xiala'> | |
| 23 | + <view wx:else class="xiala"> | |
| 24 | 24 | <!-- <image src='/static/images/kongliebiao.png' mode='aspectFit' class="konglie"></image> --> |
| 25 | 25 | 正在加载... |
| 26 | 26 | </view> | ... | ... |
Please
register
or
login
to post a comment