feat: migrate static pages to native tabbar
This commit is contained in:
21
packages/mingli/pages/search-books/index.wxml
Normal file
21
packages/mingli/pages/search-books/index.wxml
Normal file
@@ -0,0 +1,21 @@
|
||||
<view class="mingli-search-page">
|
||||
<view class="section-card">
|
||||
<text class="section-card__title">{{title}}</text>
|
||||
<text class="section-card__item" wx:for="{{history}}" wx:key="index" data-keyword="{{item}}" bindtap="handleHistoryTap">
|
||||
{{item}}
|
||||
</text>
|
||||
</view>
|
||||
|
||||
<view wx:if="{{results.length}}" class="section-card">
|
||||
<text class="section-card__title">搜索结果</text>
|
||||
<view
|
||||
class="section-card__item"
|
||||
wx:for="{{results}}"
|
||||
wx:key="key"
|
||||
data-route="{{item.route}}"
|
||||
bindtap="handleResultTap"
|
||||
>
|
||||
{{item.title}} · {{item.subtitle}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
Reference in New Issue
Block a user