yingsa/miniprogram/pages/points/records/index.wxml
2026-01-20 08:50:50 +08:00

24 lines
768 B
Plaintext

<!--积分记录页面-->
<view class="container">
<view class="records-list" wx:if="{{records.length > 0}}">
<view class="record-item" wx:for="{{records}}" wx:key="id">
<view class="record-info">
<text class="action-name">{{item.actionName}}</text>
<text class="record-time">{{item.createdAt}}</text>
</view>
<view class="record-points {{item.points > 0 ? 'positive' : 'negative'}}">
{{item.points > 0 ? '+' : ''}}{{item.points}}
</view>
</view>
</view>
<view class="empty-state" wx:else>
<image src="/images/empty-records.png" mode="aspectFit"></image>
<text>暂无积分记录</text>
</view>
<view wx:if="{{loading}}" class="loading-state">
<text>加载中...</text>
</view>
</view>