提交 71afa215 authored 作者: xuyanwei's avatar xuyanwei

修改按钮大小

上级 1cf0003f
......@@ -242,7 +242,8 @@
display: flex;
justify-content: space-between;
align-items: center;
min-width: .8rem;
min-height: .2rem;
img {
width: .45rem;
object-fit: cover;
......
......@@ -17,7 +17,7 @@
<li>
<img src="../../assets/img/my/yzm.png" alt="">
<input type="text" placeholder="请输入验证码" v-model="phoneCode">
<h2 @click="phone!=''&&getPhonecode()" :style="{color:phone==''?'#C0BFC5':''}">{{btnText}}</h2>
<h2 @click="phone!=''&&isLoading&&getPhonecode()" :style="{color:phone==''?'#C0BFC5':''}">{{btnText}}</h2>
</li>
</ul>
</div>
......@@ -47,6 +47,7 @@
errormsg: '',
second: 0,
interval: null,
isLoading:true,
}
},
created() {
......@@ -105,6 +106,7 @@
if (this.errormsg != '') return;
this.yzImgCode();
if (this.errormsg != '') return;
this.isLoading=false;
getPhoneCodeAPI({
phone: this.phone,
uuid: this.uuid,
......@@ -112,6 +114,7 @@
}).then(res => {
if (!res.data.status) {
this.errormsg = res.data.msg;
this.isLoading=true;
this.getImgCode();
} else {
self.second = 60;
......@@ -119,6 +122,7 @@
self.second--
/*this.addBtnFlag = false*/
if (self.second == 0) {
this.isLoading=true;
clearInterval(self.interval)
/*this.addBtnFlag = true*/
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论