reduced.php 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: xiaofeng
  5. * Date: 2018/5/29
  6. * Time: 上午9:46
  7. */
  8. ?>
  9. <link rel="stylesheet" href="/overseas/css/reduced.css">
  10. <div class="yv2_reduced js_yv2_reduced">
  11. <div class="yv2_reducedBox">
  12. <div class="yv2_reduced_main">
  13. <div class="yv2_reduced_title js_yv2_reduced_title">报名看房</div>
  14. <div class="yv2_reduced_ico js_yv2_reduced_ico"><img src="/overseas/img/v2image/bm_ico1_1.png" alt=""></div>
  15. <div class="yv2_reduced_text js_yv2_reduced_text">独家渠道优惠,省心省力省钱!</div>
  16. <div class="yv2_reduced_form js_yv2_reduced_form">
  17. <form class="submit_area">
  18. <input type="hidden" name="hid" value="0"> <!-- 0 为公共报名,其它为楼盘ID,有时默认为0有可能通过JS修改为楼盘ID-->
  19. <input type="hidden" name="source" value="0"> <!--报名来源 具体查看applyVerify.js文件中SourceModule 标识说明-->
  20. <input type="hidden" name="equipment" value="2"> <!--来源设备 ( PC端 2,手机端 1 )-->
  21. <div class="in_text js_in_text">
  22. <img src="/overseas/img/v2image/bm_ico3.png" alt="">
  23. <input type="text" name="name" placeholder="请输入您的姓名">
  24. </div>
  25. <div class="in_text">
  26. <img src="/overseas/img/v2image/bm_ico2.png" alt="">
  27. <input type="text" name="mobile" placeholder="请输入您的号码">
  28. </div>
  29. <div class="in_xuanze js_in_xuanze1">
  30. <p class="in_text_top js_in_xuanze_bud">
  31. <img src="/overseas/img/v2image/bm_ico6.png" alt="">
  32. <input type="text" name="budget" placeholder="您的置业单价">
  33. <i></i>
  34. </p>
  35. <div class="in_text_show js_in_text_show_bud">
  36. <a href="javascript:;">4000元以下</a>
  37. <a href="javascript:;">4000-6000元</a>
  38. <a href="javascript:;">6000-8000元</a>
  39. <a href="javascript:;">8000-10000元</a>
  40. <a href="javascript:;">1-1.5万</a>
  41. <a href="javascript:;">1.5-2万</a>
  42. <a href="javascript:;">2-2.5万</a>
  43. <a href="javascript:;">2.5-3万</a>
  44. <a href="javascript:;">3-5万</a>
  45. <a href="javascript:;">5-7万</a>
  46. <a href="javascript:;">7万以上</a>
  47. </div>
  48. </div>
  49. <div class="in_xuanze js_in_xuanze2">
  50. <p class="in_text_top js_in_xuanze_city">
  51. <img src="/overseas/img/v2image/bm_ico5.png" alt="">
  52. <input type="text" name="intention_city" placeholder="您的置业意向区域">
  53. <i></i>
  54. </p>
  55. <div class="in_text_show js_in_text_show_city">
  56. <a href="javascript:;">三亚市</a>
  57. <a href="javascript:;">海口市</a>
  58. <a href="javascript:;">陵水县</a>
  59. <a href="javascript:;">万宁市</a>
  60. <a href="javascript:;">文昌市</a>
  61. <a href="javascript:;">澄迈县</a>
  62. <a href="javascript:;">临高县</a>
  63. <a href="javascript:;">东方市</a>
  64. <a href="javascript:;">五指山市</a>
  65. <a href="javascript:;">琼海市</a>
  66. <a href="javascript:;">儋州市</a>
  67. <a href="javascript:;">乐东县</a>
  68. <a href="javascript:;">保亭县</a>
  69. <a href="javascript:;">定安县</a>
  70. <a href="javascript:;">琼中县</a>
  71. <a href="javascript:;">屯昌县</a>
  72. <a href="javascript:;">昌江县</a>
  73. <a href="javascript:;">白沙县</a>
  74. </div>
  75. </div>
  76. <div class="yv2_reduced_buttom">
  77. <a href="javascript:;" class="apply_submit js_apply_submit">立即提交</a>
  78. </div>
  79. <div class="js_yv2_reduced_text_foot">订阅后会有置业顾问致电并提供服务</div>
  80. </form>
  81. </div>
  82. </div>
  83. <div class="yv2_reduced_gb"><a onclick="btnCloses();" href="javascript:;"><img src="/overseas/img/v2image/bm_ico4.png" alt=""></a></div>
  84. </div>
  85. </div>
  86. <div class="yv2_reduced_bg" onclick="btnCloses();"></div>
  87. <script>
  88. $(function(){
  89. // console.log(puicBm_title+'--'+puicBm_hid+'--'+puicBm_source+'--'+puicBm_text)
  90. $('.js_yv2_reduced_title').html(puicBm_title)
  91. $('.js_apply_submit').html(puicBm_buttom)
  92. $('.js_yv2_reduced_text').html(puicBm_text)
  93. switch(puicBm_title)
  94. {
  95. case '报名看房':
  96. $('.js_yv2_reduced_ico').attr('src','/overseas/img/v2image/bm_ico1_1.png');
  97. break;
  98. case '获取楼盘航拍/VR资料':
  99. $('.js_yv2_reduced_ico').attr('src','/overseas/img/v2image/bm_ico1_3.png');
  100. break;
  101. case '降价通知':
  102. $('.js_yv2_reduced_ico').attr('src','/overseas/img/v2image/bm_ico1_4.png');
  103. break;
  104. case '锁定折扣优惠':
  105. $('.js_yv2_reduced_ico').attr('src','/overseas/img/v2image/bm_ico1_4.png');
  106. break;
  107. case '户型报价':
  108. $('.js_yv2_reduced_ico').attr('src','/overseas/img/v2image/bm_ico1_1.png');
  109. break;
  110. case '开盘通知':
  111. $('.js_yv2_reduced_ico').attr('src','/overseas/img/v2image/bm_ico1_6.png');
  112. break;
  113. case '免费资料':
  114. $('.js_yv2_reduced_form .js_yv2_reduced_text_foot').show();
  115. $('.js_yv2_reduced_ico').attr('src','/overseas/img/v2image/bm_ico1_9.png');
  116. break;
  117. case '帮我找房':
  118. $('.js_yv2_reduced_ico').attr('src','/overseas/img/v2image/bm_ico1_7.png');
  119. break;
  120. case '免费回电':
  121. $('.js_yv2_reduced_form .js_yv2_reduced_text_foot').show();
  122. $('.js_yv2_reduced_ico').attr('src','/overseas/img/v2image/bm_ico1_1.png');
  123. break;
  124. default:
  125. $('.js_yv2_reduced_ico').attr('src','/overseas/img/v2image/bm_ico1_1.png');
  126. }
  127. if (puicBm_title=='帮我找房') {
  128. $('.js_yv2_reduced_form .js_in_text').hide();
  129. $('.js_yv2_reduced_form .js_in_xuanze1').show();
  130. $('.js_yv2_reduced_form .js_in_xuanze2').show();
  131. };
  132. // 帮你找房
  133. $('.js_in_xuanze1').on('click','.js_in_xuanze_bud',function(){
  134. $('.js_in_text_show_bud').show();
  135. })
  136. $(document).click(function() {
  137. $('.js_in_text_show_bud').hide();
  138. })
  139. $('.js_in_xuanze1').on('click',function(e){
  140. e?e.stopPropagation():event.cancelBubble = true;
  141. })
  142. $('.js_in_text_show_bud').on('click','a',function(){
  143. var cityTxt=$(this).text();
  144. $(this).addClass('on').siblings().removeClass('on');
  145. $('.js_in_xuanze_bud input').val(cityTxt);
  146. $('.js_in_text_show_bud').hide();
  147. })
  148. $('.js_in_xuanze2').on('click','.js_in_xuanze_city',function(){
  149. $('.js_in_text_show_city').show();
  150. })
  151. $(document).click(function() {
  152. $('.js_in_text_show_city').hide();
  153. })
  154. $('.js_in_xuanze2').on('click',function(e){
  155. e?e.stopPropagation():event.cancelBubble = true;
  156. })
  157. $('.js_in_text_show_city').on('click','a',function(){
  158. var cityTxt=$(this).text();
  159. $(this).addClass('on').siblings().removeClass('on');
  160. $('.js_in_xuanze_city input').val(cityTxt);
  161. $('.js_in_text_show_city').hide();
  162. })
  163. //报名验证提交的调用
  164. var fun = {
  165. "error" : function(){
  166. PublicAction.hint("提交末成功!"); //编写需要操作的方法
  167. },
  168. "success" : function(){
  169. PublicAction.hint("提交成功!"); //编写需要操作的方法
  170. $('body input[type="text"]').val('')
  171. RemoveDiv(); //数据提交成功后关闭弹出层
  172. }
  173. }
  174. PublicAction.AjaxSend({CORID:'apply_submit'},fun);
  175. })
  176. </script>