index.wxml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <view style='position:relative;'>
  2. <form bindsubmit="formSubmit">
  3. <view style='background-color:#fff;height:100%;'>
  4. <view style='width:690rpx;margin:0 auto;margin-bottom:60rpx;'>
  5. <view class='reservation'>
  6. <view class='reservation-title'>预约窗口:</view>
  7. <view class='reservation-text'>
  8. <block wx:if="{{flag}}">
  9. <input name="deptName" disabled value='{{deptName}}' />
  10. <input name="deptUnid" hidden value='{{deptUnid}}' />
  11. </block>
  12. <picker wx:else range="{{dep_list}}" range-key="name" value="{{dep_index}}" bindchange="pickerChange" data-_index='dep_index'>
  13. <view class='flexRow aCenter p10-0'>
  14. <view>{{dep_list[dep_index|0].name}}</view>
  15. <input name="deptUnid" hidden value='{{deptUnid}}' />
  16. <input name="deptName" hidden value='{{dep_list[dep_index].name}}' />
  17. <image class='picker_image' src='/images/bottom.png'></image>
  18. </view>
  19. </picker>
  20. </view>
  21. </view>
  22. <view class='reservation'>
  23. <view class='reservation-title'>预约事项:</view>
  24. <view class='reservation-text'>
  25. <block wx:if="{{flag}}">
  26. <input name="serviceName" disabled value='{{serviceName}}' />
  27. <input name="serviceUnid" hidden value='{{serviceUnid}}' />
  28. </block>
  29. <picker wx:else range="{{dep_list[dep_index|0].list}}" range-key="name" value="{{matter_index}}" bindchange="pickerChange" data-_index='matter_index'>
  30. <view class='flexRow aCenter p10-0'>
  31. <view>{{ dep_list[dep_index|0].list[matter_index|0].name}}</view>
  32. <input name="serviceUnid" hidden value='{{serviceUnid}}' />
  33. <input name="serviceName" hidden value='{{dep_list[dep_index].list[matter_index].name}}' />
  34. <image class='picker_image' src='/images/bottom.png'></image>
  35. </view>
  36. </picker>
  37. </view>
  38. </view>
  39. <view class='reservation'>
  40. <view class='reservation-title'>预约日期:</view>
  41. <view class='reservation-text reservation-time'>
  42. <picker range="{{date_list_range}}" value="{{reservation_date_index}}" bindchange="pickerChange" data-_index='reservation_date_index'>
  43. <view style='width:400rpx;'>
  44. <text class='picker'>{{date_list_range[reservation_date_index|0]}}</text>
  45. <input name="reservationDate" hidden value='{{reservationDate}}' />
  46. <image class='picker_image' src='../../../images/bottom.png'></image>
  47. </view>
  48. </picker>
  49. </view>
  50. </view>
  51. <view class='reservation-date'>
  52. <view class='reserva {{serviceUnid&&amStatus?"enable":"disable"}} {{serviceUnid&&amStatus&&reservationInterval=="AM"&&"selected"}}' data-val="AM" bind:tap="reserva_change">
  53. <text wx:if="{{serviceUnid&&amTime}}">上午 {{amTime}}</text>
  54. <view class='selected'>已预约</view>
  55. <view class='enable'>可预约</view>
  56. <view class='disable'>不可预约</view>
  57. </view>
  58. <view class='reserva {{serviceUnid&&pmStatus?"enable":"disable"}} {{serviceUnid&&pmStatus&&reservationInterval=="PM"&&"selected"}}' data-val="PM" bind:tap="reserva_change">
  59. <text wx:if="{{serviceUnid&&pmTime}}">下午 {{pmTime}}</text>
  60. <view class='selected'>已预约</view>
  61. <view class='enable'>可预约</view>
  62. <view class='disable'>不可预约</view>
  63. </view>
  64. <input hidden name="reservationInterval" value="{{reservationInterval}}" />
  65. </view>
  66. <view class='reservation'>
  67. <view class='reservation-title'>预约姓名:</view>
  68. <view class='reservation-text'>
  69. <input name="applicantName" placeholder='请输入预约姓名' value="{{applicantName}}" bindinput="inputChange" data-field="applicantName"></input>
  70. </view>
  71. </view>
  72. <view class='reservation'>
  73. <view class='reservation-title'>预约电话:</view>
  74. <view class='reservation-text'>
  75. <input type="number" name="applicantPhone" value="{{applicantPhone}}" bindinput="inputChange" data-field="applicantPhone" maxlength='11' placeholder='请输入预约电话'></input>
  76. </view>
  77. </view>
  78. <view class='reservation'>
  79. <view class='reservation-title'>证件类型:</view>
  80. <view class='reservation-text reservation-time'>
  81. <picker range="{{code_list}}" range-key="name" value="{{code_index}}" bindchange="pickerChange" data-_index='code_index'>
  82. <view class='picker'>
  83. <text>{{code_list[code_index|0].name}}</text>
  84. <input name="applicantIdType" hidden value='{{applicantIdType}}' />
  85. <image class='picker_image' src='/images/bottom.png'></image>
  86. </view>
  87. </picker>
  88. </view>
  89. </view>
  90. <view class='reservation'>
  91. <view class='reservation-title'>证件号码:</view>
  92. <view class='reservation-text'>
  93. <input name='applicantIdCard' value='{{applicantIdCard}}' placeholder='请输入证件号码' bindinput="inputChange" data-field="applicantIdCard"></input>
  94. </view>
  95. </view>
  96. <view class='reservation'>
  97. <view class='reservation-title'>验证码:</view>
  98. <view class='reservation-text phoneCode'>
  99. <input name="code" maxlength='4' bindinput="inputChange" data-field="code" type='number' placeholder='请输入短信验证码' style='width:220rpx;'></input>
  100. <view class="{{send_time&&'send'}}" catchtap='send_verify_code'>
  101. {{send_time||"获取验证码"}}
  102. </view>
  103. </view>
  104. </view>
  105. </view>
  106. </view>
  107. <view class='submit'>
  108. <button class="{{_verify?'enable':'disable' }}" catch:tap="verify_code">提交</button>
  109. <button class="back" catchtap='navigateBack'>返回上级</button>
  110. </view>
  111. <!-- 遮罩层 -->
  112. <view class='mask' hidden='{{!mask}}'>
  113. <view class='mask_content'>
  114. <text>预约须知</text>
  115. <view class='mask-content'>1、预约成功,如果临时有事无法办理,请取消预约。</view>
  116. <view class='mask-content'>2、预约成功,过号未办理,超过2次,将会取消预约权限。</view>
  117. <view class='mask-content'>3、预约取消请提前6小时。</view>
  118. <checkbox-group bindchange="checkboxChange">
  119. <label>
  120. <checkbox value="true" checked="{{checked}}" />
  121. <text>我已阅读预约须知</text>
  122. </label>
  123. </checkbox-group>
  124. <view class='button'>
  125. <button catchtap='cancel'>取消</button>
  126. <button form-type="submit">确认</button>
  127. </view>
  128. </view>
  129. </view>
  130. </form>
  131. <view wx:if="{{serviceUnid}}" class='keep' catch:tap='keep'>
  132. <image src='{{isCollect?"/images/keep_check.png":"/images/keep.png"}}'></image>
  133. <text>收藏</text>
  134. </view>
  135. </view>