You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
3.9 KiB

1 year ago
  1. <!--pagesA/passwordList/passwordList.wxml-->
  2. <view class="uservoucher">
  3. <van-tabs active="{{ active }}" bind:change="onChange" sticky>
  4. <van-tab title="{{item.title}}" wx:for="{{voucherlist}}" wx:key="index">
  5. <view wx:if="{{active == 0}}">
  6. <view class="voucher-list" wx:for="{{cardlist}}" wx:key="index" wx:if="{{cardlist.length > 0 ? true : false}}">
  7. <view class="voucher-item">
  8. <view class="voucheritem">凭证名称:<span class="voucheritem-message">{{item.content.pzname}}</span></view>
  9. <view class="voucheritem">凭证生效日期:<span class="voucheritem-message">{{item.content.passwordStartTime}}</span></view>
  10. <view class="voucheritem">凭证失效日期:<span class="voucheritem-message">{{item.content.passwordEndTime}}</span></view>
  11. <view class="voucheritem">凭证状态:<span class="voucheritem-message">{{item.status === 0?'下发中':item.status === 1?'下发成功':item.status === 700?'等待发送':item.status === 702?'发送失败':item.status === 703?'已作废':'异常'}}</span></view>
  12. <view class="btn" bindtap="deletevoucher" data-index="{{index}}">删除</view>
  13. </view>
  14. </view>
  15. <van-empty description="暂无更多数据" wx:if="{{cardlist.length == 0 ? true : false}}" />
  16. </view>
  17. <view wx:if="{{active == 1}}">
  18. <view class="voucher-list" wx:for="{{passwordlist}}" wx:key="index" wx:if="{{passwordlist.length > 0 ? true : false}}">
  19. <view class="voucher-item">
  20. <view class="voucheritem">凭证名称:<span class="voucheritem-message">{{item.content.pzname}}</span></view>
  21. <view class="voucheritem">凭证生效日期:<span class="voucheritem-message">{{item.content.passwordStartTime}}</span></view>
  22. <view class="voucheritem">凭证失效日期:<span class="voucheritem-message">{{item.content.passwordEndTime}}</span></view>
  23. <view class="voucheritem">凭证状态:<span class="voucheritem-message">{{item.status === 0?'下发中':item.status === 1?'下发成功':item.status === 700?'等待发送':item.status === 702?'发送失败':item.status === 703?'已作废':'异常'}}</span></view>
  24. <view class="btn" bindtap="deletevoucher" data-index="{{index}}">删除</view>
  25. </view>
  26. </view>
  27. <van-empty description="暂无更多数据" wx:if="{{passwordlist.length == 0 ? true : false}}" />
  28. </view>
  29. <view wx:if="{{active == 2}}">
  30. <view class="voucher-list" wx:for="{{fingerlist}}" wx:key="index" wx:if="{{fingerlist.length > 0 ? true : false}}">
  31. <view class="voucher-item">
  32. <view class="voucheritem">凭证名称:<span class="voucheritem-message">{{item.content.pzname}}</span></view>
  33. <view class="voucheritem">凭证生效日期:<span class="voucheritem-message">{{item.content.passwordStartTime}}</span></view>
  34. <view class="voucheritem">凭证失效日期:<span class="voucheritem-message">{{item.content.passwordEndTime}}</span></view>
  35. <view class="voucheritem">凭证状态:<span class="voucheritem-message">{{item.status === 0?'下发中':item.status === 1?'下发成功':item.status === 700?'等待发送':item.status === 702?'发送失败':item.status === 703?'已作废':'异常'}}</span></view>
  36. <view class="btn" bindtap="deletevoucher" data-index="{{index}}">删除</view>
  37. </view>
  38. </view>
  39. <van-empty description="暂无更多数据" wx:if="{{fingerlist.length == 0 ? true : false}}" />
  40. </view>
  41. </van-tab>
  42. </van-tabs>
  43. </view>