index.wxml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <cu-custom bgColor="bg-lw-header" isCustom="{{true}}">
  2. <view slot="content">预约</view>
  3. </cu-custom>
  4. <view class="solids-bottom padding-xs flex align-center">
  5. <view class="flex-sub text-center">
  6. <view class="solid-bottom text-lg padding-lr">
  7. <text class="text-black text-bold">至少要提前一小时预约</text>
  8. </view>
  9. <view class="solid-bottom text-lg padding-lr">
  10. <text class="text-black text-bold">只能预约早上9点到晚上21点</text>
  11. </view>
  12. <view class="solid-bottom text-lg padding-lr">
  13. <text class="text-black text-bold">班次/出发时间和车票图片至少要填一样</text>
  14. </view>
  15. </view>
  16. </view>
  17. <form>
  18. <view class="cu-form-group">
  19. <view class="title">班次</view>
  20. <input placeholder="请输入班次" value="" bindinput="vmodel" data-value="shift"></input>
  21. </view>
  22. <view class="cu-form-group">
  23. <view class="title">出发日期</view>
  24. <picker mode="date" :value="date" start="{{startDate}}" bind:change="DateChange">
  25. <view class="picker">
  26. {{date}}
  27. </view>
  28. </picker>
  29. </view>
  30. <view class="cu-form-group">
  31. <view class="title">出发时间</view>
  32. <picker mode="time" :value="time" start="09:00" end="21:00" bind:change="TimeChange">
  33. <view class="picker">
  34. {{time}}
  35. </view>
  36. </picker>
  37. </view>
  38. <view class="cu-bar bg-white solids-top">
  39. <view class="action text-black">
  40. 车票图片
  41. </view>
  42. </view>
  43. <view class="cu-form-group">
  44. <view class="grid col-4 grid-square flex-sub">
  45. <view class="bg-img" bindtap="ViewImage" wx:if="{{image}}">
  46. <image src="{{image}}" mode="aspectFill"></image>
  47. <view class="cu-tag bg-red" catchtap="DelImg">
  48. <text class='cuIcon-close'></text>
  49. </view>
  50. </view>
  51. <view class="solids" bindtap="ChooseImage" wx:else>
  52. <text class='cuIcon-cameraadd'></text>
  53. </view>
  54. </view>
  55. </view>
  56. <view class="padding flex flex-direction">
  57. <button class="cu-btn lw-red margin-tb-sm lg" style="width:600rpx;" bindtap="submit">提交</button>
  58. </view>
  59. <view class="cu-bar tabbar bg-white foot">
  60. <view class="action">
  61. <view class="cuIcon-cu-image">
  62. <image src="/common/images/tabbar/index_cur.png"></image>
  63. </view>
  64. <view class="text-gray">预约</view>
  65. </view>
  66. <view class="action" bind:tap="toList">
  67. <view class="cuIcon-cu-image">
  68. <image src="/common/images/tabbar/my.png"></image>
  69. </view>
  70. <view class="text-gray">预约记录</view>
  71. </view>
  72. </view>
  73. </form>