Skip to content

Commit

Permalink
feature: 首页不显示排行榜
Browse files Browse the repository at this point in the history
  • Loading branch information
xumengqi committed Apr 1, 2021
1 parent 4ad9b7e commit 6405fbd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions components/home/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,9 @@ Component({
attached() {
this.getBookListToday()
this.getBookListRecommend()
this.getRankListShare()
this.getRankListBorrow()
// 不显示排行榜
// this.getRankListShare()
// this.getRankListBorrow()
}
}
})
6 changes: 3 additions & 3 deletions components/home/home.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,18 @@
</van-col>
</van-row>
<book-grid bookList="{{ bookListRecommend }}"></book-grid>
<van-row>
<van-row wx:if="{{ rankListShare.length != 0 || rankListBorrow.length != 0}}">
<van-col span="8" offset="8">
<van-divider contentPosition="center" dashed>排行榜</van-divider>
</van-col>
</van-row>
<van-row>
<van-row wx:if="{{ rankListShare.length != 0 }}">
<van-col span="24">
<ranking-list rankingList="{{rankListShare }}" valueUnit="次" title="借阅排行榜"
icon="/resources/images/home/honor.png" titleSecond="借阅书籍次数最多~"></ranking-list>
</van-col>
</van-row>
<van-row>
<van-row wx:if="{{ rankListBorrow.length != 0}}">
<van-col span="24">
<ranking-list rankingList="{{rankListBorrow }}" valueUnit="次" title="共享排行榜"
icon="/resources/images/home/no1.png" titleSecond="共享书籍次数最多~"></ranking-list>
Expand Down

0 comments on commit 6405fbd

Please sign in to comment.