已经收到您的意见反馈,感谢您的关注!
商标名称 , function(res) { if(res.ret === 0){ var btn = $('.showPopTel_btn-code'); var show = $('.showPopTel_btn-down'); var t = show.find('em'); $.ajax({ type: "POST", url: "/user/sms", data: {phone: phone,captcha: res}, dataType: 'json', success: function (data) { if(data.code=='0'){ gbicom_switch_getCodeFn(btn, show, t); }else{ // $('.err').show().text(data.msg).show(); alert('发送失败,请稍后再试。') return false; } } }); }else{ alert('图片验证失败'); return; } }); captchadiv.show(); }) function gbicom_switch_getCodeFn(btn, show, time) { btn.hide(); show.css('display', 'block'); var timer = time; var t = parseInt($(time).text()); function waiting() { if (t > 0) { t--; timer.text(t); } else { btn.css('display', 'block'); show.hide(); clearInterval(ter); ter = null; timer.text(60); } } var ter = setInterval(function () { waiting(); }, 1000); } function update_gbicom_status(){ is_login = $('.is-login').val() // 1 登录 2 未登录 gbicom_switch_mobile = $('.gbicom_switch_mobile').val() }