index.wxml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <import src="/template/login/index.wxml" />
  2. <view class="asset">
  3. <view class='item'>
  4. <view>可用余额(元)</view>
  5. <view>{{balance}}</view>
  6. </view>
  7. <view class='item'>
  8. <view>冻结金额(元)</view>
  9. <view>{{freeze}}</view>
  10. </view>
  11. <view class='item right'>
  12. <view>累计消费(元)</view>
  13. <view>{{totleConsumed}}</view>
  14. </view>
  15. </view>
  16. <view class='btn-view'>
  17. <form bindsubmit="recharge" report-submit="true">
  18. <button class="btn" type="default" size="mini" form-type="submit" hover-class="btn-hover" plain="true">
  19. 充值
  20. </button>
  21. </form>
  22. <form bindsubmit="payDeposit" report-submit="true">
  23. <button class='btn' type="default" size="mini" form-type="submit" hover-class="btn-hover" plain="true">
  24. 押金
  25. </button>
  26. </form>
  27. <form bindsubmit="withdraw" report-submit="true">
  28. <button class='btn' type="default" size="mini" form-type="submit" hover-class="btn-hover" plain="true">
  29. 提现
  30. </button>
  31. </form>
  32. </view>
  33. <van-tabs active="{{ active }}" bind:change="tabClick">
  34. <van-tab wx:for="{{tabs}}" wx:key="*this" title="{{item}}" />
  35. </van-tabs>
  36. <van-cell-group wx:if="{{activeIndex == 0}}">
  37. <van-empty wx:if="{{!cashlogs}}" description="暂无资金明细" />
  38. <van-cell wx:for="{{cashlogs}}" wx:key="index" title="{{ item.typeStr }}" label="{{ item.dateAdd }}" value="{{ item.amount }}" />
  39. </van-cell-group>
  40. <van-cell-group wx:if="{{activeIndex == 1}}">
  41. <van-empty wx:if="{{!withDrawlogs}}" description="暂无提现记录" />
  42. <van-cell wx:for="{{withDrawlogs}}" wx:key="index" title="{{ item.statusStr }}" label="{{ item.dateAdd }}" value="{{ item.money }}" />
  43. </van-cell-group>
  44. <van-cell-group wx:if="{{activeIndex == 2}}">
  45. <van-empty wx:if="{{!depositlogs}}" description="暂无押金记录" />
  46. <van-cell wx:for="{{depositlogs}}" wx:key="index" title="{{ item.statusStr }}" label="{{ item.dateAdd }}" value="{{ item.amount }}" />
  47. </van-cell-group>