酷店app

expert.html 6.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0,minimum-scale=1.0,user-scalable=0" />
  6. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  7. <title>品牌招商申请表</title>
  8. <link rel="stylesheet" href="./common/reset.css">
  9. <link rel="stylesheet" href="./assert/css/expert.css?v=1.0.1">
  10. <script>
  11. document.documentElement.style.fontSize=document.documentElement.clientWidth/375*100+"px";
  12. window.onresize=function(){
  13. document.documentElement.style.fontSize=document.documentElement.clientWidth/375*100+"px";
  14. }
  15. </script>
  16. </head>
  17. <body>
  18. <div class="item">
  19. <div class="title">
  20. <span class="star">*</span><span class="text">所属类目(多选)</span>
  21. </div>
  22. <ul class="checkbox" id="cate_id">
  23. <label class="ci-check-lable">
  24. <input type="checkbox" name="彩妆护肤"><i></i>
  25. <span>彩妆护肤</span>
  26. </label>
  27. <label>
  28. <input type="checkbox" name="身体护肤"><i></i>
  29. <span>身体护肤</span>
  30. </label>
  31. <label>
  32. <input type="checkbox" name="母婴生活"><i></i>
  33. <span>母婴生活</span>
  34. </label>
  35. <label>
  36. <input type="checkbox" name="营养健康"><i></i>
  37. <span>营养健康</span>
  38. </label>
  39. <label>
  40. <input type="checkbox" name="服装"><i></i>
  41. <span>服装</span>
  42. </label>
  43. <label>
  44. <input type="checkbox" name="其他"><i></i>
  45. <span>其他</span>
  46. </label>
  47. </ul>
  48. </div>
  49. <div class="item">
  50. <div class="title">
  51. <span class="star">*</span><span class="text">公司名称</span>
  52. </div>
  53. <ul>
  54. <textarea placeholder="请输入公司名称" name="" id="compony" rows="1"></textarea>
  55. </ul>
  56. </div>
  57. <div class="item">
  58. <div class="title">
  59. <span class="star">*</span><span class="text">贸易方式(多选)</span>
  60. </div>
  61. <ul class="checkbox" id="trade_type">
  62. <label class="ci-check-lable">
  63. <input type="checkbox" name="1"><i></i>
  64. <span>保税</span>
  65. </label>
  66. <label>
  67. <input type="checkbox" name="2"><i></i>
  68. <span>直邮</span>
  69. </label>
  70. <label>
  71. <input type="checkbox" name="3"><i></i>
  72. <span>完税进口</span>
  73. </label>
  74. <label>
  75. <input type="checkbox" name="4"><i></i>
  76. <span>国内行货</span>
  77. </label>
  78. </ul>
  79. </div>
  80. <div class="item">
  81. <div class="title">
  82. <span class="star">*</span><span class="text">一件代发</span>
  83. </div>
  84. <ul class="radio">
  85. <label class="ci-check-lable">
  86. <input class="radio" type="checkbox" name="1" id="cate"><i></i>
  87. <span>支持</span>
  88. </label>
  89. <label>
  90. <input class="radio" type="checkbox" name="0" id="cate"><i></i>
  91. <span>不支持</span>
  92. </label>
  93. </ul>
  94. </div>
  95. <div class="item">
  96. <div class="title">
  97. <span class="star">*</span><span class="text">联系人</span>
  98. </div>
  99. <ul>
  100. <textarea placeholder="请您输入联系人" name="" id="contact_name" rows="1"></textarea>
  101. </ul>
  102. </div>
  103. <div class="item">
  104. <div class="title">
  105. <span class="star">*</span><span class="text">联系电话</span>
  106. </div>
  107. <ul>
  108. <textarea placeholder="请您输入正确的11位电话" name="" id="tel" rows="1"></textarea>
  109. </ul>
  110. </div>
  111. <div class="item">
  112. <div class="title">
  113. <span class="star">*</span><span class="text">留言备注</span>
  114. </div>
  115. <ul>
  116. <textarea placeholder="请您输入您的留言" name="" id="note" rows="6"></textarea>
  117. </ul>
  118. </div>
  119. <button>立即合作</button>
  120. <div class="alert-info" style="display: none;">
  121. <!-- tip提示,2s后消失 -->
  122. <p></p>
  123. </div>
  124. <script src="./common/jquery-2.1.0.js"></script>
  125. <script>
  126. var cate_id=[],compony_name="",trade_type=[]
  127. var myreg = /^[0-9]{11}$/;
  128. $("button").on("click",function(){
  129. cate_id=[],trade_type=[]
  130. if($(".checkbox").find(".on").length<=0) {
  131. showMsg("请完整填写");
  132. return false;
  133. }else if($(".radio").find(".on").length<=0) {
  134. showMsg("请完整填写")
  135. }else if(!$("#compony").val()||!$("#contact_name").val()||!$("#tel").val()||!$("#note").val()) {
  136. showMsg("请完整填写")
  137. }else if(!myreg.test($("#tel").val())) {
  138. showMsg("请正确填写手机号")
  139. }else {
  140. $("#cate_id .on").each(function(index,item){
  141. cate_id.push($(item).attr("name"))
  142. })
  143. $("#trade_type .on").each(function(index,item) {
  144. trade_type.push($(item).attr("name"))
  145. })
  146. send()
  147. }
  148. })
  149. $("input").on("click",function(){
  150. $(this).toggleClass("on")
  151. })
  152. function send() {
  153. var data={
  154. "cate_id":cate_id,
  155. "company_name":$("#compony").val(),
  156. "trade_type":trade_type,
  157. "if_one_send":$(".radio .on").attr("name"),
  158. "contact_name":$("#contact_name").val(),
  159. "tel":$("#tel").val(),
  160. "note":$("#note").val()
  161. }
  162. $.ajax({
  163. url:'/api/busInvite',
  164. type:'post',
  165. dataType:'json',
  166. headers:{
  167. "source":1000
  168. },
  169. data:data,
  170. success:function (res){
  171. if(res.errno == 0){
  172. showMsg("提交成功")
  173. }else{
  174. showMsg(res.err)
  175. }
  176. },
  177. error:function (err){
  178. $("#loading").hide();
  179. }
  180. })
  181. }
  182. //提示信息
  183. function showMsg(msg) {
  184. var msg = msg;
  185. var msgBox = $('.alert-info');
  186. msgBox.children('p').text(msg);
  187. msgBox.show();
  188. setTimeout(function() {
  189. msgBox.hide();
  190. }, 2000);
  191. }
  192. </script>
  193. </body>
  194. </html>