feat: mobile批量购买留言页
This commit is contained in:
97
app/index/view/mobile/contact_us/bulkbuy.html
Normal file
97
app/index/view/mobile/contact_us/bulkbuy.html
Normal file
@@ -0,0 +1,97 @@
|
||||
{extend name="public/base" /}
|
||||
{block name="style"}
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/contactus_bulkbuy.css" />
|
||||
{/block}
|
||||
{block name="main"}
|
||||
<div class="oricoEGapp">
|
||||
<div class="bdpage" style="background: #fff;border-radius: 8px;padding-top: 50px;">
|
||||
<div class="bd_main bd_main1 bd_main2">
|
||||
<h1 class="t1 sfbt1">{:lang('批量购买')}</h1>
|
||||
<form action="" method="post" autocomplete="off">
|
||||
<!--内容-->
|
||||
<div class="bd_ct ">
|
||||
<div class="bd_from" style="padding: 0 16px;">
|
||||
<div class="theit">
|
||||
<div class="bditem">
|
||||
<label class="itlable">{:lang('公司名称')}<span class="redtag">*</span></label>
|
||||
<input type="text" name="corp_name" class="form-control itinp companyName" placeholder="{:lang('法定营业名称')}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="theit">
|
||||
<div class="bditem">
|
||||
<label class="itlable">{:lang('官方网站')}</label>
|
||||
<input type="text" name="url" class="form-control itinp url" placeholder="{:lang('请粘贴网址')}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="theit">
|
||||
<div class="bditem">
|
||||
<label class="itlable">{:lang('姓名')}<span class="redtag">*</span></label>
|
||||
<input type="text" name="first_name" class="form-control itinp firstname" placeholder="{:lang('名')}">
|
||||
<input type="text" name="last_name" class="form-control itinp lastname" placeholder="{:lang('姓')}" style="margin-top: 8px;">
|
||||
</div>
|
||||
</div>
|
||||
<div class="theit">
|
||||
<div class="bditem">
|
||||
<label class="itlable">{:lang('邮箱')}<span class="redtag">*</span></label>
|
||||
<input type="text" name="email" class="form-control itinp email" placeholder="{:lang('请输入邮箱')}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="theit">
|
||||
<div class="bditem bditem1">
|
||||
<label class="itlable">{:lang('电话号码')}</label>
|
||||
<input type="text" name="phone" class="form-control itinp phone" placeholder="{:lang('请输入电话号码')}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="theit">
|
||||
<div class="bditem bditem1">
|
||||
<label class="itlable">{:lang('您对哪个产品品类感兴趣?')}</label>
|
||||
<div class="sfbchecks">
|
||||
{notempty name="interested"}
|
||||
{volist name="interested" id="it"}
|
||||
<label class="cit">
|
||||
<input name="interested" type="checkbox" value="{$it}" class="sfbcheckboxit" />{$it}
|
||||
</label>
|
||||
{/volist}
|
||||
{/notempty}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="theit">
|
||||
<div class="bditem bditem1">
|
||||
<label class="itlable">{:lang('留言')}<span class="redtag">*</span></label>
|
||||
<textarea name="message" class="ittextarea ittextarea2 message" placeholder="{:lang('请输入留言')}"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 提交-->
|
||||
<div class="bttj" id="send">{:lang('提交')}</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
{block name="script"}
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
$("#send").click(function(){
|
||||
var form = $(this).parents("form");
|
||||
$.ajax({
|
||||
url: "{:url('contactus/bulkbuy')}",
|
||||
type: "post",
|
||||
dataType: "json",
|
||||
data: form.serialize(),
|
||||
success: function(r){
|
||||
if(r.code == 0){
|
||||
form.get(0).reset();
|
||||
}
|
||||
alert(r.msg);
|
||||
},
|
||||
error: function(e){
|
||||
console.error(e);
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
||||
</script>
|
||||
{/block}
|
||||
Reference in New Issue
Block a user