index.wxml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <view class="mine">
  2. <!-- total -->
  3. <view class="head">
  4. <image src="{{icon}}"></image>
  5. <text class="balance">{{totals}}</text>
  6. </view>
  7. <!-- digging -->
  8. <view class="main">
  9. <view class="left">
  10. <button class="start" bindtap="onClickStart">{{btnTxt}}</button>
  11. </view>
  12. <view class="right">
  13. <view class="current">
  14. <text class="progress">{{progress}}</text>
  15. </view>
  16. </view>
  17. </view>
  18. <!-- history -->
  19. <view class="his">
  20. <view class="his-img">
  21. <image src="/images/historyTitle.png"></image>
  22. </view>
  23. <view class="no-record" wx:if="{{history.length <= 0}}">
  24. <text>没有记录</text>
  25. </view>
  26. <view wx:else>
  27. <scroll-view class="records" scroll-y="true" scroll-with-animation="true">
  28. <view wx:for="{{history}}" wx:key="index" class="item {{ item.out != 0 ? 'color' : '' }}">
  29. <view class="icon">
  30. <image src="{{item.icon}}"></image>
  31. </view>
  32. <text class="symbol">{{item.symbol}}</text>
  33. <text class="direction">{{ item.out != 0 ? "获取" : "导出" }}</text>
  34. <text class="amount">{{item.out != 0 ? item.amount : -item.amount}}</text>
  35. <text class="time">{{ item.ts }}</text>
  36. </view>
  37. </scroll-view>
  38. </view>
  39. </view>
  40. </view>