You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.9 KiB
58 lines
1.9 KiB
<van-nav-bar |
|
title="搜索" |
|
border="{{false}}" |
|
custom-style="background:{{background}}" |
|
bind:click-left="handleBack" |
|
fixed |
|
> |
|
<van-icon name="arrow-left" slot="left" color="#000" size="46rpx" /> |
|
</van-nav-bar> |
|
<view class="page" style="padding-top:{{menuButtonInfo.bottom}}px;"> |
|
<view class="search"> |
|
<image class="icon" src="{{imageUrl}}icon-search.png?t={{Timestamp}}"></image> |
|
<input |
|
type="text" |
|
class="input" |
|
model:value="{{Search}}" |
|
focus="{{focus}}" |
|
placeholder-class="place-input" |
|
confirm-type="search" |
|
bindconfirm="handleSearch" |
|
placeholder="请输入要搜索的内容" |
|
bindinput="handleInput" |
|
/> |
|
</view> |
|
<view class="tip" wx:if="{{list.length}}">以下为搜到的内容</view> |
|
<view |
|
class="card" |
|
wx:for="{{list}}" |
|
wx:key="index" |
|
bind:tap="handleDetail" |
|
data-id="{{item.BookId}}" |
|
data-cid="{{item.ChapterId}}" |
|
> |
|
<image class="photo" mode="aspectFill" src="{{item.CoverUrl}}"></image> |
|
<view class="c-container"> |
|
<view class="title">{{item.ChapterName}}</view> |
|
<view class="book-name">{{item.BookName}}</view> |
|
<view class="c-footer"> |
|
<view class="type">{{item.CateName}}{{item.CateSecondName ? '/'+item.CateSecondName : ''}}</view> |
|
<view class="stat"> |
|
<view class="s-item"> |
|
<!-- <image class="icon" src="{{imageUrl}}icon-eye.png?t={{Timestamp}}"></image> --> |
|
阅读 {{~~item.OperateNum + ~~item.BrowseNum}} |
|
</view> |
|
</view> |
|
</view> |
|
</view> |
|
</view> |
|
<view class="empty-search" wx:if="{{Search && pagination.count==='0'}}"> |
|
<image class="e-icon" src="{{imageUrl}}empty-1.png?t={{Timestamp}}"></image> |
|
<view class="content"> |
|
抱歉,未搜到相关内容 |
|
<view></view> |
|
换个词试试吧 |
|
</view> |
|
</view> |
|
<pagination wx:elif="{{list.length}}" pagination="{{pagination}}"></pagination> |
|
</view>
|
|
|