-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
xumengqi
committed
Apr 2, 2021
1 parent
17570ac
commit 0006c5e
Showing
7 changed files
with
66 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
{ | ||
"usingComponents": {} | ||
"navigationBarTitleText": "搜索书籍", | ||
"usingComponents": { | ||
"book-grid": "/components/book_grid/book_grid" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,21 @@ | ||
<!--pages/search/search.wxml--> | ||
<text>pages/search/search.wxml</text> | ||
<view class="page"> | ||
<van-row> | ||
<van-col span="24"> | ||
<van-sticky> | ||
<van-search value="{{ keyword }}" bind:change="onChange" focus="{{ true }}" bind:search="getSearchBookList" | ||
placeholder="请输入书名或ISBN,或免押金" shape="round"> | ||
</van-search> | ||
</van-sticky> | ||
<view style="margin-top: 12px"></view> | ||
<van-empty image="search" description="没有搜索到相关内容~" wx:if="{{bookList.length == 0}}" /> | ||
<van-row> | ||
<book-grid bookList="{{ bookList }}"></book-grid> | ||
</van-row> | ||
<van-row style="margin: 12px" wx:if="{{ bookList.length > 0 }}"> | ||
<van-col span="8" offset="8"> | ||
<van-divider contentPosition="center" dashed>到底了~</van-divider> | ||
</van-col> | ||
</van-row> | ||
</van-col> | ||
</van-row> | ||
</view> |