myeq.wxml 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <view class="">
  2. <view class="load" style='display:{{loaddisplay}}'>
  3. <image class="loadimg" style='display:{{loaddisplay}}' src='https://yuesuo.yueguanjia.com/MiniProgram/images/timg.gif'></image>
  4. </view>
  5. <navbar page-name="我的设备" back-home="true"></navbar>
  6. <view class="page-content2" style='height:calc(100vh - {{navH}}px)'>
  7. <view class="none" wx:if="{{arr.length == 0}}">
  8. <image src="https://yuesuo.yueguanjia.com/MiniProgram/myeqnone.png" class="noneimg" />
  9. <view class="nonedesc">亲您还没有设备哦</view>
  10. </view>
  11. <view class="margintoop"></view>
  12. <block wx:for="{{arr}}" wx:key="index">
  13. <view class="eqlist">
  14. <view class="v4finish" wx:if="{{arr[index].eh_status ==4}}">
  15. <view class="finishdate">
  16. 订单日期: {{arr[index].ed_startdate}} - {{arr[index].ed_enddate}}
  17. </view>
  18. <view class="finishtitle">
  19. 已完成
  20. </view>
  21. </view>
  22. <view class="v4" wx:else>
  23. <view class="startdate">
  24. 计费日期: {{arr[index].ed_startdate}}
  25. </view>
  26. <view class="enddate">
  27. 归还日期: {{arr[index].ed_enddate}}
  28. </view>
  29. </view>
  30. <view class="infoBox">
  31. <view class="v1">
  32. <view class="eqimg">
  33. <image src="{{arr[index].equipmenturl}}" class="qulistimg"></image>
  34. </view>
  35. </view>
  36. <view class="v2">
  37. <view class="eqname">
  38. <text class="txteqname">{{arr[index].et_type}}</text>
  39. </view>
  40. <view class="eqid">
  41. <text class="txteqid">设备编号: {{arr[index].ed_emcode}}</text>
  42. </view>
  43. <view class="eqdays">
  44. <text class="texteqdays">租赁押金:</text>
  45. <text class="money2">¥</text>
  46. <text class="texteqdays">{{arr[index].eh_mortagage}}</text>
  47. </view>
  48. </view>
  49. <view class="v3">
  50. <view class="edprice">
  51. <span class="money">¥</span>
  52. <span class="txtprice">{{arr[index].ei_rent}}/天</span>
  53. </view>
  54. <view class="eqdays2">
  55. <span class="txteqdays2">租赁天数:{{arr[index].days}}天</span>
  56. </view>
  57. </view>
  58. </view>
  59. <view class="line"></view>
  60. <view class="finishtotalprice" wx:if="{{arr[index].eh_status ==4}}">
  61. <span class="finishtxttotalrental">累计租金:</span>
  62. <span class="finishtotalrental">
  63. <span class="money3">¥</span>{{arr[index].totalrent}}</span>
  64. </view>
  65. <view class="totalprice" wx:else>
  66. <view class="txttotalrental">累计租金:</view>
  67. <view class="totalrental">
  68. <span class="money3">¥</span>{{arr[index].totalrent}}</view>
  69. <view class="txttotalmortagage">
  70. <view class="returneq">
  71. <view class="eqreturn" style='background-color:{{arr[index].buttoncolor}}' bindtap="{{arr[index].buttonhref}}"
  72. data-eqid="{{arr[index].ed_emcode}}" data-totalrent="{{arr[index].totalrent}}" data-days="{{arr[index].days}}"
  73. data-mortagage=" {{arr[index].eh_mortagage}}" data-ehcode=" {{arr[index].ehcode}}">{{arr[index].buttonname}}
  74. </view>
  75. </view>
  76. </view>
  77. </view>
  78. </view>
  79. </block>
  80. <div class="endbottom"></div>
  81. </view>
  82. </view>