{pboot:nav parent=0 num=1} {pboot:if([nav:soncount]>0)} {pboot:2nav parent=6 order='id desc'} <li><a href="[2nav:link]">[2nav:name][2nav:subname]</a></li> {/pboot:2nav} {/pboot:if} {/pboot:nav}
<script> //ajax提交表单 function subform(obj){ var url='{pboot:form fcode=2}'; var products=$(obj).find("#products").val(); var lianxi=$(obj).find("#lianxi").val(); var mobile=$(obj).find("#mobile").val(); var email=$(obj).find("#email").val(); var address=$(obj).find("#address").val(); var content=$(obj).find("#content").val(); var reg = /^(1|0)[\d\-]+$/; if (!reg.test(mobile)) { alert('电话号码错误!'); return false; } $.ajax({ type: 'POST', url: url, dataType: 'json', data: { products: products, lianxi: lianxi, mobile: mobile, email: email, address: address, content: content }, success: function (response, status) { if(response.code){ alert("您的订购信息已收到,我们会尽快联系您!"); $(obj)[0].reset(); }else{ alert(response.data); } }, error:function(xhr,status,error){ alert('返回数据异常!'); } }); return false; } </script>
微信号:gaogaojie5
添加微信好友, 获取更多信息
复制微信号
添加微信好友, 获取更多信息
复制微信号
转载声明:本站发布文章及版权归原作者所有,转载本站文章请注明文章来源!