|
|
|
@ -100,8 +100,12 @@
|
|
|
|
|
$(e).removeClass('g-btn').addClass('g-btntn');
|
|
|
|
|
var a = setInterval(function() {
|
|
|
|
|
r--;
|
|
|
|
|
$(e).text('成功'+r + '秒后重发'),
|
|
|
|
|
0 == r && ($(e).removeClass('g-btntn').addClass('g-btn'), $(e).text('获取短信验证码'), clearInterval(a))
|
|
|
|
|
$(e).text(r + '秒'),
|
|
|
|
|
$(e).css("background", "rgba(169,169,169)");
|
|
|
|
|
0 == r && ($(e).removeClass('g-btntn').addClass('g-btn'),
|
|
|
|
|
$(e).text('获取短信验证码'),
|
|
|
|
|
$(e).css("background", "rgba(33,177,235,1)"),
|
|
|
|
|
clearInterval(a))
|
|
|
|
|
},1e3)
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|