feat: migrate static pages to native tabbar

This commit is contained in:
2026-04-23 21:25:24 +08:00
parent f3cd0c3a98
commit cd30f57f2c
116 changed files with 7143 additions and 311 deletions

43
pages/library/index.wxml Normal file
View File

@@ -0,0 +1,43 @@
<view class="library-page">
<view class="library-page__header">
<text class="library-page__title">{{title}}</text>
<view class="library-page__search" bindtap="handleSearchTap">{{searchButtonText}}</view>
</view>
<view class="library-page__content">
<view class="library-page__sidebar">
<view
class="library-page__category {{activeCategoryId === item.id ? 'library-page__category--active' : ''}}"
wx:for="{{categories}}"
wx:key="id"
data-category-id="{{item.id}}"
bindtap="handleCategoryTap"
>
<text class="library-page__category-label">{{item.name}}</text>
</view>
</view>
<view class="library-page__main">
<view class="library-page__bridge" bindtap="handleDomainBridgeTap">
<text class="library-page__bridge-title">{{domainBridge.title}}</text>
<text class="library-page__bridge-subtitle">{{domainBridge.subtitle}}</text>
</view>
<view class="library-page__current">当前分类: {{currentCategoryName}}</view>
<view class="library-page__book-list">
<view class="book-card" wx:for="{{visibleBooks}}" wx:key="id">
<view class="book-card__cover">
<view class="book-card__cover-spine"></view>
<text class="book-card__cover-char">{{item.coverText}}</text>
</view>
<view class="book-card__body">
<text class="book-card__title">{{item.title}}</text>
<text class="book-card__meta">{{item.author}} / {{item.dynasty}} / {{item.period}}</text>
</view>
</view>
</view>
</view>
</view>
</view>