signupch.php 5.7 KB

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