Skip to content

Commit

Permalink
chore: log key
Browse files Browse the repository at this point in the history
  • Loading branch information
jevantang committed Oct 22, 2023
1 parent a3d08e6 commit bb18a4f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pages/account/user-extcredits.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
<view class="page" data-weui-theme="{{ theme }}">
<!-- 列表 -->
<view class="weui-cells weui-cells_after-title">
<view class="weui-cell weui-cell_access" hover-class="weui-cell_active" wx:for="{{ logs }}" wx:for-item="log" wx:key="createdTimeAgo">
<view class="weui-cell weui-cell_access" hover-class="weui-cell_active" wx:for="{{ logs }}" wx:for-item="log" wx:key="timeAgo">
<view class="weui-cell__bd">
<view>{{ log.type == 'increment' ? '+' : '-' }}{{ log.amount }}</view>
<view class="weui-cell__desc desc_info">{{ fresnsLang.userExtcreditsLogOpeningAmount + ': ' +log.openingAmount }} | {{ fresnsLang.userExtcreditsLogClosingAmount + ': ' +log.closingAmount }}</view>
</view>
<view class="desc_info">{{ log.createdTimeAgo }}</view>
<view class="desc_info">{{ log.timeAgo }}</view>
</view>
</view>

Expand Down
6 changes: 4 additions & 2 deletions pages/account/wallet.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<view class="page" data-weui-theme="{{ theme }}">
<!-- 钱包列表 -->
<view class="weui-cells weui-cells_after-title">
<view class="weui-cell weui-cell_access" hover-class="weui-cell_active" wx:for="{{ walletLogs }}" wx:for-item="log" wx:key="createdTimeAgo">
<view class="weui-cell weui-cell_access" hover-class="weui-cell_active" wx:for="{{ walletLogs }}" wx:for-item="log" wx:key="timeAgo">
<view class="weui-cell__bd">
<view>
<text wx:if="{{ log.type == 1 }}">{{ fresnsLang.walletLogType1 }}</text>
Expand All @@ -15,12 +15,14 @@
<text wx:if="{{ log.type == 4 }}">{{ fresnsLang.walletLogType4 }}</text>
<text wx:if="{{ log.type == 5 }}">{{ fresnsLang.walletLogType5 }}</text>
<text wx:if="{{ log.type == 6 }}">{{ fresnsLang.walletLogType6 }}</text>
<text wx:if="{{ log.type == 7 }}">{{ fresnsLang.walletLogType7 }}</text>
<text wx:if="{{ log.type == 8 }}">{{ fresnsLang.walletLogType8 }}</text>
{{ log.amountTotal }}
</view>
<view class="weui-cell__desc desc_info">{{ fresnsLang.walletLogAmount + ': ' +log.transactionAmount }} | {{ fresnsLang.walletLogSystemFee + ': ' +log.systemFee }}</view>
<view class="weui-cell__desc desc_info">{{ fresnsLang.walletLogOpeningBalance + ': ' +log.openingBalance }} | {{ fresnsLang.walletLogClosingBalance + ': ' +log.closingBalance }}</view>
</view>
<view class="desc_info">{{ log.createdTimeAgo }}</view>
<view class="desc_info">{{ log.timeAgo }}</view>
</view>
</view>

Expand Down

0 comments on commit bb18a4f

Please sign in to comment.