• 商家入驻,优惠多多
  • whz").val()); var regname = $.trim($("#regname_swhz").val()); var regphone = $.trim($("#regphone_swhz").val()); var cityid = $.trim($("#cityid_swhz").val()); if(cityid == ''){ alert('请选择城市!'); return false; } if(uname == ''){ alert('请输入公司名称!'); return false; } if(regname == ''){ alert('请输入您的称号!'); return false; } if(regphone == ''){ alert('请输入手机号!'); return false; }else{ if(!isPageMobile(regphone)){ alert('手机号格式错误!'); return false; } } if(cpregCode.length == ''){ alert('请输入验证码!'); return false; } if(isCheck){ var timenow = new Date().getTime(); $.ajax({ type: "POST", dataType: "json", url: "/Login/doRegCp/", data: "actionType=cp&cityid="+cityid+"&uregCode="+cpregCode+"&uname="+uname+"®name="+regname+"®phone="+regphone+"®qq=&t="+timenow, success: function(result) { if(result.status=='1'){ alert('申请成功!请耐心等待管理员的审核。'); $("#cpname_swhz").val(''); $("#regname_swhz").val(''); $("#regphone_swhz").val(''); $("#cpregCode").val(''); changeVerify(); toCloseRzWin(); }else{ if(result.info.indexOf('验证码')>=0){ changeVerify(); } alert(result.info); return false; } } }); }else{ alert('请阅读协议并勾选!'); return false; } }) function changeVerify(){ var timenow = new Date().getTime(); $('.yzmimg').attr("src","/Home/Login/verify/"+timenow); } function zxbj_ProChange_swhz(pcode){ //采用js的方式省市二级联动 for(var pcmapK in provinceCityMap){ if(pcmapK==pcode){ $('#ul_city_swhz li').remove(); var cityMap = provinceCityMap[pcmapK]; if(cityMap){ var selObj = $("#ul_city_swhz"); var ctix = 0; var ctid = ''; var ctname = ''; for(var myCityId in cityMap){ var value = myCityId; var text = cityMap[myCityId]; if(ctix==0){ ctid = value; ctname = text; } selObj.append("
  • "+text+"
  • "); ctix = ctix + 1; } $("#cityname_swhz").text(ctname); $("#cityid_swhz").val(ctid); $('#ul_city_swhz li').on('mousedown',function(event){ $('#cityname_swhz').text($(this).text()); $('#cityid_swhz').val($(this).attr("data_id")); $('.ap_group_slider').hide(); }); }else{ var selObj = $("#ul_city_sjrz"); selObj.append('
  • 请选择
  • '); } } } }
    找回密码