<template>
  <div>
    <title-bar title="短信验证" @clickLeft="onClick">
      <van-icon slot="left" name="cross" size="24" />
    </title-bar>
    <div style="width: 40%; padding-top: 10%; margin: 0 auto">
      <van-form @submit="onSubmit">
        <mobile-input label="客户名称" placeholder="李海峰" readonly />
        <mobile-input label="证件类型" placeholder="身份证" readonly />
        <mobile-input label="证件号码" placeholder="123123123123123123123" readonly />
        <mobile-input label="联系电话" />
        <mobile-input v-model="sms" center clearable label="短信验证码">
          <template #button>
            <van-button size="small" type="primary">获取验证码</van-button>
          </template>
        </mobile-input>
        <div class="button">
          <button type="info" round @click="onChang">确定</button>
        </div>
      </van-form>
    </div>
  </div>
</template>

<script lang="ts">
import { Component, Vue } from "vue-property-decorator";
import { Button } from "vant";
/**
 * @Description:短信验证
 * @author pd
 * @date 2021-11-06 16:43:37
 */
Vue.use(Button);
@Component({
  name: "PostNote",
})
export default class PostNote extends Vue {
  username = "李四";

  sms = "";
  formatter() {}
  onSubmit() {
    console.log("111");
  }
  onClick() {
    console.log("1111");
  }
  onChang() {
    console.log("111");
  }
}
</script>

<style lang="scss" scoped>
.content {
  width: 60%;
  padding-top: 10%;
  margin: 0 auto;
}
.word {
  //position: absolute;
  top: 30%;
  left: 32%;
  //border-width: 1%;
  position: absolute;
  width: 9%;
  height: 9%;
  //display: flex;
  font-size: 160%;
  color: #999999;
  line-height: 6%;
}
.input {
  border-width: 0px;
  position: absolute;
  left: 41%;
  top: 26%;
  width: 34%;
  height: 7%;
  display: flex;
  font-size: 160%;
  text-align: left;
  line-height: 22%;
  background-color: #f2f3f5;
}
.inputA {
  position: absolute;
  left: 41%;
  top: 26%;
  width: 34%;
  height: 7%;
  font-family: "Arial Normal", "Arial";
  font-weight: 400;
  font-style: normal;
  font-size: 160%;
  letter-spacing: normal;
  color: #000000;
  //vertical-align: none;
  //text-align: left;
  box-sizing: border-box;
  border-style: solid;
  border-width: 1px;
  text-transform: none;
  background-color: rgba(255, 255, 255, 1);
  border-color: rgba(215, 215, 215, 1);
}
.messageNo {
  border-width: 0px;
  position: absolute;
  left: 62%;
  top: 65%;
  width: 13%;
  height: 8%;
  background: inherit;
  background-color: rgba(197, 228, 245, 1);
  border: none;
  border-radius: 5%;
  -moz-box-shadow: none;
  -webkit-box-shadow: none;
  box-shadow: none;
  font-size: 140%;
  color: #666666;
}

.text {
  position: absolute;
  align-self: center;
  padding: 14% 2% 2% 24%;
  box-sizing: border-box;
  width: 100%;
}
.button button {
  background-color: #fd5065;
  border: 1px solid #fd5065;
  color: white;
  border-radius: 30px;
  width: 100%;
  padding: 1.5% 0;
  font-size: 20px;
}
</style>
