feat: migrate static pages to native tabbar
This commit is contained in:
44
packages/learning/pages/center/index.wxml
Normal file
44
packages/learning/pages/center/index.wxml
Normal file
@@ -0,0 +1,44 @@
|
||||
<view class="learning-page">
|
||||
<view class="hero-card">
|
||||
<text class="hero-card__title">{{heroTitle}}</text>
|
||||
<text class="hero-card__desc">{{heroDescription}}</text>
|
||||
<view class="stats-row">
|
||||
<view class="stat-pill" wx:for="{{summaryCards}}" wx:key="key">
|
||||
<text class="stat-pill__value">{{item.value}}</text>
|
||||
<text class="stat-pill__label">{{item.label}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="quick-grid">
|
||||
<view
|
||||
class="quick-card"
|
||||
wx:for="{{quickDeck}}"
|
||||
wx:key="key"
|
||||
data-route="{{item.route}}"
|
||||
bindtap="handleRouteTap"
|
||||
>
|
||||
<text class="quick-card__tag">{{item.domain === 'tcm' ? '中医继续学习' : '易学继续学习'}}</text>
|
||||
<text class="quick-card__title">{{item.title}}</text>
|
||||
<text class="quick-card__desc">{{item.description}}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="section-card">
|
||||
<text class="section-card__title">最近学习动作</text>
|
||||
<view
|
||||
class="timeline-item"
|
||||
wx:for="{{recentItems}}"
|
||||
wx:key="key"
|
||||
data-route="{{item.route}}"
|
||||
bindtap="handleRouteTap"
|
||||
>
|
||||
<view class="timeline-item__icon">读</view>
|
||||
<view class="timeline-item__body">
|
||||
<text class="timeline-item__title">{{item.title}}</text>
|
||||
<text class="timeline-item__desc">{{item.description}}</text>
|
||||
</view>
|
||||
<text class="timeline-item__arrow">></text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
Reference in New Issue
Block a user