Code.vue
1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<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: 20px;
border: 1px solid #cacaca;
border-radius: 18px;
}
}
}
</style>