Files
xuanzhi-wx/packages/tcm/pages/ai-history/index.wxml

28 lines
1015 B
Plaintext

<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>