feat: mobile成功分销商页面
This commit is contained in:
@@ -162,9 +162,9 @@ class ContactUs extends Common
|
||||
'ip' => request()->ip(),
|
||||
]);
|
||||
if ($ret->isEmpty()) {
|
||||
return error(lang('contact_distributor.send_fail'));
|
||||
return error(lang('信息提交失败!'));
|
||||
}
|
||||
return success(lang('contact_distributor.send_success'));
|
||||
return success(lang('信息已成功提交!'));
|
||||
}
|
||||
|
||||
// 获取企业规模
|
||||
|
||||
@@ -32,6 +32,9 @@ return [
|
||||
'行业' => 'Industry',
|
||||
'询问内容' => 'Inquiry',
|
||||
'提交' => 'SUBMIT',
|
||||
'信息已成功提交!' => 'Add Success!',
|
||||
'信息提交失败!' => 'Add Fail!',
|
||||
|
||||
// 验证器中文本
|
||||
'validate_first_name_require' => '名不能为空',
|
||||
'validate_first_name_max' => '名不能超过64个字符',
|
||||
@@ -60,4 +63,36 @@ return [
|
||||
'全站搜索' => 'Search',
|
||||
'搜索' => 'Search',
|
||||
'请搜索' => 'Please search...',
|
||||
|
||||
// 成为分销商页面
|
||||
'成为经销商' => 'Become a Distributor',
|
||||
'准备好加入我们了吗?<br> 在下面输入您的详细信息,我们的销售团队将在2个工作日内回复您。' => 'Ready to join us?<br/>Enter your details below and our Sales team will get back to you within 2 business days.',
|
||||
'公司名称' => 'Company Name',
|
||||
'请输入公司名称' => 'Enter your Company Name',
|
||||
'电子邮件' => 'Contact Email',
|
||||
'请输入邮箱' => 'Enter your Email',
|
||||
'电话号码' => 'Phone Number',
|
||||
'请输入电话号码' => 'Enter your Phone Number',
|
||||
'业务类型' => 'Type of Business',
|
||||
'在线商店网址' => 'Online Store URL',
|
||||
'企业规模' => 'Enterprise Size',
|
||||
'公司地址' => 'Company Address',
|
||||
'请输入地址' => 'Enter Address',
|
||||
'留言' => 'Message',
|
||||
'请输入留言' => 'Enter your message',
|
||||
// 成为分销商验证器提示
|
||||
'公司名称不能为空' => 'Company Name is required',
|
||||
'公司名称不能超过64个字符' => 'Company Name cannot exceed 64 characters',
|
||||
'邮箱不能为空' => 'Email is required',
|
||||
'邮箱格式不正确' => 'Email format is incorrect',
|
||||
'邮箱不能超过128个字符' => 'Email cannot exceed 128 characters',
|
||||
'电话号码不能为空' => 'Phone Number is required',
|
||||
'电话号码不能超过64个字符' => 'Phone Number cannot exceed 64 characters',
|
||||
'业务类型不能为空' => 'Type of Business is required',
|
||||
'业务类型不能超过128个字符' => 'Type of Business cannot exceed 128 characters',
|
||||
'企业规模不能为空' => 'Enterprise Size is required',
|
||||
'企业规模不能超过128个字符' => 'Enterprise Size cannot exceed 128 characters',
|
||||
'公司地址不能为空' => 'Company Address is required',
|
||||
'公司地址不能超过255个字符' => 'Company Address cannot exceed 255 characters',
|
||||
'留言不能为空' => 'Message is required',
|
||||
];
|
||||
@@ -30,19 +30,19 @@ class ContactUsDistributorValidate extends Validate
|
||||
* @var array
|
||||
*/
|
||||
protected $message = [
|
||||
'corp_name.require' => 'contact_distributor.validate_name_required',
|
||||
'corp_name.max' => 'contact_distributor.validate_name_max',
|
||||
'email.require' => 'contact_distributor.validate_email_required',
|
||||
'email.email' => 'contact_distributor.validate_email_email',
|
||||
'email.max' => 'contact_distributor.validate_email_max',
|
||||
'phone.require' => 'contact_distributor.validate_phone_required',
|
||||
'phone.max' => 'contact_distributor.validate_phone_max',
|
||||
'business_type.require' => 'contact_distributor.validate_business_type_required',
|
||||
'business_type.max' => 'contact_distributor.validate_business_type_max',
|
||||
'enterprise_size.require' => 'contact_distributor.validate_enterprise_size_required',
|
||||
'enterprise_size.max' => 'contact_distributor.validate_enterprise_size_max',
|
||||
'address.require' => 'contact_distributor.validate_address_required',
|
||||
'address.max' => 'contact_distributor.validate_address_max',
|
||||
'message.require' => 'contact_distributor.validate_message_required',
|
||||
'corp_name.require' => '公司名称不能为空',
|
||||
'corp_name.max' => '公司名称不能超过64个字符',
|
||||
'email.require' => '邮箱不能为空',
|
||||
'email.email' => '邮箱格式不正确',
|
||||
'email.max' => '邮箱不能超过128个字符',
|
||||
'phone.require' => '电话号码不能为空',
|
||||
'phone.max' => '电话号码不能超过64个字符',
|
||||
'business_type.require' => '业务类型不能为空',
|
||||
'business_type.max' => '业务类型不能超过128个字符',
|
||||
'enterprise_size.require' => '企业规模不能为空',
|
||||
'enterprise_size.max' => '企业规模不能超过128个字符',
|
||||
'address.require' => '公司地址不能为空',
|
||||
'address.max' => '公司地址不能超过255个字符',
|
||||
'message.require' => '留言不能为空',
|
||||
];
|
||||
}
|
||||
|
||||
7
app/index/view/mobile/about_us/introduction.html
Normal file
7
app/index/view/mobile/about_us/introduction.html
Normal file
@@ -0,0 +1,7 @@
|
||||
{extend name="public/base" /}
|
||||
{block name="style"}
|
||||
<link rel="stylesheet" type="text/css" href="css/introduction.css" />
|
||||
{/block}
|
||||
{block name="main"}
|
||||
|
||||
{/block}
|
||||
107
app/index/view/mobile/contact_us/distributor.html
Normal file
107
app/index/view/mobile/contact_us/distributor.html
Normal file
@@ -0,0 +1,107 @@
|
||||
{extend name="public/base" /}
|
||||
{block name="style"}
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/contactus_distributor.css" />
|
||||
{/block}
|
||||
{block name="main"}
|
||||
<div class="oricoEGapp">
|
||||
<!-- 内容-->
|
||||
<div class="cooperapp_bdpage" style="background:#F2F2F2;">
|
||||
<div class="cooperapp_bd_main" style="margin-top: 60px;">
|
||||
<form action="" method="post">
|
||||
<h1 class="cooperapp_t1">{:lang('成为经销商')}</h1>
|
||||
<p class="cooperapp_s1">{:lang('准备好加入我们了吗?<br> 在下面输入您的详细信息,我们的销售团队将在2个工作日内回复您。')}</p>
|
||||
<!--内容-->
|
||||
<div class="bd_ct cooperapp_bd_ct">
|
||||
<div class="thimg">
|
||||
<img src="__IMAGES__/distributor_focus_image.webp" alt="" srcset="" class="cooperapp_bdimg">
|
||||
</div>
|
||||
<div class="bd_from">
|
||||
<div class="theit">
|
||||
<div class="bditem">
|
||||
<label class="itlable">{:lang('公司名称')}<span class="redtag">*</span></label>
|
||||
<input type="text" class="form-control itinp companyName" placeholder="{:lang('请输入公司名称')}" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="theit">
|
||||
<div class="bditem">
|
||||
<label class="itlable">{:lang('电子邮件')}<span class="redtag">*</span></label>
|
||||
<input type="text" class="form-control itinp email" placeholder="{:lang('请输入邮箱')}" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="theit">
|
||||
<div class="bditem bditem1">
|
||||
<label class="itlable">{:lang('电话号码')}<span class="redtag">*</span></label>
|
||||
<input type="text" class="form-control itinp mphone" placeholder="{:lang('请输入电话号码')}" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="theit">
|
||||
<div class="bditem">
|
||||
<label class="itlable">{:lang('业务类型')}<span class="redtag">*</span></label>
|
||||
<select name="business_type" class="form-control itinp business_type">
|
||||
{volist name="types" id="ty"}
|
||||
<option value="{$ty.value}">{$ty.name}</option>
|
||||
{/volist}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="theit">
|
||||
<div class="bditem">
|
||||
<label class="itlable">{:lang('在线商店网址')}</label>
|
||||
<input type="text" class="form-control itinp url" placeholder="{:lang('请输入网址')}" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="theit">
|
||||
<div class="bditem bditem1">
|
||||
<label class="itlable">{:lang('企业规模')}<span class="redtag">*</span></label>
|
||||
<select name="enterprise_size" data-pf-type="FormInput" class="form-control itinp enterprise_size">
|
||||
{volist name="sizes" id="si"}
|
||||
<option value="{$si.value}">{$si.name}</option>
|
||||
{/volist}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="theit">
|
||||
<div class="bditem bditem1">
|
||||
<label class="itlable">{:lang('公司地址')}<span class="redtag">*</span></label>
|
||||
<input type="text" class="form-control itinp address" placeholder="{:lang('请输入地址')}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="theit">
|
||||
<div class="bditem bditem1">
|
||||
<label class="itlable">{:lang('留言')}<span class="redtag">*</span></label>
|
||||
<textarea class="ittextarea 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/distributor')}",
|
||||
type: "post",
|
||||
data: form.serialize(),
|
||||
dataType: "json",
|
||||
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