signup.php 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. <!-- <link rel="stylesheet" href="/js/signup/signup.css"> -->
  2. <style>
  3. /*2018.7.26 明 移过来内页方便快速加载*/
  4. .Content{height:100%;}
  5. .m_signUp_box{z-index:1000;position:relative;}
  6. .m_signUp{border:1px solid;width:100%;height:100%;position: fixed;top:0;left:0;z-index:100;background-color:#000;opacity:0.3;}
  7. .m_form{width:85%;border-radius: 7px;position:absolute;left:50%;top:0;margin-left:-42.5%;z-index:110;overflow:hidden;background:#FFF;padding-bottom:30px;padding-top:45px;box-shadow:7px 7px 20px 0px rgba(70, 54, 54, 0.35);
  8. animation:change 0.4s;
  9. -webkit-animation:change 0.4s;
  10. -moz-animation:change 0.4s;
  11. -o-animation:change 0.4s;
  12. }
  13. @keyframes change {
  14. 0% {top:-100%;opacity:0;}
  15. 100% {opacity:1;}
  16. }
  17. -webkit-@keyframes change {
  18. 0% {top:-100%;opacity:0;}
  19. 100% {opacity:1;}
  20. }
  21. -moz-@keyframes change {
  22. 0% {top:-100%;opacity:0;}
  23. 100% {opacity:1;}
  24. }
  25. -o-@keyframes change {
  26. 0% {top:-100%;opacity:0;}
  27. 100% {opacity:1;}
  28. }
  29. .m_form_title_box{}
  30. .m_form_title{padding:0 30px;}
  31. .m_form_title span{font-size:1.5rem;color:#000;font-weight:600;}
  32. /*.m_form_title em{width:22%;height:1px;position:relative;background:#FFF;display:block;}
  33. .m_form_title em i{width:6px;height:6px;display:block;position:absolute;top:-2px;right:0;border-radius:50px;background:#FFF;}
  34. */
  35. .m_form_input{width:85%;height:44px;margin:auto;margin-bottom:15px;background:#EEE;border-radius:5px;margin-top:20px;}
  36. /*.m_form_input img{display: block;width:13px;margin-top:10px;float:left;margin-left:14px;}*/
  37. .m_form_input input{text-align:center;outline:none;background:#EEE;border-radius:5px;float:left;width:100%;height:60%;border:0;font-size:0.875rem;color:#00011E;margin-top:8px;}
  38. .m_button{outline:none;width:85%;height:45px;border:0;background:#D62F2F;border-radius:5px;margin:auto;display: block;margin-top:20px;font-size:1rem;color:#FFF;position:relative;z-index:100;}
  39. .y_fonr_text{font-size: 0.875rem; color: #999; width: 85%; margin: 0 auto; line-height: 20px;margin-top:15px;}
  40. .y_fonr_text i{color:#D62F2F;}
  41. .m_close{position:absolute;right:15px;top:15px;z-index:100;width:36px;width:15px;height:15px;
  42. animation:change 0.4s;
  43. -webkit-animation:change 0.4s;
  44. -moz-animation:change 0.4s;
  45. -o-animation:change 0.4s;
  46. }
  47. .m_close img{width:100%;display:block;}
  48. .m_form_input input:-webkit-input-placeholder {color: #999;}
  49. .m_form_input input:-moz-placeholder {color: #999;}
  50. .m_form_input input:-ms-input-placeholder {color: #999;}
  51. .m_form_input input:-o-input-placeholder {color: #999;}
  52. .m_form_input .cle {display:inline-block;width:15px;height:15px;position:absolute;top:11px;right:10px;display:none;}
  53. </style>
  54. <div class="m_signUp_box">
  55. <!-- <div class="m_signUp"></div> -->
  56. <form class="m_form submit_area">
  57. <input type="hidden" name="hid" value="0"> <!-- 0 为公共报名,其它为楼盘ID-->
  58. <input type="hidden" name="source" value="3"> <!--报名来源 具体查看applyVerify.js文件中SourceModule 标识说明-->
  59. <input type="hidden" name="equipment" value="1"> <!--来源设备 ( PC端 2,手机端 1 )-->
  60. <div class="m_form_title_box">
  61. <div class="m_form_title">
  62. <!-- <em><i></i></em> -->
  63. <span>报名看房</span>
  64. <!-- <em><i style="left:0;"></i></em> -->
  65. </div>
  66. <div class="y_fonr_text"></div>
  67. </div>
  68. <div class="m_form_input c">
  69. <img class="cle" src="/image/w_cle.png" alt="">
  70. <input name="mobile" type="text" placeholder="您的手机号码">
  71. </div>
  72. <input type="button" value="立即报名" class="m_button apc_sbi">
  73. <div class="m_close"><img src="/image/v2/m_lpindex6.png" alt=""></div>
  74. </form>
  75. </div>
  76. <script>
  77. $(function(){
  78. // 修改页面适应样式
  79. var _height = $(window).outerHeight();
  80. var _h2 = $('.m_form').outerHeight();
  81. _h2 = Math.floor(_height/4);
  82. $('.m_signUp_box').css('height',_height);
  83. $('.m_form').css('margin-top',+_h2+'px');
  84. // 修改弹窗信息
  85. // $('.m_form_title').html(w_title);
  86. $('.m_form input[name="hid"]').val(w_id);
  87. $('.m_form input[name="source"]').val(w_module);
  88. $('.y_fonr_text').html(w_text);
  89. if(w_button){
  90. $('.m_form input[type="button"]').val(w_button);
  91. }
  92. // 输入清除显示与隐藏
  93. $('.m_form_input input[name="mobile"]').on('keyup',function(){
  94. var txt = $(this).val();
  95. if(txt != ''){
  96. $('.m_form_input .cle').show();
  97. }else{
  98. $('.m_form_input .cle').hide();
  99. }
  100. })
  101. // 清除功能
  102. $('.m_form_input .cle').on('click',function(){
  103. $('.m_form_input input[name="mobile"]').val('');
  104. $(this).hide();
  105. })
  106. $('.m_form_title span').html(w_title);
  107. // 删除
  108. $('.m_close').on('click',function(){
  109. $("body").off("click",'.apc_sbi');
  110. RemoveDiv();
  111. })
  112. //报名验证及提交的调用
  113. PublicAction.AjaxSend(
  114. {
  115. CORID:'apc_sbi', /*操作ID*/
  116. }
  117. );
  118. })
  119. </script>