ticketList.wxml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <wxs src="../../../utils/format.wxs" module="format" />
  2. <view class="whole-page">
  3. <view class="top-block">
  4. <view class="select-item" data-type="1" bindtap="showPicker">
  5. <view class="select-text">{{listQuery.statusVal}}</view>
  6. <image src="https://mall.zhaijieshi.cc/file/wx-jms/icon-arrow-down.png" mode="aspectFit" ></image>
  7. </view>
  8. <view class="select-item" data-type="2" bindtap="showPicker">
  9. <view class="select-text">{{listQuery.levelVal}}</view>
  10. <image src="https://mall.zhaijieshi.cc/file/wx-jms/icon-arrow-down.png" mode="aspectFit" ></image>
  11. </view>
  12. </view>
  13. <view class="ticket-list">
  14. <view class="ticket-item" wx:for="{{ticketList}}" wx:key="index" bindtap="goDetail" data-id="{{item.id}}">
  15. <view class="ticket-top">
  16. <image src="https://mall.zhaijieshi.cc/file/wx-jms/icon-ticket.png" mode="aspectFit" ></image>
  17. <view>{{item.ticketTitle}}</view>
  18. </view>
  19. <view class="ticket-line">
  20. 工单编号:{{item.ticketSn}}
  21. </view>
  22. <view class="ticket-line">
  23. 工单类型:{{item.ticketType == 0 ? '咨询' : '投诉'}}
  24. </view>
  25. <view class="ticket-line">
  26. 工单状态:<van-tag type="{{typeTag[item.status]}}">{{ statusDesc[item.status] }}->{{substatusDesc[item.substatus] }}</van-tag>
  27. </view>
  28. <view class="ticket-line">
  29. 产生时间:{{item.createTime}}
  30. </view>
  31. <view class="ticket-line">
  32. 工单等级:{{levelMap[item.ticketLevel]}}
  33. </view>
  34. <view class="ticket-detail" >查看详情</view>
  35. </view>
  36. </view>
  37. <view class="no-data" wx:if="{{ticketList.length==0}}">没有相关数据~</view>
  38. </view>
  39. <van-popup show="{{selectVisible}}" position="bottom">
  40. <van-picker
  41. show-toolbar
  42. title=" "
  43. columns="{{ columns }}"
  44. bind:cancel="onPickerCancel"
  45. bind:confirm="onPickerConfirm"
  46. />
  47. </van-popup>