<!--  -->
<template>
  <div class="bind">
    <NavBar title="绑定设备" @on-click-left="onNavBack"></NavBar>
    <div class="main">
      <div class="top">
        <van-button size="small" round type="default" class="btn-def">暂不绑定</van-button>
      </div>
      <div class="bind-con">
        <div class="scan">
          <p>申请获取并验证你的手机号</p>
          <img :src="scanImg" alt="" />
        </div>
        <div class="cut-line">
          <span>----------或手动填写绑定----------</span>
        </div>
        <div class="input">
          <van-field v-model="imei" placeholder="请填写设备码" input-align="right">
            <template #label>
              <p class="input-label">设备码</p>
            </template>
          </van-field>
        </div>
      </div>
    </div>
    <div class="bottom">
      <div class="btn">
        <van-button size="large" round @click="onNext" :color="$green" class="next-text">下一步</van-button>
      </div>
    </div>
  </div>
</template>

<script>
import NavBar from '@/components/NavBar.vue';
export default {
  components: { NavBar },
  data() {
    return {
      scanImg: require('../../assets/com-imges/55_10.png'),
      imei: ''
    };
  },
  created() {},
  mounted() {},
  methods: {
    onNavBack() {
      this.$router.back();
    },
    onNext() {
      this.$router.push({
        name: 'Index'
      });
    }
  }
};
</script>
<style scoped lang="scss">
.bind {
  height: 100vh;
  overflow: hidden;
  .main {
    position: relative;
    overflow: scroll;
    padding: 100px 40px;
    .top {
      height: 60px;
      padding: 20px 0;
      display: flex;
      justify-content: flex-end;
      align-items: center;
      .btn-def {
        height: 40px;
        padding: 10px;
        border: 1px solid $green;
      }
    }
    .bind-con {
      position: relative;
      .scan {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 34px;
        padding: 20px 0;
        p {
          font-size: 36px;
          font-weight: bold;
        }
        img {
          height: 60px;
          width: 60px;
          object-fit: contain;
        }
      }
      .cut-line {
        padding: 20px;
        font-size: 28px;
        color: $border_color;
        @include center();
      }
      .input {
        padding: 40px 0;
        .van-cell {
          display: flex;
          justify-content: space-between;
          align-items: center;
          padding: 0 !important;
          .input-label {
            @include colorAndFont(#333, 18);
            font-weight: bold;
          }
        }
      }
    }
  }
  .bottom {
    height: 120px;
    width: 100%;
    position: absolute;
    bottom: 10px;
    left: 0;
    @include center();
    .btn {
      width: 100%;
      padding: 40px;
      .next-text {
        font-size: 48px;
      }
    }
  }
}
/* @import url(); 引入css类 */
</style>
