您好,欢迎来到贵州海大装饰集团    咨询热线:0851-85805790

网站地图   |   贵阳站    遵义站   

全国统一服务热线

0851-85805790

当前位置:

|ԌExt/javascript"> function yuyue(type,id){ $(".desig_type").val(type); $(".desigid").val(id); $('.desig_phone').attr('class','desig_phone desig_zheng'); if (type == 3 ){ $('.desig_one').append(""); }else if(type == 8) { $('.desig_one').append(""); }else if(type == 9){ $('.desig_one').append(""); $('.desig_phone').attr('class','desig_phone desig_half'); $('.desig_two').append(""); } event.cancelBubble = true; if (type == 3){ $('.desig_from_title p').remove(); $('.desig_from_title').append("

马上登记,立即预约设计师

"); }else if(type == 8){ $('.desig_from_title p').remove(); $('.desig_from_title').append("

马上登记,立即预约参加工地

"); }else if (type == 9){ $('.desig_from_title p').remove(); $('.desig_from_title').append("

马上登记,立即预约装修

"); } var sjsName=$(".photo_one").find("input").val(); $(".desig , .desig_div , .desig_from , .desig_close").show() } function inspect(type){ var name = $('.desig_name'); var address = $('.desig_address'); var call = $('.desig_phone'); var acreage = $('.desig_acreage'); var myReg = /[^\u4e00-\u9fa5]/; var myPhone = /^1[3|4|5|7|8][0-9]\d{8}$/; if (name.val() == '' || name.val() == null){ alert("姓名不能为空!"); name.focus(); return false; }else if (myReg.test(name.val())){ alert("姓名为中文!"); name.focus(); return false; } if(call.val() == "" || call.val() == null){ alert("电话不能为空!"); call.focus(); return false; }else if (!(myPhone.test(call.val()))){ alert("电话格式不正确!"); call.focus(); return false; } if(type == 3 || type == 8){ if(address.val() == "" || address.val() == null){ alert("工地名称不能为空!"); address.focus(); return false; } }else if(type == 9){ if(address.val() == "" || address.val() == null){ alert("地址不能为空!"); address.focus(); return false; } if(acreage.val() == "" || acreage.val() == null){ alert("面积不能为空!"); address.focus(); return false; }else if((isNaN(acreage.val()))){ alert("面积为数字!"); address.focus(); return false; } } return true; } $('.desig_btn').click(function () { var type = $('.desig_type').val(); if (!inspect(type)){ return false; }else{ var type = $('.desig_type').val(); var classid = type; var name = $('.desig_name').val(); var call = $('.desig_phone').val(); var content = $('.desig_content').val(); if (type == 3 ){ var desigid = $("#desigid").val(); }if (type == 8){ var fieldtitle = $('.desig_address').val(); } if (type == 9){ var address = $('.desig_address').val(); var acreage = $('.desig_acreage').val(); } $.post('/Index/message.html',{'classid': classid, 'name': name,'address': address,'fieldtitle': fieldtitle,'call': call,'acreage': acreage,'content': content,'desigid': desigid},function ($data) { alert($data); $(".desig_close,.desig , .desig_div , .desig_from").hide(); $('.desig_address').remove(); $('.desig_loupan').remove(); $('.desig_acreage').remove(); }); } }); $(".desig_close").click(function(){ $('.desig_close').hide(); $('.desig_address').remove(); $('.desig_loupan').remove(); $('.desig_acreage').remove(); $(".desig , .desig_div , .desig_from").hide(); }); $("#nav-ul > li").hover(function(){ $(this).children('ul').slideDown(500); $(this).children('a').addClass('nav-cursor'); },function(){ $(this).children('ul').slideUp(200); $(this).children('a').removeClass('nav-cursor'); });