<style>
    .appleBm{width: 280px; height: auto; background: #fff; position: absolute; left: 50%; margin-left: -140px; top: -100%; border-radius: 10px;}

    .appleBm_gb a{ display: inline-block; float: right; width:18px; height:18px; position: relative; right: 10px; top: 10px;}
    .appleBm_gb a img{width: 100%; height: 100%;}
    .appleBm_center{ width: 80%; margin:0 auto; margin-top: 20px; }
    .appleBm_top p.title{ font-size: 1.2rem; color: #333;font-weight: 600;}
    .appleBm_top p.text{ font-size: 0.9rem; color: #999; line-height: 22px; margin-top: 10px;}
    .appleBm_form{ width: 100%; height: auto; margin: 0 auto; margin-top: 30px;}
    .appleBm_form .appleBm_input{ font-size: 1rem; color: #666; border: none;border-bottom: 1px solid #eee; width: 100%; height: 35px; }
    .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;}

</style>
<div class="appleBm">
    <div class="appleBm_main">
        <div class="appleBm_gb c"><a href="javascript:;" onclick="RemoveDiv();"><img src="/image/ico_applegb.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_ch" href="javascript:;">确定</a>
                </form>
            </div> 
        </div>
    </div>
    <div style="height:40px;"></div>
</div>

<script>
    $(function(){
        $(".appleBm").animate({top:"10%"},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_ch');
                $('.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_ch.js',function(){
                    console.log("加载成功")
                     //报名验证及提交的调用
                    PublicAction1.AjaxSend(
                        {
                            CORID:'winsi-btn',                    /*操作ID*/
                        }
                    );
                });

                
           }
        }

        /*--------------------------------------------------end--------------------------------------------------------*/

        //报名验证及提交的调用
        PublicAction.AjaxSend(
            {
                CORID:'appleBm_buttom_ch',                    /*操作ID*/
            }
        );

        $(".appleBm_input").on('keypress',function(e) {
                var keycode = e.keyCode;
                var searchName = $(this).val();
                if(keycode=='13') {
                  $('.appleBm_buttom_ch').click();
                }
         });
        
    })
</script>