mt = $('[name="mobile21"]'); var chEmt = $('[name="chenghu21"]'); var sqEmt = $('[name="square21"]'); var ch = chEmt.val(); var mo = mEmt.val(); var square = sqEmt.val(); var type = $('[name="b_type21"]').val(); var dId = $('[name="dId21"]').val(); var model = $('[name="model21"]').val(); var yijian = $('[name="yijian21"]').val(); var province = $('[name="province21"]').val(); var city = $('[name="city21"]').val(); /*申请的类型*/ var position = $('[name="position21"]').val(); /*申请的位置*/ if (mo.length == 0 || mo == '' || mo == mEmt.data('value')) { $('#showText').css('display','block'); $('[name="mobile21"]').focus(); $('[name="mobile21"]').addClass('red'); return false; } if (moReg.test(mo) == false) { $('#showText').css('display','block'); $('[name="mobile21"]').addClass('red'); $('[name="mobile21"]').focus(); return false; } $('[name="mobile21"]').removeClass('red'); if (ch == chEmt.data('value')) { ch = ''; } var data = {}; data.name = ch; data.mobile = mo; data.type = type; data.city = city; data.conID=dId; data.square = square; data.decoration_hose = model; data.type = type; data.position = position; data.province = province; data.email=yijian; $.ajax({ type: 'post', data: data, url: '/public/ajaxBid/', dataType: 'json', success: function (result) { layer.close(layer.index); if (result.status == 1) { layer.open({ title: false, //不显示标题 type: 1, closeBtn: false, time: 5000, area: ['360px', '230px'], shadeClose: true, //点击遮罩关闭 success: function () { var second = 5; var open_id = setInterval(function () { --second; if (second <= 0) { clearInterval(open_id); setTimeout(function () { $('.prompt_close').find('em').text(5); }, 1000); } else { $('.prompt_close').find('em').text(second); } }, 1000); }, content: html2 }); } else { layer.alert(result.msg, {time: 1500}); } } }) }); //预约设计师城市交互 $('[name="province21"]').change(function () { $('[name="city21"]').html(''); var id = $(this).val(); $.ajax({ type: 'get', url: '/public/getArea/', data: {area: id}, dataType: 'json', success: function (result) { var html = ''; for (var i in result) { html += '' } $('[name="city21"]').append(html); } }); });


您的申请提交成功!

装修顾问将在24小时内与您联系,了解装修需求。

请注意接听开头为 059215060751671 的电话。

5秒内将关闭此窗口

今日已有106位业主预约

您的称呼 你的手机号码
立即申请
扫一扫,关注有礼