history.wxml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <!-- pages/payment/history/history.wxml -->
  2. <view class="container payment-history">
  3. <view class="top-opt">
  4. <picker class="left" bindchange="bindPickerChange" value="{{index}}" range="{{years}}">
  5. <view class="picker">
  6. <text class="label">{{years[index]}}</text>
  7. <image class="icon-up" src="/static/img/icon_up.png"></image>
  8. </view>
  9. </picker>
  10. </view>
  11. <mp-tabs tabs="{{months}}" activeTab="{{activeTab}}" bindtabclick="onTabClick" bindchange="onChange" tab-underline-color="#0091FF" tab-active-text-color="#0091FF" swiperClass="tabs-swiper">
  12. <block wx:for="{{months}}" wx:key="title">
  13. <view class="tab-content" data-set="{{item}}" slot="tab-content-{{activeTab}}">
  14. <scroll-view class="wrap" scroll-y="true">
  15. <page-tips icon="img_nodata" content="暂无相关信息" wx:if="{{history[activeTab] && !history[activeTab].length}}"></page-tips>
  16. <view class="card" wx:for="{{history[activeTab]}}" wx:key="index">
  17. <image class="icon-bg" src="/static/img/bg_circleline.png" style="margin-bottom:20rpx"></image>
  18. <image class="icon-method" src="/static/img/img_{{item.debt > 0 ? 'un' : ''}}paidoff.png"></image>
  19. <view class="top">
  20. <view class="item">
  21. <text class="label">缴费户名:</text>
  22. <text>{{item.accountname}}</text>
  23. </view>
  24. <view class="item">
  25. <text class="label">缴费户号:</text>
  26. <text>{{item.accountnumber}}</text>
  27. </view>
  28. <view class="item">
  29. <text class="label">水表档案号:</text>
  30. <text>{{item.metercode}}</text>
  31. </view>
  32. <view class="item">
  33. <text class="label">客户地址:</text>
  34. <text>{{item.address}}</text>
  35. </view>
  36. <view class="item">
  37. <text class="label">用水时间:</text>
  38. <text>{{item.recorddate}}-{{item.lastrecorddate}}</text>
  39. </view>
  40. <view class="item">
  41. <text class="label">本期止度:</text>
  42. <text>{{item.reading}}</text>
  43. </view>
  44. <view class="item">
  45. <text class="label">计费水量:</text>
  46. <text>{{item.payamount}}吨</text>
  47. </view>
  48. <view class="item">
  49. <text class="label">应收金额:</text>
  50. <text>{{item.receivefee}}元</text>
  51. </view>
  52. <view class="item">
  53. <text class="label">欠费金额:</text>
  54. <text>{{item.debt}}元</text>
  55. </view>
  56. </view>
  57. <view class="bottom" wx:if="{{item.feelist.length}}">
  58. <view class="item" wx:for="{{item.feelist}}" wx:key="index" wx:for-index="key" wx:for-item="value">
  59. <text>{{key}}:</text>
  60. <text>{{value}}元</text>
  61. </view>
  62. </view>
  63. <image class="icon-bg" src="/static/img/bg_circleline.png" style="margin-top:20rpx"></image>
  64. </view>
  65. </scroll-view>
  66. </view>
  67. </block>
  68. </mp-tabs>
  69. </view>