walletDetails.wxml 1.1 KB

12345678910111213141516171819202122232425262728
  1. <wxs src="../../commonWxs/format.wxs" module="format" />
  2. <view class='walletDetails'>
  3. <view class="walletDetails-center">
  4. <view class='walletDetails-info' wx:for="{{ walletDatails }}" wx:key="{{ index }}">
  5. <view class="walletDetails-left">
  6. <view class='avatar-box'>
  7. <image src="../../../static/image/walletdetails.png" />
  8. </view>
  9. <view class="avatar-info">
  10. <text class="avatar-doc">{{ item.description }}</text>
  11. <text class="avatar-time">{{format.formatDate(item.gmtCreated)}}</text>
  12. </view>
  13. </view>
  14. <view class="walletDetails-right">
  15. <view class="avatar-value-neg" wx:if="{{ item.type === 'INCOME' }}">
  16. <text class="avatar-symbol getMoney">+</text>
  17. <text class="getMoney">{{ item.price / 100 }}</text>
  18. </view>
  19. <view class="avatar-value-pos" wx:else>
  20. <text class="avatar-symbol">-</text>
  21. <text>{{ item.price / 100 }}</text>
  22. </view>
  23. </view>
  24. </view>
  25. </view>
  26. <myPlacerholder wx:if="{{walletDatails.length <= 0}}" />
  27. </view>