123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- <template>
- <view class="content">
- <view class="title">
- 服务日期
- </view>
- <its-calendar :sta_num="start_time" :end_num="end_time" :int_num="30" @getTime="getTime"></its-calendar>
- <view class="info">
- <view class="info-title">
- 预约人信息
- </view>
- <view class="info-info flex">
- <view class="info-left">
- 手机号
- </view>
- <view class="info-right">
- <input type="number" placeholder-class="pla" placeholder="请输入预约人手机号" v-model="phone">
- </view>
- </view>
- <view class="info-info flex">
- <view class="info-left">
- 预约人数
- </view>
- <view class="info-right">
- <input type="number" placeholder="请输入预约预约人数" placeholder-class="pla" v-model="num">
- </view>
- </view>
- </view>
- <view class="btn">
- 确认预约
- </view>
- </view>
- </template>
- <script>
- import its from '@/components/its-calendar/its-calendar.vue'
- export default {
- components: {
- its
- },
- data() {
- return {
- start_time: 0,
- end_time: 24,
- phone: '',
- num: ''
- };
- },
- onLoad() {},
- onShow() {},
- onReachBottom() {},
- onReady() {},
- methods: {
- getTime(e) {
- console.log(e);
- this.timed = true
- this.choose_time = e.time.split(' ')[0]
- this.choose_time_detail = e.time.split(' ')[1]
- },
- }
- };
- </script>
- <style lang="scss">
- page,
- .content {
- min-height: 100%;
- height: auto;
- background: #ffffff;
- }
- .title {
- padding: 55rpx 35rpx 44rpx;
- font-size: 32rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #000000;
- }
- .info {
- padding: 0 34rpx;
- .info-title {
- padding-top: 28rpx;
- border-top: 1px solid #F8F8F8;
- font-size: 26rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #000000;
- }
- .info-info {
- padding: 28rpx 0;
- border-bottom: 1px solid #F8F8F8;
- .info-left {
- font-size: 28rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #333333;
- }
- .info-right {
- text-align: right;
- font-size: 28rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #333333;
- }
- .pla {
- font-size: 28rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #999999;
- }
- }
- }
- .btn {
- width: 579rpx;
- height: 80rpx;
- background: #52c696;
- border-radius: 15rpx;
- margin: 124rpx auto 0;
- display: flex;
- justify-content: center;
- align-items: center;
- font-family: PingFang SC;
- font-weight: bold;
- color: #FFFFFF;
- line-height: 24rpx;
- }
- </style>
|