Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyzhang1992 committed Mar 12, 2019
1 parent 3059ef4 commit cb3c5b6
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
3 changes: 3 additions & 0 deletions pages/me/author/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ Page({
*/
onPullDownRefresh: function () {
wx.showNavigationBarLoading();
this.setData({
poets: []
});
this.getCollectPoet(0);
wx.stopPullDownRefresh()
},
Expand Down
3 changes: 3 additions & 0 deletions pages/me/poem/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ Page({
*/
onPullDownRefresh: function () {
wx.showNavigationBarLoading();
this.setData({
poems: []
});
this.getCollectPoem(0);
wx.stopPullDownRefresh()
},
Expand Down
2 changes: 1 addition & 1 deletion pages/me/search/index.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<view class="weui-cells__title">{{a_total}} 搜索总量</view>
<view data-id="{{item.id}}" class="weui-cell poem-item" wx:for="{{lists}}" wx:key="id" bindtap="update">
<view class="poem-title">{{item.name}}({{item.count}}) <view class="poem-author">id: {{'['+item.id+']'}}</view></view>
<view class="poem-title collect">收藏时间:{{item.created_at}}</view>
<view class="poem-title collect">时间:{{item.created_at}}</view>
</view>
</view>
</view>
Expand Down
3 changes: 3 additions & 0 deletions pages/me/sentence/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ Page({
*/
onPullDownRefresh: function () {
wx.showNavigationBarLoading();
this.setData({
sentences: []
});
this.getCollectSentence(0);
wx.stopPullDownRefresh()
},
Expand Down
3 changes: 2 additions & 1 deletion pages/me/sentence/index.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
<view class="page__bd">
<view class="weui-cells__title">{{a_total}} 收藏</view>
<navigator url="/pages/sentence/detail/index?id={{item.like_id}}" hover-class="navigator-hover" class="weui-cell poem-item" wx:for="{{sentences}}" wx:key="{{item.id}}">
<view class="poem-title">{{item.title}} <view class="poem-author">{{item.origin}}</view></view>
<view class="poem-title">{{item.title}}</view>
<view class="poem-author">{{item.origin}}</view>
<view class="poem-title collect">收藏时间:{{item.updated_at}}</view>
</navigator>
</view>
Expand Down

0 comments on commit cb3c5b6

Please sign in to comment.