coupon.html 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. <!DOCTYPE html>
  2. <head>
  3. <meta charset="utf-8">
  4. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  5. <title>鲸致生活-上汽乘用车券领取</title>
  6. <meta name="description" content="鲸致生活-上汽乘用车券领取">
  7. <meta name="viewport"
  8. content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
  9. <link
  10. rel="stylesheet"
  11. href="https://cdn.jsdelivr.net/npm/vant@2.12/lib/index.css"
  12. />
  13. <link rel="stylesheet" href="../auto/css/main.css">
  14. <link rel="stylesheet" href="../auto/css/normalize.css">
  15. <link rel="stylesheet" href="../auto/css/magnific-popup.css">
  16. <script src="../auto/js/jquery-1.7.2.min.js"></script>
  17. <script src="../auto/js/modernizr-2.6.2.min.js"></script>
  18. <script src="../auto/js/viewport.js"></script>
  19. <script src="../auto/js/config.js"></script>
  20. <script src="../auto/js/main.js"></script>
  21. <script src="../auto/js/jquery.magnific-popup.min.js"></script>
  22. <script src="https://cdn.jsdelivr.net/npm/vue@2.6/dist/vue.min.js"></script>
  23. <script src="https://cdn.jsdelivr.net/npm/vant@2.12/lib/vant.min.js"></script>
  24. <style>
  25. .hidden {
  26. display: none;
  27. }
  28. .read{
  29. padding: 0 10px;
  30. /* font-size: 13px; */
  31. position: absolute;
  32. bottom: 10px;
  33. }
  34. .read .title{
  35. text-align: center;
  36. }
  37. .read .header{
  38. font-weight: 600;
  39. }
  40. /*.read .content{
  41. font-size: 11px;
  42. }*/
  43. .line{
  44. position: relative;
  45. /* width: 100px; */
  46. top: -15px;
  47. text-align: center;
  48. background-color: #fff;
  49. margin: 0 auto;
  50. }
  51. </style>
  52. </head>
  53. <body class="kb-bg">
  54. <div class="top"></div>
  55. <div class="steps">
  56. <div class="item">
  57. <div class="step color-back-blue">
  58. <div class="value">1</div>
  59. </div>
  60. <div class="bt color-blue">区域校验</div>
  61. </div>
  62. <hr class="hr"></hr>
  63. <div class="item">
  64. <div class="step color-back-black">
  65. <div class="value">2</div>
  66. </div>
  67. <span class="bt color-black">补贴申领</span>
  68. </div>
  69. <hr class="hr"></hr>
  70. <div class="item">
  71. <div class="step color-back-gray">
  72. <div class="value">3</div>
  73. </div>
  74. <span class="bt color-gray">补贴兑换</span>
  75. </div>
  76. </div>
  77. <div class="notice">
  78. <img src="../auto/img/icon/notice.png" class="notice-icon"/>
  79. <div style="font-size: 24px;" >每人每月补贴9元,限100份</div>
  80. </div>
  81. <!-- <div class="notice">
  82. <div style="font-size: 24px;text-align: center;" class="color-gray">每人每月补贴9元,限100份</div>
  83. </div> -->
  84. <main>
  85. <div id="scan-integral">
  86. <form name="bindingtelPhoneForm" action="" style="margin-top: 50px;">
  87. <div class="input-from">
  88. <!-- <label class="label">手机号:</label> -->
  89. <input class="input-arrow required" style="height: 100px;border-radius: 50px;background: #F7F8FA;border: 0px;padding-left: 50px;" type="text" id="mobile" maxlength="11" placeholder="请输入您的手机号"/>
  90. </div>
  91. <div class="input-from" style="margin-top: 30px;">
  92. <!-- <label class="label">工牌号:</label> -->
  93. <input class="input-arrow required" style="height: 100px;border-radius: 50px;background: #F7F8FA;border: 0px;padding-left: 50px;" type="text" id="sno" maxlength="10" placeholder="请输入您的工牌号"/>
  94. </div>
  95. <div class="input-from" style="margin-top: 30px;">
  96. <button type="button" class="btn" style="margin-top: 20px;" onclick="getCoupon()">立即申请</button>
  97. </div>
  98. </form>
  99. <div class="footer">
  100. <!-- <img src="../auto/img/logo.png"/> -->
  101. <div class="img"></div>
  102. <fieldset class="marker">
  103. <legend>领先的互联网家政服务商</legend>
  104. </fieldset>
  105. </div>
  106. </div>
  107. <!-- 使用说明
  108. <div class="read">
  109. <div class="title">
  110. <hr />
  111. <div class="line">使用说明</div>
  112. </div>
  113. <p class="header" style="margin-top: 10px;">*服务范围查询</p>
  114. <p class="content">①选择您所在的城市</p>
  115. <p class="content">②输入您的详细地址 市-镇-小区</p>
  116. <p class="content">③点击“服务范围查询”</p>
  117. <p class="content">④如果地址在服务范围内,将会跳转券码页</p>
  118. <p class="content">⑤如果地址不在服务范围内,提示“不在服务范围内”</p>
  119. </div>-->
  120. </main>
  121. <script type="text/javascript">
  122. // import { Dialog } from 'vant';
  123. function getCoupon(){
  124. var mobile = $("#mobile").val();
  125. if (typeof(mobile) == "undefined"||mobile == "") {
  126. vant.Dialog({message: '请输入手机号' });
  127. // messageCheckModal("请输入手机号",'check-common',null,"确定")
  128. return;
  129. }
  130. var sno = $("#sno").val();
  131. if (sno == "") {
  132. vant.Dialog({message: '请输入您的工号' });
  133. // messageCheckModal("请输入您的工号",'',null,"确定")
  134. return;
  135. }
  136. let type=(getQueryString('type')==null||getQueryString('type')=='null')?0:getQueryString('type');
  137. console.info(type)
  138. let url=getBaseUrl()+"/admin/saicgroup/getCoupon?mobile="+mobile+"&sno="+sno+"&type="+type;
  139. $.ajax({
  140. type: 'get',
  141. dataType: "json",
  142. url: url,
  143. cache: false,
  144. async: false,
  145. success: function (data) {
  146. if (data.errno == 0)
  147. window.location.href='https://zhaijieshi-3guecm78383ca692-1307626841.tcloudbaseapp.com/auto/sq.html?no='+data.data;
  148. else if(data.errno==7||data.errmsg.indexOf('领光')>=0)//领光了
  149. window.location.href='end.html';
  150. else
  151. vant.Dialog({message: data.errmsg });
  152. },
  153. error: function (XMLHttpRequest, textStatus, errorThrown) {
  154. }
  155. });
  156. }
  157. //获取url参数
  158. function getQueryString(name) {
  159. var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
  160. var r = window.location.search.substr(1).match(reg);
  161. if (r != null) {
  162. return unescape(r[2]);
  163. }
  164. return null;
  165. }
  166. function goClose(){
  167. $('.message').addClass('hidden');
  168. }
  169. </script>
  170. </body>
  171. </html>