nocover.html 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  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. </head>
  25. <body class="kb-bg">
  26. <div class="top">
  27. </div>
  28. <div class="notice-nocover">
  29. 尚未覆盖地区
  30. <div style="font-size: 24px;margin-top:12px;line-height: 38px;" class="color-gray">鲸致生活会统计未覆盖区域的人数,人数足够将会以专属
  31. 优惠价开团,为小伙伴们集中提供服务</div>
  32. </div>
  33. <main>
  34. <div id="scan-integral">
  35. <form name="bindingtelPhoneForm" action="">
  36. <div class="input-from">
  37. <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="请输入您的手机号"/>
  38. </div>
  39. <div class="input-from">
  40. <label class="label">选择家政需求:</label>
  41. <div style="display: inline-flex;">
  42. <img src="../auto/img/icon/people.png" style="width: 24px;height:30px;margin: auto;"/>
  43. <select id="city" class="select" name="city" style="width: 90%;margin-left:0;border: 0px;">
  44. <option disabled selected value=''>请选择家政需求</option>
  45. <option value="保洁">日常保洁</option>
  46. <option value="家电清洗">家电清洗</option>
  47. <option value="保姆月嫂">保姆月嫂</option>
  48. </select>
  49. <span style="line-height: 70px;color: #A4ABB3;">></span>
  50. </div>
  51. </div>
  52. <hr style="border: none;height: 1px;border-top: 1px solid #EEEEEE;"></hr>
  53. <div class="input-from">
  54. <button type="button" id="btn" class="btn" onclick="checkAddress()">立即提交</button>
  55. </div>
  56. </form>
  57. </div>
  58. <div class="footer">
  59. <!-- <img src="../auto/img/logo.png"/> -->
  60. <div class="img"></div>
  61. <fieldset class="marker">
  62. <legend>领先的互联网家政服务商</legend>
  63. </fieldset>
  64. </div>
  65. </main>
  66. <script type="text/javascript">
  67. $(function () {
  68. //messageCheckFailModal("错误信息",null,"address")
  69. $('#city').change(function () {
  70. var city = $("#city").val();
  71. if (city == '')
  72. $('#city').css("color", "#999");
  73. else
  74. $('#city').css("color", "#4c4c4c");
  75. })
  76. $('#city').change();
  77. });
  78. function checkAddress(){
  79. var mobile = $("#mobile").val();
  80. if (typeof(mobile) == "undefined"||mobile == "") {
  81. vant.Dialog({
  82. message: '请输入手机号' });
  83. // messageCheckModal("请输入手机号",'check-common',null,"确定")
  84. return;
  85. }
  86. var city = $("#city").val();
  87. if (!city||typeof(city) == "undefined"||city == "") {
  88. vant.Dialog({
  89. message: '请选择家政需求' });
  90. // messageCheckModal("请选择家政需求","check-common",null,'确定');
  91. return;
  92. }
  93. var paras={
  94. "address": getQueryString('address'),
  95. "goods": city,
  96. "mobile": mobile
  97. }
  98. let url=getBaseUrl()+"/admin/saicgroup/interest";
  99. $.ajax({
  100. type: 'post',
  101. contentType: "application/json",
  102. dataType: "json",
  103. data:JSON.stringify(paras),
  104. url: url,
  105. cache: false,
  106. async: false,
  107. success: function (data) {
  108. if (data.errno == 0) {
  109. // vant.Dialog({
  110. // message: '长按识别二维码,添加专属客服' });
  111. messageNoCoverModal("长按识别二维码,添加专属客服",null);
  112. $('#btn').attr('disabled','disabled');
  113. $('#btn').addClass("color-back-gray")
  114. }
  115. },
  116. error: function (XMLHttpRequest, textStatus, errorThrown) {
  117. }
  118. });
  119. }
  120. function goNext(){
  121. let type=getQueryString('type');//0 119保洁 1 144品类
  122. if(type==null) type=0;
  123. window.location.href='coupon.html?type='+type;
  124. }
  125. function goClose(){
  126. $('.message').addClass('hidden');
  127. }
  128. //获取url参数
  129. function getQueryString(name) {
  130. var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
  131. var r = window.location.search.substr(1).match(reg);
  132. if (r != null) {
  133. return decodeURI(r[2]);
  134. }
  135. return null;
  136. }
  137. </script>
  138. </body>
  139. </html>