<template>
  <view class="page-raw-ingoods">
    <view class="header">
      <view class="left">
        <u-icon class="icon" name="arrow-left" @click="uni.navigateBack()" />
      </view>
      <view class="title">预约</view>
      <view class="right"></view>
    </view>
    <view class="container">
      <u-row :gutter="30">
        <u-col :span="6">
          <u-button @click="toPage(page.raw.appointment.checkin)">
            <u-icon size="80" name="/static/icons/icon-06.png"></u-icon>
            <text class="name">1.预约登记</text>
          </u-button>
        </u-col>
        <u-col :span="6">
          <u-button @click="toPage(page.raw.appointment.checkout)">
            <u-icon size="80" name="/static/icons/icon-07.png"></u-icon>
            <text class="name">2.离开登记</text>
          </u-button>
        </u-col>
      </u-row>
    </view>
  </view>
</template>

<script lang="ts">
import { Component } from 'vue-property-decorator';
import { BasePage } from '@/components/base/page';
@Component
export default class RawAppointment extends BasePage {}
</script>

<style lang="scss" scoped>
.page-raw-ingoods {
  background-color: #f4f7fc;
  padding-top: 88rpx;
  min-height: 100%;

  .header {
    position: fixed;
    top: 36rpx;
    left: 0;
    right: 0;
    z-index: 99;
    display: flex;
    background-color: #255cea;
    height: 88rpx;
    line-height: 88rpx;
    color: #fff;
    font-size: 34rpx;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 1rpx 5rpx #6b90ef;
    .title {
      flex: 3;
    }
    .left,
    .right {
      flex: 1;
    }
    .icon {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 88rpx;
      height: 88rpx;
    }
  }

  .container {
    margin-top: 36rpx;
    padding: 30rpx 15rpx 0;
    .u-row {
    }
    .u-col {
      margin-bottom: 30rpx;
    }
    .u-btn {
      height: 160rpx;
      padding: 0 28rpx;
      border: 1px solid #f0f5fc;
      color: #42465a;
      font-size: 30rpx;
      font-weight: 400;
      &:after {
        border-color: #f0f5fc;
        border-radius: 4rpx;
      }
      .name {
        flex: 1;
        margin-left: 28rpx;
        text-align: left;
        overflow: hidden;
        text-overflow: ellipsis;
      }
    }
  }
}
</style>
