yyjl.wxml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <!--pages/recordPages/yyjl/yyjl.wxml-->
  2. <scroll-view class="containers" scroll-y="{{true}}">
  3. <view class="tips {{infos.ztDm == 0?'tipsWarning':infos.ztDm == 1?'':infos.ztDm == 4?'tipsError':'tipsSuccess'}}">{{infos.ztDm == 0?'待办理':infos.ztDm == 1?'取消预约':infos.ztDm == 4?'爽约':infos.phzt == 0?'等待办理':infos.fwztDm == 0?'正在办理':'已完成'}}</view>
  4. <view class="numbers">{{infos.ticketNum? infos.ticketNum:infos.yyhm}}</view>
  5. <view class="tip">{{infos.ztDm == 2 || infos.ztDm == 3?'请将此电子票出示给窗口工作人员':'预约码'}}</view>
  6. <view class="infosBox">
  7. <view class="item" wx:if="{{infos.ckhm}}">
  8. <view class="label">办理窗口</view>
  9. <view class="value">{{infos.ckhm != null? infos.ckhm:''}}</view>
  10. </view>
  11. <view class="item" wx:if="{{infos.awaitNum}}">
  12. <view class="label">等待人数</view>
  13. <view class="value">{{infos.awaitNum}}</view>
  14. </view>
  15. <view class="item" wx:if="{{infos.awaitTime}}">
  16. <view class="label">预计等待</view>
  17. <view class="value">{{tools.waitTime(infos)}}</view>
  18. </view>
  19. <view class="item" wx:if="{{!infos.awaitNum}}">
  20. <view class="label">预约日期</view>
  21. <view class="value">{{infos.yybsrq}}</view>
  22. </view>
  23. <view class="item" wx:if="{{!infos.awaitNum}}">
  24. <view class="label">预约时间</view>
  25. <view class="value">{{infos.yysjd}}</view>
  26. </view>
  27. <view class="item">
  28. <view class="label">办税业务</view>
  29. <view class="value">{{infos.ywmc || infos.yyywlxmc}}</view>
  30. </view>
  31. <view class="item">
  32. <view class="label">办税大厅</view>
  33. <view class="value">{{infos.bsfwtmc}}</view>
  34. </view>
  35. <view class="item">
  36. <view class="label">大厅地址</view>
  37. <view class="value">{{infos.bsfwtdz}}</view>
  38. </view>
  39. </view>
  40. <view wx:if="{{infos.ztDm == 2 || infos.ztDm == 3}}" class="button button3" hover-class="active">{{nowTime}}</view>
  41. <view wx:if="{{infos.ztDm == 2 || infos.ztDm == 3}}" class="button" hover-class="active" bind:tap="brush">刷新</view>
  42. <view wx:if="{{infos.ztDm == 0}}" class="button button2 {{khh?'':'nobutton'}}" hover-class="active" bind:tap="chageNum">我已到达,立即办理</view>
  43. <view wx:if="{{infos.ztDm == 0}}" class="button button1" hover-class="active" bind:tap="cansole">取消预约</view>
  44. </scroll-view>
  45. <wxs module="tools">
  46. var waitTime = function (e) {
  47. if (e) {
  48. var wait = e.awaitNum * e.awaitTime
  49. return wait + '分钟'
  50. } else {
  51. return ""
  52. }
  53. }
  54. var tools = {
  55. waitTime: waitTime,
  56. }
  57. module.exports = tools;
  58. </wxs>