pdjl.wxml 2.2 KB

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