custom-joinIndex.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <!doctype html>
  2. <html>
  3. <?php include 'head.php'; ?>
  4. <body>
  5. <?php
  6. /*Template Name: Custom JoinIndex*/
  7. get_header();
  8. ?>
  9. <div class="ny_join">
  10. <div class="box">
  11. <p>
  12. <img src="/wp-content/ueditor/php/upload/image/20200216/1581847576824131.jpg" title="1581847576824131.jpg" alt="加盟BAN.jpg">
  13. <img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/1581847581166303.jpg" title="1581847581166303.jpg" alt="箭冠汽配216.jpg">
  14. </p>
  15. <p><img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/1611815505611501.jpg" title="1611815505611501.jpg" alt="join_06.jpg"></p>
  16. </div>
  17. <div class="box">
  18. <img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/join_08.jpg">
  19. <?php include 'commentFormMini.php'; ?>
  20. </div>
  21. </div>
  22. <?php get_footer(); ?>
  23. <script>
  24. jQuery(document).ready(function($) {
  25. $('#contact-form').submit(function(e) {
  26. e.preventDefault();
  27. if($("#rename").val()==''){
  28. alert('请输入联系人姓名!');
  29. return
  30. }
  31. if($("#phone").val()==''){
  32. alert('请输入联系电话!');
  33. return
  34. }
  35. $.ajax({
  36. url: $(this).attr('action'),
  37. type: 'post',
  38. data: {
  39. action: 'submit_custom_comment',
  40. comment_data: $(this).serialize()
  41. },
  42. success: function(response) {
  43. alert('提交成功!');
  44. $('#contact-form')[0].reset();
  45. },
  46. error: function() {
  47. alert('提交失败,请重试.');
  48. }
  49. });
  50. });
  51. });
  52. </script>
  53. </body>
  54. </html>