- Updated user information retrieval to support store-specific points and ladder user data. - Refactored store initialization logic to prioritize last selected store. - Improved API endpoints for fetching matches and user data, ensuring compatibility with store context. - Adjusted UI components to display store-related information consistently across various pages. - Enhanced error handling and data fetching logic for better user experience.
25 lines
856 B
Plaintext
25 lines
856 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-store" wx:if="{{item.storeName}}">{{item.storeName}}</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.svg" mode="aspectFit"></image>
|
|
<text>暂无积分记录</text>
|
|
</view>
|
|
|
|
<view wx:if="{{loading}}" class="loading-state">
|
|
<text>加载中...</text>
|
|
</view>
|
|
</view>
|