leaflet.php 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588
  1. <?$this->title = '房源查询';?>
  2. <!doctype html>
  3. <html lang="en">
  4. <head>
  5. <meta charset="UTF-8">
  6. <title>房源查询</title>
  7. <meta name="viewport" content="width=device-width, initial-scale=1" />
  8. <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport" />
  9. <!-- UC强制全屏 -->
  10. <meta name="full-screen" content="yes">
  11. <!-- QQ强制全屏 -->
  12. <meta name="x5-fullscreen" content="true">
  13. <meta name="apple-mobile-web-app-capable" content="yes">
  14. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  15. <meta name="format-detection" content="telephone=no" />
  16. <link rel="stylesheet" href="/css/public/public.css">
  17. <link rel="stylesheet" href="/js/banner/swiper-3.4.2.min.css">
  18. <link rel="stylesheet" href="/js/alert/alert.css">
  19. <script src="/js/jquery-3.2.1.min.js"></script>
  20. <script src="/js/alert/alert.js"></script>
  21. <script src="/js/applyVerify.js"></script>
  22. <script src="/js/banner/swiper-3.4.2.min.js"></script>
  23. <script type="text/javascript" src="/js/signup/iscroll.js"></script>
  24. <script type="text/javascript" src="/js/signup/navbarscroll.js"></script>
  25. <style>
  26. .max_box{max-width:640px;margin:auto;min-width:320px;position: relative;}
  27. .max_box img{display:block;}
  28. .demand_box{width:100%;position:fixed;top:0;background:#F7F7F7;}
  29. .demand_box_gb{position:absolute;top:0;right:0;width:40px;height:40px;z-index:10000;}
  30. .demand_box_gb img{width:100%;display:block;}
  31. .demand{width:90%;height:100%;margin:auto;position:relative;overflow:hidden;}
  32. .demand_title{font-size:1.5rem;color:#333;text-align:center;margin-top:15%}
  33. /*价格*/
  34. .Price{margin-top:15%;}
  35. .Pricexyb{width:60%;height:40px;font-size:1rem;color:#FFF;background:#E03700;border-radius:40px;position:absolute;bottom:12%;left:50%;margin-left:-30%;text-align:center;line-height:40px;}
  36. /*户型*/
  37. #Huxing_list{background:#E03700;color:#FFF;}
  38. .Huxing{margin-top:15%;}
  39. .Huxing .Huxing_list{border:1px solid #eae7e7;float:left;border-radius:20px;width:44%;height:40px;text-align:center;line-height:40px;margin-right:12%;margin-bottom:8%;background:#FFF;font-size:1rem;color:#3A3A3A;position:relative;}
  40. .Huxing .Huxing_list:nth-child(2n){margin-right:0;}
  41. .Huxing_list img{width:17px;height:17px;position:absolute;top:-8px;right:0;}
  42. /*.Huxing_list_i{width:17px;height:17px;position:absolute;top:-8px;right:0;background:url(/image/xqdz1.png) no-repeat 0 0/ 100% 100%;}*/
  43. .NextStep{width:60%;height:40px;font-size:1rem;color:#FFF;background:#C5C5C5;border-radius:40px;position:absolute;bottom:12%;left:50%;margin-left:-30%;text-align:center;line-height:40px;}
  44. #NextStepcolor{background:#E03700;}
  45. /*区域*/
  46. .Determine{width:60%;height:40px;font-size:1rem;color:#FFF;background:#C5C5C5;border-radius:40px;position:absolute;bottom:12%;left:50%;margin-left:-30%;text-align:center;line-height:40px;}
  47. #Detecolor{background:#E03700;}
  48. .region_box{width:100%;height:62%;margin-top:10%;position:relative;overflow:hidden;}
  49. .region{width:40%;height:100%;position:absolute;top:0;left:50%;margin-left:-20%;max-height:100%;overflow:auto;transition: all .4s;} /*13%*/
  50. .region li{height:60px;text-align:center;line-height:60px;font-size:1.1rem;position:relative;}
  51. .region li i{width:7px;height:7px;border-radius:20px;background:none;position:absolute;top:41%;left:26%;float:left;display:block;}
  52. #regionlii{background:#FC5C2B;}
  53. /*#region{height:38px;line-height:38px;transition: all .4s;}*/
  54. .regionli{background:#FFF;}
  55. /*#m_regionYd{left:13%;transition: all .4s;}*/
  56. #opacity{opacity:0.1}
  57. .region_City{width:67%;height:100%;position:absolute;top:0;right:0;background:#FFF;max-height:100%;overflow:auto;display: none;}
  58. .region_City li{height:45px;line-height:45px;font-size:1rem;color:#333;}
  59. .region_City li span{margin-left:30px;float:left;}
  60. .region_City li img{float:right;width:17px;height:17px;margin:13px 9px 0 0;}
  61. .i_bright{color:#E03700;}
  62. .i_dark{color:#333;}
  63. .remind{position:absolute;top:50%;left:50%;margin-top:-17.5px;margin-left:-55px;background:rgba(31, 30, 30, 0.83);border-radius:5px;width:110px;height:35px;text-align:center;line-height:35px;font-size:0.95rem;color:#FFF;display:none;}
  64. .HxRemind{position:absolute;top:50%;left:50%;margin-top:-17.5px;margin-left:-85px;background:rgba(31, 30, 30, 0.83);border-radius:5px;width:170px;height:35px;text-align:center;line-height:35px;font-size:0.95rem;color:#FFF;display:none;}
  65. #disabled{pointer-events: none;}
  66. @media screen and (min-width: 300px) and (max-width: 374px) {
  67. .Determine{height:35px;bottom:12%;}
  68. .region_box{height:60%;}
  69. /*.demand_title{margin-top:70px;}*/
  70. .region li i{left:24%;}
  71. }
  72. /*刻度尺*/
  73. .box {height:50px;position:relative;width:100%;margin:0 auto;}
  74. .wrap{min-width: 320px;max-width:768px;margin:0 auto;overflow:hidden;position:relative;}
  75. .wrapper {position:relative;height:49px;line-height:50px;width:100%;overflow: hidden;margin:0 auto;border:1px solid #ccc;border-radius:25px;
  76. background:-webkit-gradient(linear ,-25% 10%, 111% 100%,
  77. color-stop(0.14,rgb(227, 227, 227)),
  78. color-stop(0.5,rgb(255, 255, 255)),
  79. color-stop(1,rgb(229, 229, 229)) );
  80. }
  81. .wrapper .scroller {position:absolute;padding:0 48% 0 50%;}
  82. .wrapper .scroller li {float: left;width:50px;height:13px;line-height:13px;/*text-align: center;*/font-style: none;margin: 0 20px; padding:25px 0 10px;position:relative;top:5px;}
  83. /* .wrapper .scroller li:first-child {width:230px;}
  84. .wrapper .scroller li:last-child {width:210px;}*/
  85. .wrapper .scroller li span{display:block;border-left:1px solid #ccc;width:100%;height:13px;}
  86. .wrapper .scroller li span i {display:inline-block;font-size:12px;color:#9b9b9b;font-style:normal;position:absolute;top:7px;left:-10px;}
  87. .pillar {display:inline-block;width:6px;height:60px;border-radius:10px;background:rgba(224, 55, 0, 0.8);position:absolute;z-index:2;left:50%;top:-5px;margin-left:-3px;}
  88. .Price h3{text-align: center;line-height:100px;font-size:1.6rem;color:#E03700;}
  89. /*报名*/
  90. /*.xm_bm_box{width:100%;height:100%;position:fixed;top:0;left:0;z-index:100;display:none;}
  91. .xm_bm{width:80%;position:absolute;top:50%;left:50%;margin-top:-100px;margin-left:-40%;background:#FFF;z-index:200;border-radius:5px;padding-bottom:25px;}
  92. .xm_bm em{font-size:1.2rem;color:#DF4312;margin-top:20px;text-align:center;display: block;font-weight:600;letter-spacing:1px;}
  93. .xm_bm_box form{width:90%;margin:auto;margin-top:20px;}
  94. .xm_bm_box form .m_input{border:1px solid #F9DED5;width:100%;height:40px;padding:0 15px;border-radius:5px;}
  95. .xm_bm_box form .m_button{width:100%;height:40px;background:#FF6E42;border:0;margin-top:20px;border-radius:30px;font-size:1rem;color:#FFF;letter-spacing:1px;}
  96. .xm_bm_gb{display: block;width:30px;height:30px;position: absolute;top:-37px;right:-4px;}
  97. .xm_bm_zhez{width:100%;height:100%;background:rgba(33, 33, 33, 0.5);position: absolute;top:0;left:0;}
  98. .m_form{
  99. animation:change 0.8s;
  100. -webkit-animation:change 0.8s;
  101. -moz-animation:change 0.8s;
  102. }
  103. @keyframes change {
  104. 0% {left:100%;opacity:0;}
  105. 100% {opacity:1;}
  106. }
  107. -webkit-@keyframes change {
  108. 0% {left:100%;opacity:0;}
  109. 100% {opacity:1;}
  110. }
  111. -moz-@keyframes change {
  112. 0% {left:100%;opacity:0;}
  113. 100% {opacity:1;}
  114. }
  115. */
  116. .m_hqDiscount_box{width:100%;height:100%;position:fixed;top:0px;display:none;}
  117. .m_hqDiscount_zhez{background:rgba(0, 0, 0, 0.5);width:100%;height:100%;}
  118. .m_hqDiscount{background: url(/image/m_bmv1.png) no-repeat 0 0/ 100% 100%;border-radius:8px;width:335px;height:380px;margin: auto;position:absolute;bottom:50%;left:50%;margin-left:-167.5px;overflow:hidden;margin-bottom:-140px;}
  119. .m_hqDiscount_bk{width:265px;height:280px;margin:auto;margin-top:60px;position:relative;}
  120. .m_bk_title{text-align:center;}
  121. .m_bk_title span{font-size:1.3rem;color:#454545;letter-spacing:1px;}
  122. .m_bk_title i{display:block;margin:auto;width:40px;height:4px;border-radius:20px;background:#E03700;margin-top:4px;}
  123. .m_bk_style{text-align:center;margin-top:10px;font-size:1.4rem;color: #333;letter-spacing:1px;}
  124. .m_bk_text{text-align:center;margin:auto;margin-top:9px;}
  125. .m_bk_text img{width:26px;}
  126. .m_bk_text span{font-size:1rem;color: #333;letter-spacing:5px;margin:0 5px;font-size:0.8rem;color: #B9B9B9;}
  127. .m_hqDiscount_bk form{position:absolute;bottom:0;width:100%;}
  128. .m_hqDiscount_bk form input[type="text"]{border:1px solid #F1E1D3;display:block;width:100%;margin:auto;padding:0 10px;height:40px;background:#FFF;border-radius:5px;font-size:0.9rem;color:#C0C0C0;margin:12px 0;}
  129. .m_hqDiscount_bk form input[type="button"]{border:0;display:block;width:70%;margin:auto;height:40px;background:#E03700;border-radius:30px;margin-top:15px;font-size:1.05rem;color: #fff;letter-spacing:1px;}
  130. .m_hqDiscountgb{position:absolute;bottom:50%;left:50%;z-index:100;margin-bottom:-205px;margin-left:-20px;width:40px;height: 40px;}
  131. .m_hqDiscountgb img{width:100%;height:100%;}
  132. @media screen and (min-width: 300px) and (max-width: 374px) {
  133. .m_hqDiscount{width:295px;height:330px;margin-left:-147.5px;margin-top:-210px;}
  134. .m_hqDiscountgb{margin-top: 140px;}
  135. .m_hqDiscount_bk{width:225px;height:240px;}
  136. .m_bk_title span{font-size:1rem;}
  137. .m_bk_title i{width:30px;margin-top:3px;}
  138. .m_bk_style{font-size:1.1rem;}
  139. .m_bk_text span{font-size:0.7rem;}
  140. .m_bk_text img{width:22px;}
  141. .m_bk_text{margin-top:5px;}
  142. .m_hqDiscount_bk form input[type="text"]{height:35px;margin:10px 0;}
  143. .m_hqDiscount_bk form input[type="button"]{width:65%;font-size:1rem;margin-top:12px;}
  144. }
  145. .m_hqDiscount{
  146. animation:change 0.8s;
  147. -webkit-animation:change 0.8s;
  148. -moz-animation:change 0.8s;
  149. }
  150. @keyframes change {
  151. 0% {bottom:100%;opacity:0;}
  152. 100% {opacity:1;}
  153. }
  154. -webkit-@keyframes change {
  155. 0% {bottom:100%;opacity:0;}
  156. 100% {opacity:1;}
  157. }
  158. -moz-@keyframes change {
  159. 0% {bottom:100%;opacity:0;}
  160. 100% {opacity:1;}
  161. }
  162. .m_hqDiscountgb{
  163. animation:change 0.8s;
  164. -webkit-animation:change 0.8s;
  165. -moz-animation:change 0.8s;
  166. }
  167. @keyframes change {
  168. 0% {bottom:100%;opacity:0;}
  169. 100% {opacity:1;}
  170. }
  171. -webkit-@keyframes change {
  172. 0% {bottom:100%;opacity:0;}
  173. 100% {opacity:1;}
  174. }
  175. -moz-@keyframes change {
  176. 0% {bottom:100%;opacity:0;}
  177. 100% {opacity:1;}
  178. }
  179. @media screen and (max-height: 568px){
  180. .demand_title{margin-top:10%;}
  181. .region_City li{height:38px;line-height:38px;}
  182. .region li{font-size:1rem;}
  183. .Huxing .Huxing_list{margin-bottom:5%;}
  184. }
  185. </style>
  186. </head>
  187. <body>
  188. <!-- 需求定制 -->
  189. <div class="demand_box">
  190. <div class="demand_box_gb">
  191. <a href="javascript:history.back(-1)">
  192. <img src="/image/demand_gbv2.png" alt="">
  193. </a>
  194. </div>
  195. <!-- 价格 -->
  196. <div class="demand" Nextstep="1">
  197. <div class="demand_title">您打算投入的资金预算</div>
  198. <div class="Price">
  199. <h3 id="numberID">540</h3>
  200. <div class="box">
  201. <span class="pillar"></span>
  202. <div class="wrapper" id="wrapper1">
  203. <div class="scroller">
  204. <ul class="clearfix">
  205. <?php foreach ($price as $val){ ?>
  206. <li><span><i><?= $val; ?></i></span></li>
  207. <?php } ?>
  208. <!-- <li><span><i>不限</i></span></li>-->
  209. <!-- <li><span><i>100</i></span></li>-->
  210. <!-- <li><span><i>200</i></span></li>-->
  211. <!-- <li><span><i>300</i></span></li>-->
  212. <!-- <li><span><i>400</i></span></li>-->
  213. <!-- <li><span><i>500</i></span></li>-->
  214. <!-- <li><span><i>600</i></span></li>-->
  215. <!-- <li><span><i>700</i></span></li>-->
  216. <!-- <li><span><i>800</i></span></li>-->
  217. <!-- <li><span><i>900</i></span></li>-->
  218. <!-- <li><span><i>1000</i></span></li>-->
  219. </ul>
  220. </div>
  221. </div>
  222. </div>
  223. </div>
  224. <div class="Pricexyb" Nextstep="2">下一步</div>
  225. <div class="HxRemind">户型最多只能选择3项</div>
  226. </div><!-- 价格 -->
  227. <!-- 户型 -->
  228. <div class="demand" Nextstep="2" style="display:none;">
  229. <div class="demand_title">您的置业目的</div>
  230. <div class="Huxing">
  231. <!-- <?php foreach ($type as $val){ ?>
  232. <div class="Huxing_list"><span HuXing="<?= $val['id'] ?>"><?= $val['huxing_name'] ?></span><i></i></div>
  233. <?php } ?> -->
  234. <div class="Huxing_list"><span HuXing="1">投资理财</span><i></i></div>
  235. <div class="Huxing_list"><span HuXing="2">海外置业</span><i></i></div>
  236. <div class="Huxing_list"><span HuXing="3">海外生育</span><i></i></div>
  237. <div class="Huxing_list"><span HuXing="4">旅游度假</span><i></i></div>
  238. <div class="Huxing_list"><span HuXing="5">移民留学</span><i></i></div>
  239. <div class="Huxing_list"><span HuXing="6">养老储备</span><i></i></div>
  240. <div class="Huxing_list"><span HuXing="7">子女教育</span><i></i></div>
  241. <div class="Huxing_list"><span HuXing="0">其他</span><i></i></div>
  242. </div>
  243. <div class="NextStep" Nextstep="3">下一步</div>
  244. <div class="HxRemind">最多只能选择3项</div>
  245. </div><!-- 户型 -->
  246. <!-- 区域 -->
  247. <div class="demand" style="display:none;" Nextstep="3">
  248. <div class="demand_title">您打算在哪里买房?</div>
  249. <div class="region_box">
  250. <ul class="region">
  251. <?php foreach ($province as $val){ ?>
  252. <li class="i_dark" regionId="<?= $val['id'] ?>"><?= $val['city_name'] ?></li>
  253. <?php } ?>
  254. <!-- <li regionId="2"><i></i>广西</li> -->
  255. <!-- <li regionId="3"><i></i>广东</li> -->
  256. <!-- <li regionId="4"><i></i>云南</li> -->
  257. <!-- <li regionId="5"><i></i>东南亚</li> -->
  258. </ul>
  259. <!-- <div class="region_City_box">
  260. <ul class="region_City">
  261. <li><span>不限</span><i class="i_dark"></i></li> i_bright
  262. <li><span>海南</span><i class="i_dark"></i></li>
  263. <li><span>海南</span><i class="i_dark"></i></li>
  264. <li><span>海南</span><i class="i_dark"></i></li>
  265. <li><span>海南</span><i class="i_dark"></i></li>
  266. <li><span>海南</span><i class="i_dark"></i></li>
  267. <li><span>海南</span><i class="i_dark"></i></li>
  268. <li><span>海南</span><i class="i_dark"></i></li>
  269. <li><span>海南</span><i class="i_dark"></i></li>
  270. <li><span>海南</span><i class="i_dark"></i></li>
  271. <li><span>海南</span><i class="i_dark"></i></li>
  272. </ul>
  273. </div> -->
  274. </div>
  275. <div class="Determine" id="disabled">确定</div>
  276. <div class="remind">最多只能选择5项</div>
  277. </div><!-- 区域 -->
  278. <!--
  279. <div class="xm_bm_box">
  280. <div class="xm_bm_zhez"></div>
  281. <div class="xm_bm m_form">
  282. <em>免费定制您的需求</em>
  283. <form action="" class="submit_area">
  284. <input type="text" placeholder="请输入您的手机号" class="m_input" name="mobile">
  285. <input type="button" class="m_button apply_submit" value="马上定制">
  286. </form>
  287. <img src="/image/m_bm4.png" alt="" class="xm_bm_gb">
  288. </div>
  289. </div>
  290. -->
  291. <div class="m_hqDiscount_box">
  292. <div class="m_hqDiscount_zhez"></div>
  293. <div class="m_hqDiscount">
  294. <div class="m_hqDiscount_bk">
  295. <div class="m_bk_title"><span>品房海外</span><i></i></div>
  296. <div class="m_bk_style">帮我找房</div>
  297. <div class="m_bk_text c"><img src="/image/m_bmv2.png" alt=""><span class="text">省心省力省钱</span><img src="/image/m_bmv2.png" alt=""></div>
  298. <form class="submit_area">
  299. <input type="hidden" name="hid" value="0"> <!-- 0 为公共报名,其它为楼盘ID-->
  300. <input type="hidden" name="source" value="55"> <!--报名来源 具体查看applyVerify.js文件中SourceModule 标识说明-->
  301. <input type="hidden" name="equipment" value="1"> <!--来源设备 ( PC端 2,手机端 1 )-->
  302. <input type="hidden" class="m_intention_city" name="intention_city" value=""> <!-- 区域 -->
  303. <input type="hidden" class="m_objective" name="objective" value=""> <!-- 户型 -->
  304. <input type="hidden" class="m_budget" name="budget" value=""> <!-- 价格 -->
  305. <input type="text" name="name" placeholder="请输入您的姓名">
  306. <input type="text" name="mobile" placeholder="请输入您的手机号">
  307. <input type="button" class="appleBm_buttom" value="点击获取">
  308. </form>
  309. </div>
  310. </div>
  311. <div class="m_hqDiscountgb"><a href="javascript:;"><img src="/image/m_lpindex4.png" alt=""></a></div>
  312. </div>
  313. </div>
  314. </body>
  315. <script>
  316. $(function(){
  317. // 修改页面适应样式
  318. // 修改弹窗信息
  319. // $('.m_form em').html(w_title);
  320. // $('.m_form form input[name="hid"]').val(w_id);
  321. // $('.m_form form input[name="source"]').val(w_module);
  322. // 提交筛选信息
  323. $('.m_form form input[name="intention_city"]').val(intention_city); // 区域
  324. $('.m_form form input[name="objective"]').val(objective); //户型
  325. $('.m_form form input[name="budget"]').val(budget); // 价格
  326. //报名验证及提交的调用
  327. PublicAction.AjaxSend(
  328. {
  329. CORID:'appleBm_buttom', /*操作ID*/
  330. }
  331. );
  332. })
  333. var Iheight = $(window).outerHeight();
  334. $('.demand_box').height(Iheight + 60);
  335. var intention_city = "" // 区域
  336. var objective = "" //户型
  337. var budget = ''; // 价格
  338. // 区域选中功能
  339. $('.region li').on('click',function(){
  340. $(this).attr('class','i_bright').siblings().attr('class','i_dark');
  341. // 选中才能点击确认
  342. var existence = $('.region li.i_bright').length;
  343. // console.log(existence);
  344. if (existence == 1) {
  345. $('.Determine').attr('id','Detecolor');
  346. }else{
  347. $('.Determine').attr('id','disabled');
  348. }
  349. intention_city = $(this).html();
  350. })
  351. // 户型选中功能
  352. $('.NextStep').attr('id','disabled');
  353. $('.Huxing .Huxing_list').on('click',function(){
  354. var IdHx = $(this).find('span').html();
  355. var Hudata = $(this).attr('id');
  356. //点击选中 在点击关闭
  357. if(Hudata == "Huxing_list"){
  358. $(this).attr('id','')
  359. }else{
  360. $(this).attr('id','Huxing_list')
  361. }
  362. // 限制只能选中3个
  363. var Hxid = $('.Huxing #Huxing_list').length;
  364. if(Hxid >3){
  365. $(this).attr('id','').find('i').attr('class','');
  366. $('.HxRemind').fadeIn(500);
  367. setTimeout(function(){
  368. $('.HxRemind').fadeOut(500);
  369. },1500);
  370. return;
  371. }
  372. // 点击不限 其他关闭。
  373. if (IdHx !== '其他') {
  374. $(this).parent().find('.Huxing_list').last().attr('id','').find('i').attr('class','');
  375. }else{
  376. $(this).siblings().attr('id','').find('i').attr('class','');
  377. };
  378. // 选中才能点击确认
  379. var HxIdData = $('.Huxing #Huxing_list').length;
  380. if (HxIdData >= 1) {
  381. $('.NextStep').attr('id','NextStepcolor');
  382. }else{
  383. $('.NextStep').attr('id','disabled');
  384. }
  385. })
  386. // 获取户型
  387. var arr = new Array();
  388. $('.NextStep').on('click',function(){
  389. $('.demand').hide();
  390. var NextstepID = $(this).attr('Nextstep')
  391. $('.demand[Nextstep='+ NextstepID +']').show();
  392. $('.Huxing #Huxing_list').each(function(){
  393. var HxdataId = $(this).find('span').html();
  394. arr.push(HxdataId);
  395. })
  396. objective = arr.join(",");
  397. console.log(objective);
  398. })
  399. // 获取价格
  400. $('.Pricexyb').on('click',function(){
  401. $('.demand').hide();
  402. var NextstepID = $(this).attr('Nextstep')
  403. $('.demand[Nextstep='+ NextstepID +']').show();
  404. budget = $('.Price h3').html();
  405. console.log(budget);
  406. })
  407. // <input type="hidden" class="m_intention_city" name="intention_city" value=""> <!-- 区域 -->
  408. // <input type="hidden" class="m_intention_housetype" name="intention_housetype" value=""> <!-- 户型 -->
  409. // <input type="hidden" class="m_budget" name="budget" value=""> <!-- 价格 -->
  410. // 最后确认
  411. $('.demand').on('click','.Determine',function(){
  412. console.log(intention_city);
  413. $('.m_hqDiscount_bk .m_intention_city').attr('value',intention_city); //区域
  414. console.log(objective);
  415. $('.m_hqDiscount_bk .m_objective').attr('value',objective); // 户型
  416. console.log(budget);
  417. $('.m_hqDiscount_bk .m_budget').attr('value',budget); // 价格
  418. $('.m_hqDiscount_box').fadeIn(800);
  419. $('.demand').attr('id','opacity');
  420. })
  421. $('.m_hqDiscount_zhez').on('click',function(){
  422. $('.m_hqDiscount_box').fadeOut(100);
  423. $('.demand').attr('id','');
  424. })
  425. $('.m_hqDiscountgb').on('click',function(){
  426. $('.m_hqDiscount_box').fadeOut(100);
  427. $('.demand').attr('id','');
  428. })
  429. // $('.demand_box_gb').on('click',function(){
  430. // RemoveDiv();
  431. // })
  432. // 刻度尺
  433. $(function(){
  434. //demo示例一到四 通过lass调取,一句可以搞定,用于页面中可能有多个导航的情况
  435. // $('.wrapper').navbarscroll();
  436. //demo示例五 通过id调取
  437. // $('.wrapper').navbarscroll({
  438. // defaultSelect:6,
  439. // endClickScroll:function(obj){
  440. // console.log(obj.text())
  441. // }
  442. // });
  443. //demo示例六 通过id调取
  444. $('.wrapper').navbarscroll({
  445. duibiScreenWidth:0.1, //单位以rem为准,默认为0.4rem
  446. scrollerWidth:1, //单位以px为准,默认为3,[仅用于特殊情况:外层宽度因为小数点造成的不精准情况]
  447. fingerClick:0, //目标第0或1个选项触发,必须每一项长度一致,方可用此项
  448. endClickScroll:function(obj){
  449. // console.log(obj.text())
  450. }
  451. });
  452. });
  453. </script>
  454. </html>