booked.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <template>
  2. <view class="content">
  3. <view class="title">
  4. 服务日期
  5. </view>
  6. <its-calendar :sta_num="start_time" :end_num="end_time" :int_num="30" @getTime="getTime"></its-calendar>
  7. <view class="info">
  8. <view class="info-title">
  9. 预约人信息
  10. </view>
  11. <view class="info-info flex">
  12. <view class="info-left">
  13. 手机号
  14. </view>
  15. <view class="info-right">
  16. <input type="number" placeholder-class="pla" placeholder="请输入预约人手机号" v-model="phone">
  17. </view>
  18. </view>
  19. <view class="info-info flex">
  20. <view class="info-left">
  21. 预约人数
  22. </view>
  23. <view class="info-right">
  24. <input type="number" placeholder="请输入预约预约人数" placeholder-class="pla" v-model="num">
  25. </view>
  26. </view>
  27. </view>
  28. <view class="btn">
  29. 确认预约
  30. </view>
  31. </view>
  32. </template>
  33. <script>
  34. import its from '@/components/its-calendar/its-calendar.vue'
  35. export default {
  36. components: {
  37. its
  38. },
  39. data() {
  40. return {
  41. start_time: 0,
  42. end_time: 24,
  43. phone: '',
  44. num: ''
  45. };
  46. },
  47. onLoad() {},
  48. onShow() {},
  49. onReachBottom() {},
  50. onReady() {},
  51. methods: {
  52. getTime(e) {
  53. console.log(e);
  54. this.timed = true
  55. this.choose_time = e.time.split(' ')[0]
  56. this.choose_time_detail = e.time.split(' ')[1]
  57. },
  58. }
  59. };
  60. </script>
  61. <style lang="scss">
  62. page,
  63. .content {
  64. min-height: 100%;
  65. height: auto;
  66. background: #ffffff;
  67. }
  68. .title {
  69. padding: 55rpx 35rpx 44rpx;
  70. font-size: 32rpx;
  71. font-family: PingFang SC;
  72. font-weight: bold;
  73. color: #000000;
  74. }
  75. .info {
  76. padding: 0 34rpx;
  77. .info-title {
  78. padding-top: 28rpx;
  79. border-top: 1px solid #F8F8F8;
  80. font-size: 26rpx;
  81. font-family: PingFang SC;
  82. font-weight: bold;
  83. color: #000000;
  84. }
  85. .info-info {
  86. padding: 28rpx 0;
  87. border-bottom: 1px solid #F8F8F8;
  88. .info-left {
  89. font-size: 28rpx;
  90. font-family: PingFang SC;
  91. font-weight: 500;
  92. color: #333333;
  93. }
  94. .info-right {
  95. text-align: right;
  96. font-size: 28rpx;
  97. font-family: PingFang SC;
  98. font-weight: 500;
  99. color: #333333;
  100. }
  101. .pla {
  102. font-size: 28rpx;
  103. font-family: PingFang SC;
  104. font-weight: 500;
  105. color: #999999;
  106. }
  107. }
  108. }
  109. .btn {
  110. width: 579rpx;
  111. height: 80rpx;
  112. background: #52c696;
  113. border-radius: 15rpx;
  114. margin: 124rpx auto 0;
  115. display: flex;
  116. justify-content: center;
  117. align-items: center;
  118. font-family: PingFang SC;
  119. font-weight: bold;
  120. color: #FFFFFF;
  121. line-height: 24rpx;
  122. }
  123. </style>