<script setup>
import { ref } from "vue";

const text = ref('发送验证码')
</script>
<template>
  <div class="counter">
    <div style="height: 7%;"></div>
    <div class="popup">
      <div class="title">验证码登录</div>
      <div class="code">
        <van-cell-group inset>
          <!-- 手机号 -->
          <van-field v-model="value" placeholder="187159***14" />
          <!-- 验证码 -->
          <van-field v-model="sms" center clearable placeholder="验证码">
            <template #button>
              <van-button
                size="small"
                color="#6170c3"
                :text="text"
                round="true"
                @click="dbclick"
              ></van-button>
            </template>
          </van-field>
          <!-- 底部按钮 -->
          <van-button size="large" color="#6170c3" round="true">确认登录</van-button>
        </van-cell-group>
      </div>
    </div>
  </div>
</template>

<style lang="scss" scoped>
.counter {
  height: 100vh;
  background-color: #f2f2f2;
  .popup {
    margin: 50px auto;
    width: 500px;
    height: 390px;
    background-color: #fff;
    padding: 40px;
    border-radius: 20px;
  }
  .title {
    font-weight: 800;
  }
  .code {
    margin-top: 60px;
    .van-cell {
      margin-bottom: 40px;
      border: 1px solid #cacaca;
      border-radius: 18px;
    }
  }
}
</style>