index.wxml 1.7 KB

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