123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136 |
- <style>
- .appleBm{width:300px; height:364px; background: #fff; position: absolute; left: 50%; margin-left: -150px;margin-top:-190px; top: -100%; border-radius: 10px;
- background:url(/image/bmbj2.png) no-repeat 0 0/ 100% 100%;
- }
- .appleBm_gb{position:absolute;bottom:15px;width:100%;}
- .appleBm_gb a{display:block;width:26px;margin:auto;}
- .appleBm_gb a img{width: 100%; height: 100%;}
- .appleBm_center{ width:74%;position:absolute;top:142px;left:50%;margin-left:-37%;}
- .appleBm_top p.title{ font-size: 1.1rem; color: #333;font-weight: 600;text-align:center;}
- .appleBm_top p.text{ font-size: 0.8rem; color: #999; line-height:19px; margin-top: 8px;max-height:38px;overflow:hidden;}
- .appleBm_form{ width: 100%; height: auto; margin: 0 auto; margin-top:10px;}
- .appleBm_form .appleBm_input{padding: 0 10px;font-size:0.8rem; color: #666; border:1px solid #B8BECC;width: 100%; height: 30px; border-radius:3px;}
- .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;}
- </style>
- <div class="appleBm">
- <div class="appleBm_main">
- <div class="appleBm_gb c"><a href="javascript:;" onclick="RemoveDiv();"><img src="/image/m_lpindex4_1.png" alt=""></a></div>
- <div class="appleBm_center">
- <div class="appleBm_top">
- <p class="title">置业顾问在线讲房</p>
- <p class="text">售楼顾问致电为您讲解楼盘价格走势,投资升值空间</p>
- </div>
- <div class="appleBm_form">
- <form class="submit_area" >
- <input type="hidden" name="hid" value="0"> <!-- 0 为公共报名,其它为楼盘ID-->
- <input type="hidden" name="source" value="3"> <!--报名来源 具体查看applyVerify.js文件中SourceModule 标识说明-->
- <input type="hidden" name="equipment" value="1"> <!--来源设备 ( PC端 2,手机端 1 )-->
- <input class="appleBm_input" type="search" name="mobile" onfocus="this.placeholder=''" onblur="this.placeholder='请输入您的手机号'" placeholder="请输入您的手机号">
- <a class="saw appleBm_buttom" href="javascript:;">确定</a>
- </form>
- </div>
- </div>
- </div>
- <div style="height:40px;"></div>
- </div>
- <script>
- $(function(){
- $(".appleBm").animate({top:"50%"},300);
- $('.appleBm_top p.title').html(w_title);
- $('.appleBm_top p.text').html(w_text);
- $('.appleBm_form form input[name="hid"]').val(w_id);
- $('.appleBm_form form input[name="source"]').val(w_module);
- /*-----------------------以下这段代码是为了解决 http://m.qww.com/zt/zhhant 从这专题楼盘进到楼盘首页的报名-------------*/
- //获取GET请求参数
- function getParams(url) {
- var theRequest = new Object();
- if (!url)
- url = location.href;
- if (url.indexOf("?") !== -1)
- {
- var str = url.substr(url.indexOf("?") + 1) + "&";
- var strs = str.split("&");
- for (var i = 0; i < strs.length - 1; i++)
- {
- var key = strs[i].substring(0, strs[i].indexOf("="));
- var val = strs[i].substring(strs[i].indexOf("=") + 1);
- theRequest[key] = decodeURI(val) ; // decodeURI 解决中文字符乱码问题
- }
- }
- return theRequest;
- }
- var url = window.location.href;
- var params = getParams(url); //获取get请求的参数
- if(params.hasOwnProperty('ty')){
- // console.log(params.ty)
- if(params.ty == 'hk'){
- $('.appleBm_form a').removeClass('appleBm_buttom');
- $('.appleBm_form a').addClass('winsi-btn');
- /**
- * 动态加载JS
- * url JS路径
- * callback 回调函数
- */
- function dynamicLoadJs(url, callback) {
- var head = document.getElementsByTagName('head')[0];
- var script = document.createElement('script');
- script.type = 'text/javascript';
- script.src = url;
- if(typeof(callback)=='function'){
- script.onload = script.onreadystatechange = function () {
- if (!this.readyState || this.readyState === "loaded" || this.readyState === "complete"){
- callback();
- script.onload = script.onreadystatechange = null;
- }
- };
- }
- head.appendChild(script);
- }
- // 调用方法
- dynamicLoadJs('/js/m_applyVerify.js',function(){
- console.log("加载成功")
- //报名验证及提交的调用
- PublicAction1.AjaxSend(
- {
- CORID:'winsi-btn', /*操作ID*/
- }
- );
- });
-
- }
- }
- /*--------------------------------------------------end--------------------------------------------------------*/
- //报名验证及提交的调用
- PublicAction.AjaxSend(
- {
- CORID:'appleBm_buttom', /*操作ID*/
- }
- );
- $(".appleBm_input").on('keypress',function(e) {
- var keycode = e.keyCode;
- var searchName = $(this).val();
- if(keycode=='13') {
- $('.appleBm_buttom').click();
- }
- });
-
- })
- </script>
|