feat: migrate static pages to native tabbar
This commit is contained in:
27
packages/tcm/pages/ai-history/index.wxml
Normal file
27
packages/tcm/pages/ai-history/index.wxml
Normal file
@@ -0,0 +1,27 @@
|
||||
<view class="ai-history-page">
|
||||
<text class="ai-history-page__title">{{title}}</text>
|
||||
|
||||
<view wx:if="{{scene === 'empty'}}" class="empty-card">
|
||||
<text class="empty-card__title">{{emptyTitle}}</text>
|
||||
<text class="empty-card__description">{{emptyDescription}}</text>
|
||||
<view class="empty-card__action" bindtap="handlePrimaryTap">{{actionText}}</view>
|
||||
</view>
|
||||
|
||||
<view wx:else class="history-groups">
|
||||
<view class="history-group" wx:for="{{groups}}" wx:key="key">
|
||||
<text class="history-group__label">{{item.label}}</text>
|
||||
<view
|
||||
class="history-item"
|
||||
wx:for="{{item.items}}"
|
||||
wx:for-item="historyItem"
|
||||
wx:key="key"
|
||||
data-route="{{historyItem.route}}"
|
||||
bindtap="handleHistoryTap"
|
||||
>
|
||||
<text class="history-item__tag">{{historyItem.tag}}</text>
|
||||
<text class="history-item__title">{{historyItem.title}}</text>
|
||||
<text class="history-item__description">{{historyItem.summary}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
Reference in New Issue
Block a user