123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- <!DOCTYPE html>
- <html>
- <head lang="en">
- <include file="./Application/Home/View/Common/head_include.html" />
- <title>幻速-招募城市合伙人,赛车竞速馆、体验店加盟介绍-厦门欣富地智能科技</title>
- </head>
- <body>
- <include file="./Application/Home/View/Common/head.html" />
- <div class="main_div">
- <img src="https://img.x-motion.cn/home/image/join_22.jpg">
- <img src="https://img.x-motion.cn/home/image/join_16.jpg">
- <img src="https://img.x-motion.cn/home/image/join_23.jpg">
- <img src="https://img.x-motion.cn/home/image/join_20.jpg">
- <img src="https://img.x-motion.cn/home/image/join_11.jpg">
- <img src="https://img.x-motion.cn/home/image/join_24.jpg">
- <img src="https://img.x-motion.cn/home/image/join_25.jpg">
- <img src="https://img.x-motion.cn/home/image/join_8.jpg">
- <!--<img src="https://img.x-motion.cn/home/image/join_9.jpg">-->
- <a href="{:U('about/store')}">
- <img src="https://img.x-motion.cn/home/image/join_14.jpg">
- </a>
- <div class="message_div join_div">
- <form action="" id="message_form" method="post">
- <div class="join_title">咨询留言</div>
- <div class="join_title2">请填写以下信息,我们将安排专业的客服与您联系</div>
- <div class="message_input">
- <span>*</span>
- <span>姓 名:</span>
- <input type="text" name="name" id="name" placeholder="请输入您的姓名" value="">
- <span class="error"></span>
- </div>
- <div class="message_input">
- <span>*</span>
- <span>手 机:</span>
- <input type="text" name="tel" id="tel" placeholder="请输入您的真实电话号码" value="">
- <span class="error"></span>
- </div>
- <div class="message_input">
- <span></span>
- <span>意向方式:</span>
- <input type="text" name="intention" id="intention" placeholder="请输入合作意向" value="">
- <span class="error"></span>
- </div>
- <div class="message_input">
- <span></span>
- <span>所在城市:</span>
- <input type="text" name="city" id="city" placeholder="请输入您所在的城市" value="">
- <span class="error"></span>
- </div>
- <div class="message_input textarea">
- <span>*</span>
- <span>留 言:</span>
- <textarea name="content" id="content" placeholder="您有什么想告诉我们的?"></textarea>
- <span class="error"></span>
- </div>
- <div class="submit">
- <a href="javascript:void(0);" id="submit">
- <img src="https://img.x-motion.cn/home/image/message_button.jpg">
- </a>
- </div>
- </form>
- </div>
- </div>
- <include file="./Application/Home/View/Common/footer_logo.html" />
- <include file="./Application/Home/View/Common/footer.html" />
- </body>
- <script type="text/javascript">
- $(document).ready(function() {
- $('#submit').on('click', function(){
- $("#submit").attr('disabled', true);
- var check_key = {
- name:'',
- tel:'',
- content:''
- };
- var data = {
- name: $('#name').val(),
- tel: $('#tel').val(),
- intention: $('#intention').val(),
- city: $('#city').val(),
- content: $('#content').val()
- };
- var status = true;
- if(!isPoneAvailable(data["tel"])){
- error = $('#tel').siblings('.error');
- $(error).html('号码错误');
- status = false;
- }
- for (var Key in check_key){
- if(data[Key] == ''){
- error = $('#' + Key).siblings('.error');
- $(error).html('请填写');
- status = false;
- }
- }
- if(status == false){
- $("#submit").removeAttr('disabled');
- return false;
- }
- $.ajax({
- type: "post",
- url: "{:U(CONTROLLER_NAME . '/' . ACTION_NAME)}",
- data: {data: data},
- success: function (data) {
- if (data.status == '1') {
- layer.msg('提交成功!');
- setTimeout( function(){
- window.location.href = location.href;
- }, 2 * 1000 );
- } else if (data.status == '0') {
- parent.layer.msg(data.info, {icon: 5});
- }
- $("#submit").removeAttr('disabled');
- }
- });
- });
- $('.message_input input').on('focus', function(){
- $(this).siblings('.error').html('');
- });
- $('.message_input textarea').on('focus', function(){
- $(this).siblings('.error').html('');
- });
- });
- function isPoneAvailable(phone) {
- var myreg = /^[1][3,4,5,7,8][0-9]{9}$/;
- if (!myreg.test(phone)) {
- return false;
- } else {
- return true;
- }
- }
- </script>
- </html>
|