init
This commit is contained in:
33
pages/tabpages/find/find.wxml
Normal file
33
pages/tabpages/find/find.wxml
Normal file
@@ -0,0 +1,33 @@
|
||||
<van-sticky>
|
||||
<!-- 搜索框 -->
|
||||
<van-search
|
||||
model:value="{{searchKey}}"
|
||||
input-align="center"
|
||||
use-action-slot
|
||||
placeholder="请输入搜索关键词"
|
||||
bind:search="onSearch"
|
||||
>
|
||||
<view slot="action" bind:tap="onSearch" style="margin: 0 10px;">搜索</view>
|
||||
</van-search>
|
||||
</van-sticky>
|
||||
|
||||
|
||||
<view class="card-blank hot_title">
|
||||
<view>
|
||||
<van-icon name="fire" color="#DD001B" size="18px" />
|
||||
<text style="margin-left: 10px;">热门文章</text>
|
||||
</view>
|
||||
<!-- <van-button type="info" size="small" bindtap="rank" data-type="all">全部</van-button>
|
||||
<van-button type="info" size="small" bindtap="rank" data-type="collectionNum">收藏榜</van-button>
|
||||
<van-button type="info" size="small" bindtap="rank" data-type="downloadNum">下载榜</van-button> -->
|
||||
</view>
|
||||
|
||||
<scroll-view scroll-y="true" scroll-x="false" bindscrolltolower="onReachBottom">
|
||||
<view class="card" wx:for="{{hotArticles}}" wx:key="{{index}}">
|
||||
<article-card data="{{item}}" />
|
||||
</view>
|
||||
<view hidden="{{!hasMore}}" class="loading-more">加载中...</view>
|
||||
<view hidden="{{!loading}}" class="loading-icon">loading...</view>
|
||||
</scroll-view>
|
||||
|
||||
<van-empty wx:if="{{hotArticles.length==0}}" description="没有更多文章了~" />
|
||||
Reference in New Issue
Block a user