Commit f43241ca6cb55c85bc7973d591792ec5f7789b6e

Authored by 陈晓峰
1 parent b810ce02

Manage/Support #16994 写作培训选中学院后,下拉刷新会获取大师课堂的内容

@@ -8,7 +8,7 @@ Page({ @@ -8,7 +8,7 @@ Page({
8 data: { 8 data: {
9 currentTab:'0', 9 currentTab:'0',
10 skey: '', 10 skey: '',
11 - xiala: true, 11 + xiala: false,
12 meng: true, 12 meng: true,
13 index1: '', 13 index1: '',
14 num: '', 14 num: '',
@@ -31,6 +31,9 @@ Page({ @@ -31,6 +31,9 @@ Page({
31 var num = that.data.num 31 var num = that.data.num
32 var skey = that.data.skey 32 var skey = that.data.skey
33 var index1 = that.data.index1 33 var index1 = that.data.index1
  34 + that.setData({
  35 + xiala: true
  36 + })
34 if (index1 == 0) { 37 if (index1 == 0) {
35 wx.request({ 38 wx.request({
36 url: app.url + '/mpapi/1.0.0/writing-training?tag=&offset=&limit=', 39 url: app.url + '/mpapi/1.0.0/writing-training?tag=&offset=&limit=',
@@ -294,7 +297,8 @@ Page({ @@ -294,7 +297,8 @@ Page({
294 setTimeout(function () { 297 setTimeout(function () {
295 wx.stopPullDownRefresh() 298 wx.stopPullDownRefresh()
296 }, 1500) 299 }, 1500)
297 - if (that.data.index1 == 1) { 300 +
  301 + if (that.data.currentTab == 1) {
298 var skey = wx.getStorageSync('key') 302 var skey = wx.getStorageSync('key')
299 that.setData({ 303 that.setData({
300 skey: skey, 304 skey: skey,
@@ -20,7 +20,7 @@ @@ -20,7 +20,7 @@
20 <view class="xiala">{{xiala?'正在加载...':'没有更多信息了'}}</view> 20 <view class="xiala">{{xiala?'正在加载...':'没有更多信息了'}}</view>
21 </view> 21 </view>
22 </view> 22 </view>
23 - <view wx:else class='xiala'> 23 + <view wx:else class="xiala">
24 <!-- <image src='/static/images/kongliebiao.png' mode='aspectFit' class="konglie"></image> --> 24 <!-- <image src='/static/images/kongliebiao.png' mode='aspectFit' class="konglie"></image> -->
25 正在加载... 25 正在加载...
26 </view> 26 </view>
Please register or login to post a comment