|
|
|
|
@ -74,7 +74,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
<div class="btn-text g_flex_c g_flex_none" @click="handleSendMsg(item.tel, item.verifyTel)"
|
|
|
|
|
:style="{
|
|
|
|
|
'background-color':msgCode.countdown > 0 && msgCode.countdown < 60 ? '#dddddd' : '#00b666'
|
|
|
|
|
'background-color':msgCode.countdown >= 0 && msgCode.countdown < 60 ? '#dddddd' : '#00b666'
|
|
|
|
|
}"
|
|
|
|
|
>
|
|
|
|
|
<button class="btn-con g_fs_14 g_c_9 g_flex_row_center" style="width: 100px">{{ msgCode.btnText }}</button>
|
|
|
|
|
@ -255,7 +255,7 @@ export default {
|
|
|
|
|
// 短信倒计时
|
|
|
|
|
code: "",
|
|
|
|
|
btnText: "获取验证码", // 6s
|
|
|
|
|
countdown: 0,
|
|
|
|
|
countdown: -1,
|
|
|
|
|
timer: null,
|
|
|
|
|
},
|
|
|
|
|
nationData: {
|
|
|
|
|
@ -456,7 +456,7 @@ export default {
|
|
|
|
|
type: "assistant",
|
|
|
|
|
},
|
|
|
|
|
(res) => {
|
|
|
|
|
that.msgCode.countdown = 60;
|
|
|
|
|
that.msgCode.countdown = 59;
|
|
|
|
|
that.msgCode.btnText = that.msgCode.countdown + "s";
|
|
|
|
|
clearInterval(that.msgCode.timer);
|
|
|
|
|
that.msgCode.timer = setInterval(() => {
|
|
|
|
|
|