no message

cyl/master-0804
jscyl13849007907 3 months ago
parent f9e008caa9
commit 8464971366

@ -74,7 +74,7 @@
</div> </div>
<div class="btn-text g_flex_c g_flex_none" @click="handleSendMsg(item.tel, item.verifyTel)" <div class="btn-text g_flex_c g_flex_none" @click="handleSendMsg(item.tel, item.verifyTel)"
:style="{ :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> <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: "", code: "",
btnText: "获取验证码", // 6s btnText: "获取验证码", // 6s
countdown: 0, countdown: -1,
timer: null, timer: null,
}, },
nationData: { nationData: {
@ -456,7 +456,7 @@ export default {
type: "assistant", type: "assistant",
}, },
(res) => { (res) => {
that.msgCode.countdown = 60; that.msgCode.countdown = 59;
that.msgCode.btnText = that.msgCode.countdown + "s"; that.msgCode.btnText = that.msgCode.countdown + "s";
clearInterval(that.msgCode.timer); clearInterval(that.msgCode.timer);
that.msgCode.timer = setInterval(() => { that.msgCode.timer = setInterval(() => {

Loading…
Cancel
Save