customization.php 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898
  1. <!-- <link rel="stylesheet" href="/js/signup/m_xqdz.css"> -->
  2. <style>
  3. .max_box {
  4. max-width: 640px;
  5. margin: auto;
  6. min-width: 320px;
  7. position: relative;
  8. }
  9. .max_box img {
  10. display: block;
  11. }
  12. .demand_box {
  13. width: 100%;
  14. position: fixed;
  15. top: 0;
  16. background: #F7F7F7;
  17. }
  18. .demand_box_gb {
  19. position: absolute;
  20. top: 0;
  21. right: 0;
  22. width: 40px;
  23. height: 40px;
  24. display: block;
  25. }
  26. .demand {
  27. width: 90%;
  28. height: 100%;
  29. margin: auto;
  30. position: relative;
  31. overflow: hidden;
  32. }
  33. .demand_title {
  34. font-size: 1.5rem;
  35. color: #333;
  36. text-align: center;
  37. margin-top: 15%
  38. }
  39. /*价格*/
  40. .Price {
  41. margin-top: 15%;
  42. }
  43. .Pricexyb {
  44. width: 60%;
  45. height: 40px;
  46. font-size: 1rem;
  47. color: #FFF;
  48. background: #FC5C2B;
  49. border-radius: 40px;
  50. position: absolute;
  51. bottom: 12%;
  52. left: 50%;
  53. margin-left: -30%;
  54. text-align: center;
  55. line-height: 40px;
  56. }
  57. /*户型*/
  58. #Huxing_list {
  59. border: 1px solid #FC5C2B;
  60. color: #FC5C2B;
  61. }
  62. .Huxing {
  63. margin-top: 15%;
  64. }
  65. .Huxing .Huxing_list {
  66. border: 1px solid #eae7e7;
  67. float: left;
  68. border-radius: 20px;
  69. width: 44%;
  70. height: 40px;
  71. text-align: center;
  72. line-height: 40px;
  73. margin-right: 12%;
  74. margin-bottom: 8%;
  75. background: #FFF;
  76. font-size: 1rem;
  77. color: #3A3A3A;
  78. position: relative;
  79. }
  80. .Huxing .Huxing_list:nth-child(2n) {
  81. margin-right: 0;
  82. }
  83. .Huxing_list img {
  84. width: 17px;
  85. height: 17px;
  86. position: absolute;
  87. top: -8px;
  88. right: 0;
  89. }
  90. .Huxing_list_i {
  91. width: 17px;
  92. height: 17px;
  93. position: absolute;
  94. top: -8px;
  95. right: 0;
  96. background: url(/overseas/img/xqdz1.png) no-repeat 0 0/ 100% 100%;
  97. }
  98. .NextStep {
  99. width: 60%;
  100. height: 40px;
  101. font-size: 1rem;
  102. color: #FFF;
  103. background: #C5C5C5;
  104. border-radius: 40px;
  105. position: absolute;
  106. bottom: 12%;
  107. left: 50%;
  108. margin-left: -30%;
  109. text-align: center;
  110. line-height: 40px;
  111. }
  112. #NextStepcolor {
  113. background: #FC5C2B;
  114. }
  115. /*区域*/
  116. .Determine {
  117. width: 60%;
  118. height: 40px;
  119. font-size: 1rem;
  120. color: #FFF;
  121. background: #C5C5C5;
  122. border-radius: 40px;
  123. position: absolute;
  124. bottom: 12%;
  125. left: 50%;
  126. margin-left: -30%;
  127. text-align: center;
  128. line-height: 40px;
  129. }
  130. #Detecolor {
  131. background: #FC5C2B;
  132. }
  133. .region_box {
  134. width: 100%;
  135. height: 62%;
  136. margin-top: 10%;
  137. position: relative;
  138. overflow: hidden;
  139. }
  140. .region {
  141. width: 40%;
  142. height: 100%;
  143. position: absolute;
  144. top: 0;
  145. left: 50%;
  146. margin-left: -20%;
  147. max-height: 100%;
  148. overflow: auto;
  149. transition: all .4s;
  150. }
  151. /*13%*/
  152. .region li {
  153. transition: all .4s;
  154. height: 60px;
  155. text-align: center;
  156. line-height: 60px;
  157. font-size: 1.1rem;
  158. color: #333;
  159. position: relative;
  160. }
  161. .region li i {
  162. width: 7px;
  163. height: 7px;
  164. border-radius: 20px;
  165. background: none;
  166. position: absolute;
  167. top: 41%;
  168. left: 26%;
  169. float: left;
  170. display: block;
  171. }
  172. #regionlii {
  173. background: #FC5C2B;
  174. }
  175. #region {
  176. height: 38px;
  177. line-height: 38px;
  178. transition: all .4s;
  179. }
  180. .regionli {
  181. background: #FFF;
  182. }
  183. #m_regionYd {
  184. left: 13%;
  185. transition: all .4s;
  186. }
  187. #opacity {
  188. opacity: 0.1
  189. }
  190. .region_City {
  191. width: 67%;
  192. height: 100%;
  193. position: absolute;
  194. top: 0;
  195. right: 0;
  196. background: #FFF;
  197. max-height: 100%;
  198. overflow: auto;
  199. display: none;
  200. }
  201. .region_City li {
  202. height: 45px;
  203. line-height: 45px;
  204. font-size: 1rem;
  205. color: #333;
  206. }
  207. .region_City li span {
  208. margin-left: 30px;
  209. float: left;
  210. }
  211. .region_City li img {
  212. float: right;
  213. width: 17px;
  214. height: 17px;
  215. margin: 13px 9px 0 0;
  216. }
  217. .i_bright {
  218. float: right;
  219. width: 17px;
  220. height: 17px;
  221. margin: 13px 9px 0 0;
  222. background: url(/overseas/img/xqdz1.png) no-repeat 0 0/ 100% 100%;
  223. }
  224. .i_dark {
  225. float: right;
  226. width: 17px;
  227. height: 17px;
  228. margin: 13px 9px 0 0;
  229. background: url(/overseas/img/xqdz2.png) no-repeat 0 0/ 100% 100%;
  230. }
  231. .remind {
  232. position: absolute;
  233. top: 50%;
  234. left: 50%;
  235. margin-top: -17.5px;
  236. margin-left: -55px;
  237. background: rgba(31, 30, 30, 0.83);
  238. border-radius: 5px;
  239. width: 110px;
  240. height: 35px;
  241. text-align: center;
  242. line-height: 35px;
  243. font-size: 0.95rem;
  244. color: #FFF;
  245. display: none;
  246. }
  247. .HxRemind {
  248. position: absolute;
  249. top: 50%;
  250. left: 50%;
  251. margin-top: -17.5px;
  252. margin-left: -85px;
  253. background: rgba(31, 30, 30, 0.83);
  254. border-radius: 5px;
  255. width: 170px;
  256. height: 35px;
  257. text-align: center;
  258. line-height: 35px;
  259. font-size: 0.95rem;
  260. color: #FFF;
  261. display: none;
  262. }
  263. #disabled {
  264. pointer-events: none;
  265. }
  266. @media screen and (min-width: 300px) and (max-width: 374px) {
  267. .Determine {
  268. height: 35px;
  269. bottom: 12%;
  270. }
  271. .region_box {
  272. height: 60%;
  273. }
  274. /*.demand_title{margin-top:70px;}*/
  275. .region li i {
  276. left: 24%;
  277. }
  278. }
  279. /*刻度尺*/
  280. .box {
  281. height: 50px;
  282. position: relative;
  283. width: 100%;
  284. margin: 0 auto;
  285. }
  286. .wrap {
  287. min-width: 320px;
  288. max-width: 768px;
  289. margin: 0 auto;
  290. overflow: hidden;
  291. position: relative;
  292. }
  293. .wrapper {
  294. position: relative;
  295. height: 49px;
  296. line-height: 50px;
  297. width: 100%;
  298. overflow: hidden;
  299. margin: 0 auto;
  300. border: 1px solid #ccc;
  301. border-radius: 25px;
  302. background: -webkit-gradient(linear, -25% 10%, 111% 100%,
  303. color-stop(0.14, rgb(227, 227, 227)),
  304. color-stop(0.5, rgb(255, 255, 255)),
  305. color-stop(1, rgb(229, 229, 229)));
  306. }
  307. .wrapper .scroller {
  308. position: absolute;
  309. padding: 0 48% 0 50%;
  310. }
  311. .wrapper .scroller li {
  312. float: left;
  313. width: 50px;
  314. height: 13px;
  315. line-height: 13px; /*text-align: center;*/
  316. font-style: none;
  317. margin: 0 20px;
  318. padding: 25px 0 10px;
  319. position: relative;
  320. top: 5px;
  321. }
  322. /* .wrapper .scroller li:first-child {width:230px;}
  323. .wrapper .scroller li:last-child {width:210px;}*/
  324. .wrapper .scroller li span {
  325. display: block;
  326. border-left: 1px solid #ccc;
  327. width: 100%;
  328. height: 13px;
  329. }
  330. .wrapper .scroller li span i {
  331. display: inline-block;
  332. font-size: 12px;
  333. color: #9b9b9b;
  334. font-style: normal;
  335. position: absolute;
  336. top: 7px;
  337. left: -10px;
  338. }
  339. .pillar {
  340. display: inline-block;
  341. width: 6px;
  342. height: 60px;
  343. border-radius: 10px;
  344. background: rgba(252, 92, 44, 0.85);
  345. position: absolute;
  346. z-index: 2;
  347. left: 50%;
  348. top: -5px;
  349. margin-left: -3px;
  350. }
  351. .Price h3 {
  352. text-align: center;
  353. line-height: 100px;
  354. font-size: 1.6rem;
  355. color: #FF470F;
  356. }
  357. /*报名*/
  358. .xm_bm_box {
  359. width: 100%;
  360. height: 100%;
  361. position: fixed;
  362. top: 0;
  363. left: 0;
  364. z-index: 100;
  365. display: none;
  366. }
  367. .xm_bm {
  368. width: 80%;
  369. position: absolute;
  370. top: 50%;
  371. left: 50%;
  372. margin-top: -100px;
  373. margin-left: -40%;
  374. background: #FFF;
  375. z-index: 200;
  376. border-radius: 5px;
  377. padding-bottom: 25px;
  378. }
  379. .xm_bm em {
  380. font-size: 1.2rem;
  381. color: #DF4312;
  382. margin-top: 20px;
  383. text-align: center;
  384. display: block;
  385. font-weight: 600;
  386. letter-spacing: 1px;
  387. }
  388. .xm_bm_box form {
  389. width: 90%;
  390. margin: auto;
  391. margin-top: 20px;
  392. }
  393. .xm_bm_box form .m_input {
  394. border: 1px solid #F9DED5;
  395. width: 100%;
  396. height: 40px;
  397. padding: 0 15px;
  398. border-radius: 5px;
  399. }
  400. .xm_bm_box form .m_button {
  401. width: 100%;
  402. height: 40px;
  403. background: #FF6E42;
  404. border: 0;
  405. margin-top: 20px;
  406. border-radius: 30px;
  407. font-size: 1rem;
  408. color: #FFF;
  409. letter-spacing: 1px;
  410. }
  411. .xm_bm_gb {
  412. display: block;
  413. width: 30px;
  414. height: 30px;
  415. position: absolute;
  416. top: -37px;
  417. right: -4px;
  418. }
  419. .xm_bm_zhez {
  420. width: 100%;
  421. height: 100%;
  422. background: rgba(33, 33, 33, 0.5);
  423. position: absolute;
  424. top: 0;
  425. left: 0;
  426. }
  427. .m_form {
  428. animation: change 0.8s;
  429. -webkit-animation: change 0.8s;
  430. -moz-animation: change 0.8s;
  431. }
  432. @keyframes change {
  433. 0% {
  434. left: 100%;
  435. opacity: 0;
  436. }
  437. 100% {
  438. opacity: 1;
  439. }
  440. }
  441. -webkit-
  442. @keyframes change {
  443. 0% {
  444. left: 100%;
  445. opacity: 0;
  446. }
  447. 100% {
  448. opacity: 1;
  449. }
  450. }
  451. -moz-
  452. @keyframes change {
  453. 0% {
  454. left: 100%;
  455. opacity: 0;
  456. }
  457. 100% {
  458. opacity: 1;
  459. }
  460. }
  461. @media screen and (max-height: 568px) {
  462. .demand_title {
  463. margin-top: 10%;
  464. }
  465. .region_City li {
  466. height: 38px;
  467. line-height: 38px;
  468. }
  469. .region li {
  470. font-size: 1rem;
  471. }
  472. .Huxing .Huxing_list {
  473. margin-bottom: 5%;
  474. }
  475. }
  476. </style>
  477. <script type="text/javascript" src="/overseas/js/signup/iscroll.js"></script>
  478. <script type="text/javascript" src="/overseas/js/signup/navbarscroll.js"></script>
  479. <!-- 需求定制 -->
  480. <div class="demand_box">
  481. <?php
  482. use common\fm\Opencc;
  483. ?>
  484. <img src="/overseas/img/demand_gb.png" alt="" class="demand_box_gb">
  485. <!-- 价格 -->
  486. <div class="demand" Nextstep="1">
  487. <div class="demand_title"><?= Opencc::ConvertHn('您理想的房子价格?') ?></div>
  488. <div class="Price">
  489. <h3 id="numberID">540</h3>
  490. <div class="box">
  491. <span class="pillar"></span>
  492. <div class="wrapper" id="wrapper1">
  493. <div class="scroller">
  494. <ul class="clearfix">
  495. <!-- <li><span><i>-->
  496. <? //= Opencc::ConvertHn('不限') ?><!--</i></span></li>-->
  497. <?php foreach ($price as $val) { ?>
  498. <li><span><i><?= \common\fm\Opencc::ConvertHn($val); ?></i></span></li>
  499. <?php } ?>
  500. </ul>
  501. </div>
  502. </div>
  503. </div>
  504. </div>
  505. <div class="Pricexyb" Nextstep="2"><?= Opencc::ConvertHn('下一步') ?></div>
  506. <div class="HxRemind"><?= Opencc::ConvertHn('户型最多只能选择3项') ?></div>
  507. </div><!-- 价格 -->
  508. <!-- 户型 -->
  509. <div class="demand" Nextstep="2" style="display:none;">
  510. <div class="demand_title"><?= Opencc::ConvertHn('您想要买什么户型?') ?></div>
  511. <div class="Huxing">
  512. <?php foreach ($type as $val) { ?>
  513. <div class="Huxing_list"><span
  514. HuXing="<?= $val['id'] ?>"><?= Opencc::ConvertHn($val['huxing_name']) ?></span><i></i></div>
  515. <?php } ?>
  516. <div class="Huxing_list"><span HuXing="0"><?= Opencc::ConvertHn('不限') ?></span><i></i></div>
  517. </div>
  518. <div class="NextStep" Nextstep="3"><?= Opencc::ConvertHn('下一步') ?></div>
  519. <div class="HxRemind"><?= Opencc::ConvertHn('户型最多只能选择3项') ?></div>
  520. </div><!-- 户型 -->
  521. <!-- 区域 -->
  522. <div class="demand" style="display:none;" Nextstep="3">
  523. <div class="demand_title"><?= Opencc::ConvertHn('您想在哪里买房?') ?></div>
  524. <div class="region_box">
  525. <ul class="region">
  526. <?php foreach ($province as $val) { ?>
  527. <li regionId="<?= $val['id'] ?>"><i></i><?= $val['city_name'] ?></li>
  528. <?php } ?>
  529. </ul>
  530. <div class="region_City_box">
  531. <ul class="region_City">
  532. <!-- <li><span>不限</span><i class="i_dark"></i></li>-->
  533. <!-- <li><span>海南</span><i class="i_dark"></i></li>-->
  534. <!-- <li><span>海南</span><i class="i_dark"></i></li>-->
  535. <!-- <li><span>海南</span><i class="i_dark"></i></li>-->
  536. <!-- <li><span>海南</span><i class="i_dark"></i></li>-->
  537. <!-- <li><span>海南</span><i class="i_dark"></i></li>-->
  538. <!-- <li><span>海南</span><i class="i_dark"></i></li>-->
  539. <!-- <li><span>海南</span><i class="i_dark"></i></li>-->
  540. <!-- <li><span>海南</span><i class="i_dark"></i></li>-->
  541. <!-- <li><span>海南</span><i class="i_dark"></i></li>-->
  542. <!-- <li><span>海南</span><i class="i_dark"></i></li>-->
  543. </ul>
  544. </div>
  545. </div>
  546. <div class="Determine"><?= Opencc::ConvertHn('确定') ?></div>
  547. <div class="remind"><?= Opencc::ConvertHn('最多只能选择5项') ?></div>
  548. </div><!-- 区域 -->
  549. <div class="xm_bm_box">
  550. <div class="xm_bm_zhez"></div>
  551. <div class="xm_bm m_form">
  552. <em><?= Opencc::ConvertHn('免费定制您的需求') ?></em>
  553. <form action="" class="submit_area">
  554. <input type="hidden" name="hid" value="0"> <!-- 0 为公共报名,其它为楼盘ID-->
  555. <input type="hidden" name="source" value="9"> <!--报名来源 具体查看applyVerify.js文件中SourceModule 标识说明-->
  556. <input type="hidden" name="equipment" value="1"> <!--来源设备 ( PC端 2,手机端 1 )-->
  557. <input type="hidden" class="m_intention_city" name="intention_city" value=""> <!-- 区域 -->
  558. <input type="hidden" class="m_intention_housetype" name="intention_housetype" value=""> <!-- 户型 -->
  559. <input type="hidden" class="m_budget" name="budget" value=""> <!-- 价格 -->
  560. <input type="text" placeholder="<?= Opencc::ConvertHn('请输入您的手机号') ?>" class="m_input" name="mobile">
  561. <input type="button" class="m_button apply_submit" value="<?= Opencc::ConvertHn('马上定制') ?>">
  562. </form>
  563. <img src="/overseas/img/m_bm4.png" alt="" class="xm_bm_gb">
  564. </div>
  565. </div>
  566. </div>
  567. <script>
  568. $(function () {
  569. // 修改页面适应样式
  570. // 修改弹窗信息
  571. $('.m_form em').html(w_title);
  572. $('.m_form form input[name="hid"]').val(w_id);
  573. $('.m_form form input[name="source"]').val(w_module);
  574. // 提交筛选信息
  575. $('.m_form form input[name="intention_city"]').val(intention_city); // 区域
  576. $('.m_form form input[name="intention_housetype"]').val(intention_housetype); //户型
  577. $('.m_form form input[name="budget"]').val(budget); // 价格
  578. //报名验证及提交的调用
  579. PublicAction.AjaxSend(
  580. {
  581. CORID: 'apply_submit', /*操作ID*/
  582. }
  583. );
  584. })
  585. var Iheight = $(window).outerHeight();
  586. $('.demand_box').height(Iheight + 60);
  587. var intention_city = "" // 区域
  588. var intention_housetype = "" //户型
  589. var budget = ''; // 价格
  590. //区域数据
  591. function region() {
  592. var html = '';
  593. $.ajax({
  594. url: "/json/soncity",
  595. data: {pid: YqData},
  596. type: "POST",
  597. dataType: "json",
  598. success: function (data) {
  599. console.log(data);
  600. if (data.code == 200) {
  601. $.each(data.data, function (i, data) {
  602. html += '<li CityId="' + data.id + '" CityName="' + data.city_name + '"><span>' + data.city_name + '</span><i class="i_dark"></i></li>';
  603. });
  604. $(".region_City").html(html);
  605. }
  606. }
  607. });
  608. }
  609. var YqData = "";
  610. // 区域数据
  611. $('.region li').on('click', function () {
  612. YqData = $(this).attr('regionId');
  613. region();
  614. $('.region_City').show();
  615. $('.region').attr('id', 'm_regionYd');
  616. $('.region li').attr('id', 'region');
  617. $(this).attr('class', 'regionli').siblings().attr('class', '');
  618. $('.Determine').attr('id', 'disabled');
  619. })
  620. // 区域选中功能
  621. $('.Determine').attr('id', 'disabled');
  622. $('.region_City').on('click', ' li', function () {
  623. $(this).find('i').attr('class', 'i_bright').parent().siblings().find('i').attr('class', 'i_dark');
  624. // 选中才能点击确认
  625. var existence = $('.region_City li .i_bright').length;
  626. if (existence == 1) {
  627. $('.Determine').attr('id', 'Detecolor');
  628. } else {
  629. $('.Determine').attr('id', 'disabled');
  630. }
  631. intention_city = $(this).attr('CityName')
  632. })
  633. // 户型选中功能
  634. $('.NextStep').attr('id', 'disabled');
  635. $('.Huxing .Huxing_list').on('click', function () {
  636. var IdHx = $(this).find('span').html();
  637. var Hudata = $(this).attr('id');
  638. //点击选中 在点击关闭
  639. if (Hudata == "Huxing_list") {
  640. $(this).attr('id', '').find('i').attr('class', '')
  641. } else {
  642. $(this).attr('id', 'Huxing_list').find('i').attr('class', 'Huxing_list_i')
  643. }
  644. // 限制只能选中3个
  645. var Hxid = $('.Huxing #Huxing_list').length;
  646. if (Hxid > 3) {
  647. $(this).attr('id', '').find('i').attr('class', '');
  648. $('.HxRemind').fadeIn(500);
  649. setTimeout(function () {
  650. $('.HxRemind').fadeOut(500);
  651. }, 1500);
  652. return;
  653. }
  654. // 点击不限 其他关闭。
  655. if (IdHx !== '不限') {
  656. $(this).parent().find('.Huxing_list').last().attr('id', '').find('i').attr('class', '');
  657. } else {
  658. $(this).siblings().attr('id', '').find('i').attr('class', '');
  659. }
  660. ;
  661. // 选中才能点击确认
  662. var HxIdData = $('.Huxing #Huxing_list').length;
  663. if (HxIdData >= 1) {
  664. $('.NextStep').attr('id', 'NextStepcolor');
  665. } else {
  666. $('.NextStep').attr('id', 'disabled');
  667. }
  668. })
  669. // 获取户型
  670. var arr = new Array();
  671. $('.NextStep').on('click', function () {
  672. $('.demand').hide();
  673. var NextstepID = $(this).attr('Nextstep')
  674. $('.demand[Nextstep=' + NextstepID + ']').show();
  675. $('.Huxing #Huxing_list').each(function () {
  676. var HxdataId = $(this).find('span').html();
  677. arr.push(HxdataId);
  678. })
  679. intention_housetype = arr.join(",");
  680. console.log(intention_housetype);
  681. })
  682. // 获取价格
  683. $('.Pricexyb').on('click', function () {
  684. $('.demand').hide();
  685. var NextstepID = $(this).attr('Nextstep')
  686. $('.demand[Nextstep=' + NextstepID + ']').show();
  687. budget = $('.Price h3').html();
  688. console.log(budget);
  689. })
  690. // <input type="hidden" class="m_intention_city" name="intention_city" value=""> <!-- 区域 -->
  691. // <input type="hidden" class="m_intention_housetype" name="intention_housetype" value=""> <!-- 户型 -->
  692. // <input type="hidden" class="m_budget" name="budget" value=""> <!-- 价格 -->
  693. // 最后确认
  694. $('.demand').on('click', '.Determine', function () {
  695. console.log(intention_city);
  696. $('.m_form .m_intention_city').attr('value', intention_city); <!-- 区域 -->
  697. console.log(intention_housetype);
  698. $('.m_form .m_intention_housetype').attr('value', intention_housetype); <!-- 户型 -->
  699. console.log(budget);
  700. $('.m_form .m_budget').attr('value', budget); <!-- 价格 -->
  701. $('.xm_bm_box').fadeIn(800);
  702. $('.demand').attr('id', 'opacity');
  703. })
  704. $('.xm_bm_zhez').on('click', function () {
  705. $('.xm_bm_box').fadeOut(100);
  706. $('.demand').attr('id', '');
  707. })
  708. $('.xm_bm_gb').on('click', function () {
  709. $('.xm_bm_box').fadeOut(100);
  710. $('.demand').attr('id', '');
  711. })
  712. $('.demand_box_gb').on('click', function () {
  713. RemoveDiv();
  714. })
  715. // 刻度尺
  716. $(function () {
  717. //demo示例一到四 通过lass调取,一句可以搞定,用于页面中可能有多个导航的情况
  718. // $('.wrapper').navbarscroll();
  719. //demo示例五 通过id调取
  720. // $('.wrapper').navbarscroll({
  721. // defaultSelect:6,
  722. // endClickScroll:function(obj){
  723. // console.log(obj.text())
  724. // }
  725. // });
  726. //demo示例六 通过id调取
  727. $('.wrapper').navbarscroll({
  728. duibiScreenWidth: 0.1, //单位以rem为准,默认为0.4rem
  729. scrollerWidth: 1, //单位以px为准,默认为3,[仅用于特殊情况:外层宽度因为小数点造成的不精准情况]
  730. fingerClick: 0, //目标第0或1个选项触发,必须每一项长度一致,方可用此项
  731. endClickScroll: function (obj) {
  732. // console.log(obj.text())
  733. }
  734. });
  735. });
  736. </script>