投票前请先用手机验证并登录
function RndNum(n) { var rnd = ""; for (var i = 0; i < n; i++) rnd += Math.floor(Math.random() * 10); return rnd; } var xxx = RndNum(3); var handler = function (captchaObj) { /*$("#btn_getcode1").click(function (e) { onblurMobile(); var validate = captchaObj.getValidate(); if (!validate) { $("#notice")[0].className = "show"; setTimeout(function () { $("#notice")[0].className = "hide"; }, 2000); e.preventDefault(); } else { $("#hcaptcha").val("1"); showtime(60); SendMobileCode(); } });*/ // 将验证码加到id为captcha的元素里 console.log(captchaObj); console.log(JSON.stringify(captchaObj)); //console.log(captchaObj.dom.innerHTML); captchaObj.appendTo("#pop"); /*captchaObj.onReady(function () { $("#wait")[0].className = "hide"; });*/ }; function showCode() { if (onblurMobile()) { $("#pop").html(""); $.ajax({ // 获取id,challenge,success(是否启用failback) url: "/tools/getcaptcha.aspx?t=" + xxx + "&mobile=" + $("#txt_mobile").val() + "", type: "get", dataType: "json", // 使用jsonp格式 success: function (data) { // 使用initGeetest接口 // 参数1:配置参数,与创建Geetest实例时接受的参数一致 // 参数2:回调,回调的第一个参数验证码对象,之后可以使用它做appendTo之类的事件 initGeetest({ width: '100%', gt: data.gt, challenge: data.challenge, product: "embed", // 产品形式 offline: !data.success }, function (captchaObj) { captchaObj.appendTo("#pop"); captchaObj.onSuccess(function () { console.log("success"); $("#hcaptcha").val("1"); showtime(60); $("#pop").hide(); var validate = captchaObj.getValidate(); SendMobileCode(validate); }); window.captchaObj = captchaObj; }); } }); $("#pop").show(); } } function SendMobileCode(validate) { des = "tb"; console.log(PageMethods); PageMethods.SendMobileCode($("#txt_mobile").val(), validate.geetest_challenge, validate.geetest_validate, validate.geetest_seccode, funReady, funError); } function funReady(result) { result = JSON.parse(result); if (result.data == 1) { $("#div_captcha").val("验证码已发送!") } else { alert(result.data); } } function funError(err) { alert("Error:" + err._message); } function showtime(t) { document.getElementById("btn_getcode").disabled = true; for (i = 1; i <= t; i++) { window.setTimeout("update_p(" + i + "," + t + ")", i * 1000); } } function update_p(num, t) { if (num == t) { document.getElementById("btn_getcode").value = " 重新发送 "; document.getElementById("btn_getcode").disabled = false; } else { printnr = t - num; document.getElementById("btn_getcode").value = " (" + printnr + ")秒后重新发送"; } } function checkCode() { PageMethods.checkCode($("#txt_mobile").val(), $("#txt_code").val(), funReady2, funError2); } function funReady2(result) { if (result == "1") { $("#div_code").html("正确!") return true; } else { $("#div_code").html("验证码错误!") return false; } } function funError2(err) { alert("Error:" + err._message); } function getmobilecode() { onblurMobile(); showtime(60); SendMobileCode(); }
  • 网友评论
游客
  • 最新评论
  • 大家好,长安的业务经理号码多少,我是卖金彭低速四轮电动汽车的,想了解一下长安,想加盟经销,18979256750

    原评论:
    22:27 0 2

    大家好,长安的业务经理号码多少,我是卖金彭低速四轮电动汽车的,想了解一下长安,想加盟经销商

    原评论:
    22:26 1 2

    绿色出行,咱选江铃。

    原评论:
    22:41 0 2

    江铃666

    原评论:
    20:51 1 2

    湖南岳阳御捷一级总代理,有需要的联系18873051216

    原评论:
    20:59 1 3

    需要北汽新能源的联系我18285841324

    原评论:
    20:49 0 3

    很棒

    原评论:
    12:34 0 2

    御捷品牌很好!我和御捷合作几年了!重质量、讲信用!

    原评论:
    22:58 0 3

    车型时尚,动力强劲,山区平原照样跑!

    原评论:
    14:04 2 3

    红星,我看行!

    原评论:
    13:10 0 2

    想做高速锂电电动汽车!!电话15238875331

    原评论:
    08:55 0 2

    御捷,做老百姓需要的车,期待。

    原评论:
    20:37 0 3

    多钱啊

    原评论:
    15:59 0 2

    需要北汽新能源的联系我18285841324

    原评论:
    11:26 20 3

    需要北汽新能源的联系我

    原评论:
    11:26 19 3

    这车市场价格多少,怎么代理有什么代理的话有什么要求??我15564842018

    原评论:
    20:07 1 3

    市场售价多少钱

    原评论:
    20:02 0 4

    御行天下

    原评论:
    21:32 1 3

    御捷车型美观大方,经久耐用,是电动轿车的佼佼者!

    原评论:
    21:30 0 3

    御捷车型美观大方,经久耐用,是电动汽车的佼佼者!

    原评论:
    21:26 1 3
function tpClick(e, tid) { if (checkall()) { console.log(tid); PageMethods.postVote( tid, function (data) { if (data) { try{ data = JSON.parse(data); if(data.data){ if (data.data == 1) { var pdom = $($(e).parent().parent().find(".piaos")[1]); if (data.url) { pdom.text(data.vcount); if (confirm("投票成功,是否参与抽奖?")) { location.href = data.url; } } else { pdom.text(data.vcount); alert("投票成功"); } } else { alert(data.data); } } else { alert("服务器异常"); } }catch(e){ alert("服务器返回异常" + e); } } else { alert("服务器处理异常"); } },function (err) { alert("投票失败,请稍后再试"); }); } } function GetDomID(str) { return document.getElementById(str); } var strcheck = 1; var stroption = 0; var strphone = 0; function checkall() { if (!onblurMobile() ) { return false; } else { return true; } } function onblurMobile() { var re = /^((\(\d{3}\))|(\d{3}\-))?0?1[34578][0-9]\d{8}([,]((\(\d{3}\))|(\d{3}\-))?0?1[34578][0-9]\d{8}){0,2}$/; var txtMobile = $("#txt_mobile").val(); var divMobile = GetDomID("div_mobile"); if (txtMobile == '') { divMobile.innerHTML = '请填写手机号码'; $("#txt_mobile").focus(); strphone = 0; return false; } else if (re.test(txtMobile)) { divMobile.innerHTML = '
填写正确!
'; strphone = 1; return true; } else { divMobile.innerHTML = '请填写正确的号码。'; strphone = 0; return false; } return false; } function checkmobile() { if (onblurMobile()) { var oval = document.getElementById('txt_mobile').value; chMobilePhone(oval); } } function chMobilePhone(src) { $.ajax({ //要用post方式 type: "Post", //方法所在页面和方法名 url: '/ajax/checkedmobile.ashx', data: { ac: src, type: "user" }, //contentType: "application/json; charset=utf-8", //dataType: "json", success: function (data) { //返回的数据用data.d获取内容 if (data == 1) { var divMobile = GetDomID("div_mobile"); divMobile.innerHTML = '
您的手机已验证过,请点击登录按钮!
'; $("#ckmobile").hide(); } else { var divMobile = GetDomID("div_mobile"); divMobile.innerHTML = '
填写正确,请点击获取验证按钮,获取手机验证码!
'; $("#ckmobile").show(); } }, error: function (err) { strphone = 0; //alert(err); } }); } function share(id, type) { //var share_url = "http://www.cnev.cn/share/" + type + "/" + id + "/"; var share_url = "share.aspx?id="+id+"&type="+type; window.open(share_url); } $(function () { $(".FX").hover(function () { $(this).find(".shared").animate({ width: "120px" }, 200); }) var ua = navigator.userAgent.toLowerCase();//获取判断用的对象 if (ua.match(/MicroMessenger/i) == "micromessenger") { $("#wxb").show(); } }) $(function () { $("section section hgroup").mouseleave(function () { $(".shared").animate({ width: "0px" }, 200); }) }) function changeimg() { $(".toupiao img").attr("src", "ValidateCode.aspx?id="+Math.random()*1000); } function setempty(id) { document.getElementById("" + id + "").value = ""; } wx.config({ debug: false, appId: 'wx20325f146bf21b53', timestamp:1713553977, nonceStr: 'U2VmjvyzB1p35DIj', signature: '2dc928b4a482f11c72a118d9a4c32d2bcd29ab52', jsApiList: [ 'checkJsApi', 'onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo' , 'chooseWXPay' ] }); wx.checkJsApi({ jsApiList: ['chooseImage'], // 需要检测的JS接口列表,所有JS接口列表见附录2, success: function(res) { console.log("验证成功!"); } }); wx.ready(function () { console.log("验证成功!"); wx.onMenuShareTimeline({ title: '高速微型车企业候选品牌-2017年微型电动汽车网络评选活动', link: 'http://mtp2017.cnev.cn/auto/hxindex.aspx', imgUrl: 'http://mtp2017.cnev.cn/mbrand/images/bj_01.jpg', trigger: function (res) { console.log("用户点击分享给朋友!"); }, success: function (res) { console.log("已分享!"); }, cancel: function (res) { console.log("已分享!"); }, fail: function (res) { console.log(JSON.stringify(res)); } }); wx.onMenuShareAppMessage({ title: '高速微型车企业候选品牌-2017年微型电动汽车网络评选活动', link: 'http://mtp2017.cnev.cn/auto/hxindex.aspx', imgUrl: 'http://mtp2017.cnev.cn/mbrand/images/bj_01.jpg', trigger: function (res) { console.log("用户点击发送给朋友!"); }, success: function (res) { console.log("已发送!"); }, cancel: function (res) { console.log("已发送!"); }, fail: function (res) { console.log(JSON.stringify(res)); } }); });