xcyysjd.wxml 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <!--pages/taxDisputes/taxDisputesPages/xcyysjd/xcyysjd.wxml-->
  2. <scroll-view class="containers" scroll-y enhanced show-scrollbar="{{false}}">
  3. <view class="baseInfo-box">
  4. <view class="baseInfo-content">
  5. <view class="baseInfos">
  6. <image class="baseBg" src="../../../../images/selectTime/baseBg.png" mode="widthFix" />
  7. <view class="base-item">
  8. <view class="base-item-label">预约大厅:</view>
  9. <view class="base-item-value">{{hall}}</view>
  10. </view>
  11. <view class="base-item">
  12. <view class="base-item-label">咨询电话:</view>
  13. <view class="base-item-value">
  14. <view class="phone-list">
  15. <view class="phone" hover-class="active" wx:for="{{phones}}" wx:key="index" data-phone="{{item}}" bind:tap="call">{{item}}</view>
  16. </view>
  17. </view>
  18. </view>
  19. </view>
  20. </view>
  21. </view>
  22. <view class="times {{dateBoxStyle}}">
  23. <view class="showHiden" catch:tap="showHiden"></view>
  24. <view class="times-box">
  25. <view wx:if="{{dateBoxStyle == ''? index<4:index<10}}" class="time {{dateIndex == index?'timeActive':''}}" wx:for="{{dates}}" wx:key="index" data-index="{{index}}" data-item="{{item}}" catch:tap="selectDate">
  26. <view class="day">{{item.week}}</view>
  27. <view class="date">{{item.date}}</view>
  28. </view>
  29. </view>
  30. </view>
  31. <view class="selectTimes">
  32. <view class="section-tip">
  33. <view class="tip-border"></view>
  34. <view class="tip-title">选择预约时段</view>
  35. </view>
  36. <view class="selectTime {{index == timeIndex?'selectTimeActive':item.yh == 0?'selectTimeNone':''}}" wx:for="{{times}}" wx:key="index" data-index="{{index}}" data-item="{{item}}" catch:tap="selectTime">
  37. <view class="number">余号:{{item.yh}}</view>
  38. <view class="sjd">{{item.sjd}}</view>
  39. </view>
  40. </view>
  41. <view class="describe">
  42. <view class="section-tip">
  43. <view class="tip-border"></view>
  44. <view class="tip-title tip-title-important">诉求描述</view>
  45. </view>
  46. <view class="tip-textarea">
  47. <textarea value="{{sqText}}" bindinput="sq" placeholder="请输入您的诉求,描述的越详细,处理的越快捷" />
  48. </view>
  49. </view>
  50. </scroll-view>
  51. <view class="bottom">
  52. <view class="selectedInfo">{{tools.bigDate(dates[dateIndex].date)}}({{dates[dateIndex].week}}) | {{times[timeIndex].sjd}}</view>
  53. <view class="button {{sqText.length>0?'':'button-none'}}" hover-class="active" bind:tap="next">确认预约</view>
  54. </view>
  55. <wxs module="tools">
  56. var yy = function (e) {
  57. if (e) {
  58. return Number(e.capacity) - Number(e.appointNum)
  59. } else {
  60. return ""
  61. }
  62. }
  63. var bigDate = function (e) {
  64. if (e) {
  65. return e.split("-")[0] + "月" + e.split("-")[1] + "日"
  66. } else {
  67. return ""
  68. }
  69. }
  70. var tools = {
  71. yy: yy,
  72. bigDate: bigDate
  73. }
  74. module.exports = tools;
  75. </wxs>