signupv3.php 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <style>
  2. .appleBm{width:300px; height:364px; background: #fff; position: absolute; left: 50%; margin-left: -150px;margin-top:-190px; top: -100%; border-radius: 10px;
  3. background:url(/image/bmbj2.png) no-repeat 0 0/ 100% 100%;
  4. }
  5. .appleBm_gb{position:absolute;bottom:15px;width:100%;}
  6. .appleBm_gb a{display:block;width:26px;margin:auto;}
  7. .appleBm_gb a img{width: 100%; height: 100%;}
  8. .appleBm_center{ width:74%;position:absolute;top:142px;left:50%;margin-left:-37%;}
  9. .appleBm_top p.title{ font-size: 1.1rem; color: #333;font-weight: 600;text-align:center;}
  10. .appleBm_top p.text{ font-size: 0.8rem; color: #999; line-height:19px; margin-top: 8px;max-height:38px;overflow:hidden;}
  11. .appleBm_form{ width: 100%; height: auto; margin: 0 auto; margin-top:10px;}
  12. .appleBm_form .appleBm_input{padding: 0 10px;font-size:0.8rem; color: #666; border:1px solid #B8BECC;width: 100%; height: 30px; border-radius:3px;}
  13. .appleBm_form .saw{background:url(/image/bmbj1.png) no-repeat 0 0/ 100% 100%;margin-top:8px; width: 100%; height: 30px; line-height: 30px; text-align: center; font-size: 1rem; color:#E0C8A1;display: block; border-radius: 5px;}
  14. </style>
  15. <div class="appleBm">
  16. <div class="appleBm_main">
  17. <div class="appleBm_gb c"><a href="javascript:;" onclick="RemoveDiv();"><img src="/image/m_lpindex4_1.png" alt=""></a></div>
  18. <div class="appleBm_center">
  19. <div class="appleBm_top">
  20. <p class="title">置业顾问在线讲房</p>
  21. <p class="text">售楼顾问致电为您讲解楼盘价格走势,投资升值空间</p>
  22. </div>
  23. <div class="appleBm_form">
  24. <form class="submit_area" >
  25. <input type="hidden" name="hid" value="0"> <!-- 0 为公共报名,其它为楼盘ID-->
  26. <input type="hidden" name="source" value="3"> <!--报名来源 具体查看applyVerify.js文件中SourceModule 标识说明-->
  27. <input type="hidden" name="equipment" value="1"> <!--来源设备 ( PC端 2,手机端 1 )-->
  28. <input class="appleBm_input" type="search" name="mobile" onfocus="this.placeholder=''" onblur="this.placeholder='请输入您的手机号'" placeholder="请输入您的手机号">
  29. <a class="saw appleBm_buttom" href="javascript:;">确定</a>
  30. </form>
  31. </div>
  32. </div>
  33. </div>
  34. <div style="height:40px;"></div>
  35. </div>
  36. <script>
  37. $(function(){
  38. $(".appleBm").animate({top:"50%"},300);
  39. $('.appleBm_top p.title').html(w_title);
  40. $('.appleBm_top p.text').html(w_text);
  41. $('.appleBm_form form input[name="hid"]').val(w_id);
  42. $('.appleBm_form form input[name="source"]').val(w_module);
  43. /*-----------------------以下这段代码是为了解决 http://m.qww.com/zt/zhhant 从这专题楼盘进到楼盘首页的报名-------------*/
  44. //获取GET请求参数
  45. function getParams(url) {
  46. var theRequest = new Object();
  47. if (!url)
  48. url = location.href;
  49. if (url.indexOf("?") !== -1)
  50. {
  51. var str = url.substr(url.indexOf("?") + 1) + "&";
  52. var strs = str.split("&");
  53. for (var i = 0; i < strs.length - 1; i++)
  54. {
  55. var key = strs[i].substring(0, strs[i].indexOf("="));
  56. var val = strs[i].substring(strs[i].indexOf("=") + 1);
  57. theRequest[key] = decodeURI(val) ; // decodeURI 解决中文字符乱码问题
  58. }
  59. }
  60. return theRequest;
  61. }
  62. var url = window.location.href;
  63. var params = getParams(url); //获取get请求的参数
  64. if(params.hasOwnProperty('ty')){
  65. // console.log(params.ty)
  66. if(params.ty == 'hk'){
  67. $('.appleBm_form a').removeClass('appleBm_buttom');
  68. $('.appleBm_form a').addClass('winsi-btn');
  69. /**
  70. * 动态加载JS
  71. * url JS路径
  72. * callback 回调函数
  73. */
  74. function dynamicLoadJs(url, callback) {
  75. var head = document.getElementsByTagName('head')[0];
  76. var script = document.createElement('script');
  77. script.type = 'text/javascript';
  78. script.src = url;
  79. if(typeof(callback)=='function'){
  80. script.onload = script.onreadystatechange = function () {
  81. if (!this.readyState || this.readyState === "loaded" || this.readyState === "complete"){
  82. callback();
  83. script.onload = script.onreadystatechange = null;
  84. }
  85. };
  86. }
  87. head.appendChild(script);
  88. }
  89. // 调用方法
  90. dynamicLoadJs('/js/m_applyVerify.js',function(){
  91. console.log("加载成功")
  92. //报名验证及提交的调用
  93. PublicAction1.AjaxSend(
  94. {
  95. CORID:'winsi-btn', /*操作ID*/
  96. }
  97. );
  98. });
  99. }
  100. }
  101. /*--------------------------------------------------end--------------------------------------------------------*/
  102. //报名验证及提交的调用
  103. PublicAction.AjaxSend(
  104. {
  105. CORID:'appleBm_buttom', /*操作ID*/
  106. }
  107. );
  108. $(".appleBm_input").on('keypress',function(e) {
  109. var keycode = e.keyCode;
  110. var searchName = $(this).val();
  111. if(keycode=='13') {
  112. $('.appleBm_buttom').click();
  113. }
  114. });
  115. })
  116. </script>