feat: migrate static pages to native tabbar
This commit is contained in:
28
packages/mingli/pages/book-detail/index.wxml
Normal file
28
packages/mingli/pages/book-detail/index.wxml
Normal file
@@ -0,0 +1,28 @@
|
||||
<view class="mingli-book-page">
|
||||
<view class="hero-card">
|
||||
<view class="hero-card__cover">{{coverText}}</view>
|
||||
<view class="hero-card__body">
|
||||
<text class="hero-card__title">{{book.title}}</text>
|
||||
<text class="hero-card__subtitle">{{book.subtitle}}</text>
|
||||
<view class="hero-card__button" bindtap="handlePrimaryTap">进入阅读</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="section-card">
|
||||
<text class="section-card__title">目录预览</text>
|
||||
<text class="section-card__item" wx:for="{{catalog}}" wx:key="index">{{item}}</text>
|
||||
</view>
|
||||
|
||||
<view class="section-card">
|
||||
<text class="section-card__title">相关推荐</text>
|
||||
<view
|
||||
class="section-card__recommend"
|
||||
wx:for="{{recommends}}"
|
||||
wx:key="key"
|
||||
data-route="{{item.route}}"
|
||||
bindtap="handleRecommendTap"
|
||||
>
|
||||
{{item.title}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
Reference in New Issue
Block a user