myRecord.wxml 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <!--pages/myRecord/myRecord.wxml-->
  2. <view class="myrecord-content">
  3. <block>
  4. <view class="nav-header ittflex">
  5. <view class="nav-item nav-all ittflex {{navItemActive == '0' ? 'nav-item-active' : ''}}" bindtap="handleChangeNav" data-index="0">充值记录</view>
  6. <view class="nav-item nav-wait ittflex {{navItemActive == '1' ? 'nav-item-active' : ''}}" bindtap="handleChangeNav" data-index="1">核销记录</view>
  7. </view>
  8. </block>
  9. <!-- 充值记录 -->
  10. <block wx:if="{{navItemActive == '0'}}">
  11. <view class="charge-record record-main">
  12. <block wx:if="{{chargeRecordList.length == 0}}">
  13. <view class="nodate" >
  14. <van-empty description="暂无数据" />
  15. </view>
  16. </block>
  17. <block wx:if="{{chargeRecordList.length !== 0}}">
  18. <view class="record-item ittflex-jcs" wx:for="{{chargeRecordList}}" wx:key="index">
  19. <view class="left icon">
  20. <image class="image" src="{{item.goodsImg}}"></image>
  21. </view>
  22. <view class="center info">
  23. <view class="title info-item">
  24. <!-- 充值类型 充值类型 【1、购买套餐,2、实体卡 3、体验卡 4、活动赠送 -->
  25. <text>{{item.typeName}}</text>
  26. </view>
  27. <view class="carno info-item">
  28. <text>卡编号:</text>
  29. <text>{{item.orderCode}}</text>
  30. </view>
  31. <view class="time info-item">
  32. <text>激活时间:</text>
  33. <text>{{item.addTime}}</text>
  34. </view>
  35. </view>
  36. <view class="right count">+{{item.useNumber}}</view>
  37. </view>
  38. </block>
  39. </view>
  40. </block>
  41. <!-- 核销记录 -->
  42. <block wx:if="{{navItemActive == '1'}}">
  43. <view class="destory-record record-main">
  44. <block wx:if="{{destoryRecordList.length == 0}}">
  45. <view class="nodate" >
  46. <van-empty description="暂无数据" />
  47. </view>
  48. </block>
  49. <block wx:if="{{destoryRecordList.length !== 0}}">
  50. <view class="des-record-item ittflex-jcs" wx:for="{{destoryRecordList}}" wx:key="index">
  51. <view class="item-left img">
  52. <image class="img-item" src="../../imaes/baogao_sel@2x.png"></image>
  53. </view>
  54. <view class="item-center">
  55. <!-- 状态 0:已核销 1:待体检(输入核销码) 2:体检完成 (体检报告检出) -->
  56. <view class="item-status">
  57. <text wx:if="{{item.status == 0}}">已核销</text>
  58. <text wx:if="{{item.status == 1}}">待体检</text>
  59. <text wx:if="{{item.status == 2}}">体检完成</text>
  60. </view>
  61. <view class="real-name stitle">
  62. <text>体检人:</text>
  63. <text>{{item.realName}}</text>
  64. </view>
  65. <view class="order-code stitle">
  66. <text>核销码:</text>
  67. <text>{{item.orderCode}}</text>
  68. </view>
  69. <view class="add-time stitle">
  70. <text>核销时间:</text>
  71. <text>{{item.addTime}}</text>
  72. </view>
  73. </view>
  74. <view class="item-right">-1</view>
  75. </view>
  76. </block>
  77. </view>
  78. </block>
  79. </view>