_verifyPhone .verify_err').css('display', 'none'); }); if (len == 6) { $('.ipt-active-phone').css('left', (((i - 1) * 45 + 6) / 100) + 'rem'); try { //执行其他操作 // console.log('输入完整,执行操作'); let pwd = $val.trim(), fobj = sessionStorage.getItem('form_' + sign) ? JSON.parse(sessionStorage.getItem('form_' + sign)) : {}, params = sessionStorage.getItem('form_params_' + sign) ? JSON.parse(sessionStorage.getItem('form_params_' + sign)) : {}; if (pwd) params.code = pwd; if (fobj.name && params.code) ajaxForm(params, fobj); if (document.activeElement instanceof HTMLElement) document.activeElement.blur(); } catch (error) { } } } else { var arr = $val.match(/\d/g); $(this).val($val.slice(0, $val.lastIndexOf(arr[arr.length-1])+1)); } }) function verifyCountDown () { let second = 60; verifyTimer = setInterval(() => { second--; $('.verifyPhone_box .countdown .countdown_text').html(`(${second}s后)重新获取`); if (second == 0) { clearInterval(verifyTimer); $('.verifyPhone_box .countdown').css({color: '#141414'}); $('.verifyPhone_box .countdown .countdown_text').html('重新获取验证码'); } }, 1000); } } function subtSuccessContent(items) { let flag = items.autoplay && items.clickType == 2 let html = `
提交成功
您的信息已经成功提交!
${ flag ? `` : ''}
` $('#brick' + items.itemIndex).html(html); } for (i in commentslist) { let itmI = commentslist[i].itemIndex; let oflag = commentslist[i].currStyleClass == 'style-one'; let tflag = commentslist[i].currStyleClass == 'style-two'; let commentlist = commentslist[i].commentlist $(".linkes" + itmI).on('click', function () { let index = $(this).attr('data-linkIndex') || 1; index = parseInt(index) - 1; let list = commentlist[index]; if (!list.isZan) { list.zanInputNum += 1; list.isZan = true; if (oflag) $(this).children('.zan').addClass('icon-dianzanxuanzhong').removeClass('icon-dianzan'); if (tflag) $(this).css('color', '#f56c6c'); } else { list.zanInputNum -= 1; list.isZan = false; if (oflag) $(this).children('.zan').addClass('icon-dianzan').removeClass('icon-dianzanxuanzhong'); if (tflag) $(this).css('color', '#595959'); } let result = null if (oflag) result = list.zanInputNum < 1000 ? list.zanInputNum + '' : parseFloat((list.zanInputNum / 1000).toString().match(/^\d+(?:\.\d{0,1})?/)) + 'K'; if (tflag) result = list.zanInputNum; $(this).children('.lnk').text(result); }) for (t in commentlist) { let n=parseInt(t)+1; let replylist = commentlist[t] && commentlist[t].replylist || []; $(".likesp" + itmI + n).on('click', function () { let index = $(this).attr('data-linkIndex') || 1; index = parseInt(index) - 1; let list = replylist[index]; if (!list.isZan) { list.zanInputNum += 1; list.isZan = true; if (oflag) $(this).children('.zan').addClass('icon-dianzanxuanzhong').removeClass('icon-dianzan'); if (tflag) $(this).css('color', '#f56c6c'); } else { list.zanInputNum -= 1; list.isZan = false; if (oflag) $(this).children('.zan').addClass('icon-dianzan').removeClass('icon-dianzanxuanzhong'); if (tflag) $(this).css('color', '#595959'); } let result = null if (oflag) result = list.zanInputNum < 1000 ? list.zanInputNum + '' : parseFloat((list.zanInputNum / 1000).toString().match(/^\d+(?:\.\d{0,1})?/)) + 'K'; if (tflag) result = list.zanInputNum; $(this).children('.lnk').text(result); }) } } function reqFormat(type, jump) { if (wxMiniUrl) window.location.href = wxMiniUrl; isEnbleCopy = false; let custb = window.jQuery.custb || {} if (custb.configure_type == 4) { if (isWeixin && type == 1) { $('.weixqr').fadeIn(300); return; } let elelist = document.querySelectorAll('.wechat_number') copyw(elelist[0]) } let t = custb.configure_type != 4 ? jump : null; setTimeout(function() { straght(); backpass(1, t); save(); }, 16.6666666) } function cutUrl (url) { if (!url) return ''; if (url.indexOf('http://') == 0) return url.slice(5) if (url.indexOf('https://') == 0) return url.slice(6) } /* 关闭协议弹框 表单点击 */ $('.default-close-btn').on('click', function (e) { $('.default-modal').fadeOut(300); e.stopPropagation(); }); $('.privacy_box').on('click', function (event) { var evt = event.srcElement ? event.srcElement : event.target; if (evt.className == 'dialog-wrapper') $('.default-modal').fadeOut(300); }); /* 打开立即咨询弹框 */ $('.zxunbtn').on('click', function () { if (isWeixin) { $('.weixqr').fadeIn(300); } else { reqFormat(null, 'jump') } }); /* 关闭立即咨询弹框 */ $('.weixqr').on('click', function (evt) { var evt = event.srcElement ? event.srcElement : event.target; if (evt.className == 'alert-bg') $(this).fadeOut(300); }); $('.inputErrClose').on('click', function (evt) { $('.dialog_input').css('display', 'none'); }); $('.dialog_verfiy').o