<!doctype html>
<html>
<head>
<meta charset="GBK">
<?php
/**
 * Get Phone
 * @param int $type
 * @return string
 */
function getPhone($type = 1)
{
    $modelBroker = new Broker_model();
    $databaseSlave = $modelBroker->getDatabaseSlave();
    $result = $databaseSlave
        ->where('type =', $type)
        ->select('telno')
        ->get('telno_config')
        ->result_array();
    $phone = isset($result[0]['telno']) ? $result[0]['telno'] : '';
    return $phone;
}
$phone = getPhone(4);
?>
<title>租售宝登录页，房产经纪人登录平台—365淘房</title>
<meta name="keywords" content="经纪人登录，房产经纪人，经纪人网络平台，房屋中介，租售宝" />
<meta name="description" content="365淘房房产经纪人登录平台，中介、经纪人房源管理，二手房、租房信息发布，达成房屋交易买卖，想快速、精准找到购房用户请登录租售宝，<?=CITY_NAME?>客服电话<?=$phone?>。" />
<link href="<?=STATIC_SOURCE_URL?>/min/?f=common/css/base.css&WebsiteVersion=<?=WebsiteVersion?>" rel="stylesheet" type="text/css">
<script type="text/javascript" src="<?=STATIC_SOURCE_URL?>/min/?f=common/js/jquery-1.8.3.min.js&WebsiteVersion=<?=WebsiteVersion?>"></script>
<link href="<?=STATIC_SOURCE_URL?>/min/?f=zsb/css/v1.0/login.css&WebsiteVersion=<?=WebsiteVersion?>" rel="stylesheet" type="text/css">
<script type="text/javascript" src="<?=STATIC_SOURCE_URL?>/min/?f=zsb/js/v1.0/login.js&WebsiteVersion=<?=WebsiteVersion?>" charset="GBK"></script>
</head>
<body>
<!--2018-10-23 发布房源事宜-->
<style>
    .notice{ position: fixed; right: 22px;top:158px; width: 145px; height: 455px; }
    .noticewap{ position: relative; padding-top: 75px;overflow:hidden; height: 403px;}
    .noticepic{ position: absolute; width: 100%;top:0;left:0;}
    .noticefloat{ position: relative; z-index: 1002; line-height: 24px; font-size: 14px; width: 120px; font-family: "微软雅黑"; height: 270px;overflow: hidden; color: #fff; margin: 0px auto; }
    #demo{height: 270px;position: relative;overflow:hidden;}
    #demo1,#demo2{ height: auto;}
    .notice-close{ position: absolute; border: 1px solid #666; bottom: 0px; padding:2px; cursor:pointer;left:0}
    .qrcode_login {
    }

    .box {
    }
    .box::after {
        content:"";
        clear:both;/*清除浮动*/
        display:block;/*确保该元素是一个块级元素*/
    }
    .qrcode_left {
        float: left;
        width: 50%
    }
    .qrcode_left::after {
        content:"";
        clear:both;/*清除浮动*/
        display:block;/*确保该元素是一个块级元素*/

    }

    .qrcode_right {
        float: left;
        width: 46%
    }

    .qrcode_right .account-btn {
        font-size: 14px;
        color: #fff;
        height: 35px;
        padding: 0 15px;
        background-color: #07c160;
        border: 1px solid #07c160;
        line-height: 2;
        text-align: center;
        border-radius: 2px;
        cursor: pointer;
        transition: opacity 0.2s;
        outline: none;
        position: relative;
    }

    .qrcode_login .qrcode_text {
        font-size: 16px;
        margin-top: 20px;
        text-align: center
    }

    .qrcode_text_color {
        color: #fe8b41
    }
    .qr-code-btn {
        font-size: 14px;
        color: #fff;
        padding: 0 15px;
        background-color: #07c160;
        border: 1px solid #07c160;
        line-height: 2;
        text-align: center;
        border-radius: 3px;
        cursor: pointer;
        transition: opacity 0.2s;
        outline: none;
        width: 110px;
        position: relative;
        margin-right: 10px;
    }
    .qrcode-item {
        margin-top: 30px;
    }
    .qrcode-item .findPow {
        color: #808080;
        line-height: 30px;
    }
    .qrcode-item .register {
        color: #0096ff;
        font-weight: bold;
        line-height: 30px;
    }
</style>
<div class="notice">
    <div class="noticewap">
        <div class="noticepic">
            <img src="<?=STATIC_SOURCE_URL?>/zsb/images/v1.0/government_notice.png" width="145" />
        </div>
        <div id="demo">
            <div class="noticefloat" id="demo1">
                各相关企业、个体工商户、个人用户： <br/>
                根据《网络安全法》、住建部《房地产经纪管理办法》和《商品房屋租赁管理办法》、住建部等部门《关于加强房地产中介管理促进行业健康发展的意见》、南京市房产局《关于进一步加强房源发布管理规范房地产经纪行为的通知》、南京市租赁办《关于开展从事住房租赁经营活动企业信息登记工作的通知》等法规和文件要求，我公司积极配合主管部门对旗下网站房源发布进行规范，有关事项如下： <br/>
                一、南京市行政区域内的房地产经纪机构取得营业执照和《南京市房地产经纪企业备案证明》，经纪机构发布人在南京市房地产经纪行业服务监管平台备案取得从业编号，方可在我司旗下各网络平台上发布出售或出租房源。<br/>
                二、南京市行政区域内从事住房租赁经营活动企业、个体工商户按《关于开展从事住房租赁经营活动企业信息登记工作的通知》要求进行信息登记后，方可在我司旗下各网络平台上发布出租房源。<br/>
                三、机构未取得《南京市房地产经纪企业备案证明》、经纪机构发布人未取得从业编号的，以及未办理从事住房租赁经营活动企业信息登记的，我司将暂停其房源发布资格。<br/>
                四、个人发布南京市行政区域内出售或出租房源，房屋不动产权证记载权利人须与信息发布人身份一致，方可在我司旗下各网络平台上发布房源。<br/>
                请各有关用户认真落实有关法律法规和进一步整顿规范房地产秩序的要求，加强管理，诚信经营，促进南京房地产市场健康有序发展。<br/>
                <p align="right">
                    三六五网<br/>
                    2018年10月22日</p>

            </div>
            <div class="noticefloat"  id="demo2"></div>
        </div>
        <span class="notice-close">关闭</span>
    </div>
</div>
<script type="text/javascript">
    var speed = 40;
    window.onload=function(){
        var demo=document.getElementById("demo");
        var demo2=document.getElementById("demo2");
        var demo1=document.getElementById("demo1");
        demo2.innerHTML = demo1.innerHTML;
        function Marquee(){if(demo.scrollTop>=demo1.offsetHeight){
            demo.scrollTop=0;
        }
        else{
            demo.scrollTop=demo.scrollTop+1;
        }
        }
        var MyMar=setInterval(Marquee,speed);
        demo.onmouseover=function(){clearInterval(MyMar)};
        demo.onmouseout=function(){MyMar=setInterval(Marquee,speed); };
    }
    $(function(){
        $(".notice-close").click(function(){
            $(".notice").remove();
        })
    })
</script>
<!--2018-10-23 发布房源事宜-->
<!--2018-10-23 发布房源事宜-->
<div class="header">
		<div class="w960 clearfix">
				<h1 id="logo"> <a href="<?=GB_SELL_URL?>" target='_blank' class="logoInner" title="365淘房">365淘房</a> </h1>
				<div class="loginTitle">租售宝登录</div>
				<div id="nav">
						<dl class="list clearfix">
								<dd class="item"><a class="link" target='_blank' href="<?=GB_SELL_URL?>">二手房</a></dd>
								<dd class="item"><a class="link" target='_blank' href="<?=GB_RENT_URL?>">租房</a></dd>
								<!--<dd class="item"><a class="link" target='_blank' href="<?=GB_BROKER_URL?>">经纪人</a></dd>-->
								<dd class="item"><a class="link" target='_blank' href="<?php echo GB_WO_HELP; ?>">帮助</a></dd>
								<dd class="item">热线服务：<strong class="tel"><?=$phone?></strong></dd>
						</dl>
				</div>
		</div>
</div>


    <div id="main_ad">
		<div class="w960 clearfix" style="height:407px;">
            <a href="http://app.house365.com/zsb/download.html" target="_blank" style="float:left; height:320px; width:520px; overflow:hidden; text-indent:-999px; margin-top:30px;">租售宝</a>
				<div class="loginBlock">
                    <div class="hd"><a href="./" class="item itemOn">经纪人版登录</a><a href="<?php echo GB_WS_URL.'/login.php?city='.GB_CITY; ?>" class="item">门店版登录</a></div>
						<div class="mod">


								<div id="errorBlock"><span class="ico">&nbsp;</span><span id="errorInner"></span></div>

                <div class="qrcode_login">
                    <div class="box">
                    <div class="qrcode_left">
                            <img id="qrcode_img" src="<?php echo $default_login_qr_code; ?>" alt=""
                                 style="width: 150px;height: 150px">
                    </div>
                    <div class="qrcode_right">
                        <div class="qrcode_text">打开<span class="qrcode_text_color">租售宝APP</span></div>
                        <div class="qrcode_text">扫描二维码安全登录</div>
                        <div class="qrcode_text account-btn">账户登录</div>
                    </div>
                </div>
                    <div class="qrcode-item clearfix">
                        <div class=" clearfix" style="width: 110px;margin: 0 auto">
                            <a class="findPow" href="/login/findpw/" target="_blank">找回密码</a><span class="fg">|</span><a
                                class="register" href="https://newrent.house365.com/<?= GB_CITY ?>/agent_sign_up.html" target="_blank">立即注册</a>
                        </div>
                    </div>
                </div>
                <div class="forms" style="display: none">
                                    <div class="item clearfix">
                                        <?php
                                        $login_citys = array(
                                            'nj'=>array('url'=>'http://nj.zsb.house365.com/','name'=>'南 京'),
                                            'wh'=>array('url'=>'http://wh.zsb.house365.com/','name'=>'芜 湖'),
											'tj' => array('url' => 'http://tj.zsb.house365.com/', 'name' => '天津'),
											'chuzhou' => array('url' => 'http://chuzhou.zsb.house365.com/', 'name' => '滁州'),
                                        );

                                        ?>
                                        <div class="select_box" id="js_select_box">
                                            <input autocomplete="off" readonly="" class="inputText select js_select_t" value="<?php echo CITY_NAME; ?>" type="text">
                                            <input value="<?php echo GB_CITY; ?>" class="js_select_v" type="hidden">
                                            <dl class="select_list" style="display: none;">
                                            <?php foreach ($login_citys as $key =>$rs) {?>
                                                <dd class="select_item"><a class="select_link" href="<?php echo $rs['url'];?>" ><?php echo $rs['name'];?></a></dd>
                                            <?php }?>
                                            </dl>
                                        </div>

                                        <div class="item_relative item_relative_hf clearfix">
                                            <label for="name" class="label" style="display: block;">请输入登录名</label>
                                            <input autocomplete="off" class="inputText inputText_hf js_intextInput" id="name" type="text">
                                        </div>

                                    </div>
                                    <div class="item clearfix">
                                        <div class="item_relative clearfix">
                                            <label class="label" for="password">请输入密码</label>
                                            <input id="password" class="inputText js_intextInput" type="password" autocomplete="off">
                                        </div>
                                    </div>
                                    <div class="item clearfix">
                                        <div class="item_relative clearfix">
                                            <label class="label" for="code">请输入验证码</label>
                                            <input  id="code" class="inputText inputText02 js_intextInput" type="text" autocomplete="off"   >
                                            <img class="imgY" src="/valid/"><a href="javascript:change_validecode('/valid/');" class="getImgY">换一张</a>
                                        </div>
                                    </div>
                                    <div class="item clearfix">
                                        <div class="item_relative clearfix">
                            <div class="qrcode_text qr-code-btn" style="float: left">扫码登录</div>
                                            <button type="button" class="submit" id="login_submit">登录</button>
                                            <div id="new_login_btn_none">正在登录</div>
                                        </div>
                                    </div>
                    <div class="item clearfix"
                         style="width:280px;margin:15px auto 10px auto;border-top:1px solid #d9d9d9;">
                        <div class="item_relative clearfix" style="width: 130px;margin: 0 auto">
                            <a class="findPow" href="/login/findpw/" target="_blank">找回密码</a><span class="fg">|</span><a
                                class="register" href="https://newrent.house365.com/<?= GB_CITY ?>/agent_sign_up.html" target="_blank">立即注册</a>
								</div>
						</div>


				</div>
		</div>
</div>
<div class="addBlock">
		<div class="w960"> <img alt="" src="<?=STATIC_SOURCE_URL?>/zsb/images/v1.0/icoBg01.png"> </div>
</div>
<div class="footer">
		<div class="w960 clear">
				<div class="foot">
						<p class="link"> <a rel="nofollow" target="_blank" href="http://www.house365.com/about/aboutus.php?city=<?php echo GB_CITY; ?>">关于我们</a> | <a rel="nofollow" target="_blank" href="http://www.house365.com/about/contactus.php?city=<?php echo GB_CITY; ?>">联系我们</a> | <a rel="nofollow" target="_blank" href="http://www.house365.com/about/joinus.php?city=<?php echo GB_CITY; ?>">招聘信息</a> | <a href="javascript:void(0)" id="show_fen_sell">各地二手房</a> | <a href="javascript:void(0)" id="show_fen_rent">各地租房</a> |<a rel="nofollow" target="_blank" href="http://www.house365.com/about/friendlink.php?city=<?php echo GB_CITY; ?>">友情链接</a> | <a rel="nofollow" target="_blank" href="http://www.house365.com/about/partner.php?city=<?php echo GB_CITY; ?>">合作伙伴</a> | <a rel="nofollow" target="_blank" href="http://www.house365.com/about/statement.php">法律声明</a> | <a rel="nofollow" target="_blank" href="http://<?php echo GB_CITY; ?>.house365.com/sitemap.html">网站地图</a> </p>
						<p>365二手房：<a target="_blank" href="http://<?php echo GB_CITY; ?>.sell.house365.com">二手房</a> <a target="_blank" href="http://wx.rent.house365.com/">租房</a> <a target="_blank" href="http://<?php echo GB_CITY; ?>.sell.house365.com/community/">小区</a> <a target="_blank" href="http://<?php echo GB_CITY; ?>.sell.house365.com/sitemap_qA.html">A</a> <a target="_blank" href="http://<?php echo GB_CITY; ?>.sell.house365.com/sitemap_qB.html">B</a> <a target="_blank" href="http://<?php echo GB_CITY; ?>.sell.house365.com/sitemap_qC.html">C</a> <a target="_blank" href="http://<?php echo GB_CITY; ?>.sell.house365.com/sitemap_qD.html">D</a> <a target="_blank" href="http://<?php echo GB_CITY; ?>.sell.house365.com/sitemap_qE.html">E</a> <a target="_blank" href="http://<?php echo GB_CITY; ?>.sell.house365.com/sitemap_qF.html">F</a> <a target="_blank" href="http://<?php echo GB_CITY; ?>.sell.house365.com/sitemap_qG.html">G</a> <a target="_blank" href="http://<?php echo GB_CITY; ?>.sell.house365.com/sitemap_qH.html">H</a> <a target="_blank" href="http://<?php echo GB_CITY; ?>.sell.house365.com/sitemap_qI.html">I</a> <a target="_blank" href="http://<?php echo GB_CITY; ?>.sell.house365.com/sitemap_qJ.html">J</a> <a target="_blank" href="http://<?php echo GB_CITY; ?>.sell.house365.com/sitemap_qK.html">K</a> <a target="_blank" href="http://<?php echo GB_CITY; ?>.sell.house365.com/sitemap_qL.html">L</a> <a target="_blank" href="http://<?php echo GB_CITY; ?>.sell.house365.com/sitemap_qM.html">M</a> <a target="_blank" href="http://<?php echo GB_CITY; ?>.sell.house365.com/sitemap_qN.html">N</a> <a target="_blank" href="http://<?php echo GB_CITY; ?>.sell.house365.com/sitemap_qO.html">O</a> <a target="_blank" href="http://<?php echo GB_CITY; ?>.sell.house365.com/sitemap_qP.html">P</a> <a target="_blank" href="http://<?php echo GB_CITY; ?>.sell.house365.com/sitemap_qQ.html">Q</a> <a target="_blank" href="http://<?php echo GB_CITY; ?>.sell.house365.com/sitemap_qR.html">R</a> <a target="_blank" href="http://<?php echo GB_CITY; ?>.sell.house365.com/sitemap_qS.html">S</a> <a target="_blank" href="http://<?php echo GB_CITY; ?>.sell.house365.com/sitemap_qT.html">T</a> <a target="_blank" href="http://<?php echo GB_CITY; ?>.sell.house365.com/sitemap_qU.html">U</a> <a target="_blank" href="http://<?php echo GB_CITY; ?>.sell.house365.com/sitemap_qV.html">V</a> <a target="_blank" href="http://<?php echo GB_CITY; ?>.sell.house365.com/sitemap_qW.html">W</a> <a target="_blank" href="http://<?php echo GB_CITY; ?>.sell.house365.com/sitemap_qX.html">X</a> <a target="_blank" href="http://<?php echo GB_CITY; ?>.sell.house365.com/sitemap_qY.html">Y</a> <a target="_blank" href="http://<?php echo GB_CITY; ?>.sell.house365.com/sitemap_qZ.html">Z</a> </p>
							<p>365淘房 - <a target="_blank" href="http://<?php echo GB_CITY; ?>.sell.house365.com/"><?php echo CITY_NAME; ?>二手房</a> sell.house365.com &copy;2006-<?php echo date('Y'); ?>&#12288; 苏 B2-20110162</p>

				</div>
				<div class="fenzhan">
						<div id="fen_sell_tc" class="fenzhantc" style="display: none;">
								<ul class="clearfix">
										<li><a target="_blank" href="http://nj.sell.house365.com/">南京二手房</a></li>
										<li><a target="_blank" href="http://sz.sell.house365.com/">苏州二手房</a></li>
										<li><a target="_blank" href="http://ks.sell.house365.com/">昆山二手房</a></li>
										<li><a target="_blank" href="http://wx.sell.house365.com/">无锡二手房</a></li>
										<li><a target="_blank" href="http://cz.sell.house365.com/">常州二手房</a></li>
										<li><a target="_blank" href="http://hf.sell.house365.com/">合肥二手房</a></li>
										<li><a target="_blank" href="http://wh.sell.house365.com/">芜湖二手房</a></li>
										<li><a target="_blank" href="http://hz.sell.house365.com/">杭州二手房</a></li>
										<li><a target="_blank" href="http://xa.sell.house365.com/">西安二手房</a></li>
										<li><a target="_blank" href="http://cq.sell.house365.com/">重庆二手房</a></li>
								</ul>
						</div>
				</div>
				<div class="fenzhan">
						<div id="fen_rent_tc" class="fenzhantc" style="display: none;">
								<ul class="clearfix">
										<li><a target="_blank" href="http://nj.rent.house365.com/">南京租房</a></li>
										<li><a target="_blank" href="http://sz.rent.house365.com/">苏州租房</a></li>
										<li><a target="_blank" href="http://ks.rent.house365.com/">昆山租房</a></li>
										<li><a target="_blank" href="http://wx.rent.house365.com/">无锡租房</a></li>
										<li><a target="_blank" href="http://cz.rent.house365.com/">常州租房</a></li>
										<li><a target="_blank" href="http://hf.rent.house365.com/">合肥租房</a></li>
										<li><a target="_blank" href="http://wh.rent.house365.com/">芜湖租房</a></li>
										<li><a target="_blank" href="http://hz.rent.house365.com/">杭州租房</a></li>
										<li><a target="_blank" href="http://xa.rent.house365.com/">西安租房</a></li>
										<li><a target="_blank" href="http://cq.rent.house365.com/">重庆租房</a></li>
								</ul>
						</div>
				</div>
		</div>
</div>



<!--<script type='text/javascript'>var isa_website = '2,16,43';var isa_city = 'nj';var isa_addones = '';var isa_context_id = '';var _analyze365 = (('https:' == document.location.protocol) ? ' https://': ' http://');document.write(unescape('%3Cscript src="'+ _analyze365 + 'isa.house365.com/js/analyze.js?v=2.1" type="text/javascript"%3E%3C/script%3E'));</script>-->

<script src="/source/zsb/js/layer-v3.1.1/layer/layer.js"></script>
<link  href="/source/zsb/layui/css/mylayui.css" rel="stylesheet" type="text/css">
<script src="/source/zsb/layui/layui.js"></script>

<?php //if($google_analytics != '' ){ echo $google_analytics ;}?>
<script type="text/javascript">
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "//hm.baidu.com/hm.js?cfb3ca2185f627bb726977b7d8c94da4";
  var s = document.getElementsByTagName("script")[0];
  s.parentNode.insertBefore(hm, s);
})();
</script>
<script type="text/javascript">
//var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
//document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3Fcfb3ca2185f627bb726977b7d8c94da4' type='text/javascript'%3E%3C/script%3E"));
</script>
<?php
	$config = array();
	array_push($config, array('租售宝登陆页面', array('login'), array(2, 16, 43)));
	array_push($config, array('门店版登陆页面', array('login.php', '', ''), array(2, 16, 419)));
	//array_push($config, array('帮助页面', array('', '', ''), array(2, 16, 420)));
	//array_push($config, array('租售宝协议', array('', '', ''), array(2, 16, 422)));
	array_push($config, array('租售宝找回密码', array('login', 'findpw'), array(2, 16, 426)));
	//array_push($config, array('门店版找回密码', array('', '', ''), array(2, 16, 427)));
	array_push($config, array('租售宝首页', array(''), array(2, 16, 1446)));
	array_push($config, array('房源管理', array('sell', 'manage'), array(2, 16, 1447)));
	array_push($config, array('发布出售', array('sell', 'add'), array(2, 16, 1454)));
	array_push($config, array('出售管理', array('sell', 'manage'), array(2, 16, 1455)));
	array_push($config, array('发布出租', array('rent', 'add'), array(2, 16, 1456)));
	array_push($config, array('出租管理', array('rent', 'manage'), array(2, 16, 1457)));
	array_push($config, array('营销中心', array('market_index'), array(2, 16, 1448)));
	array_push($config, array('首页', array('market_index'), array(2, 16, 1458)));
	array_push($config, array('标签零售', array('tag_index'), array(2, 16, 1459)));
	array_push($config, array('小区专家', array('market_bid_block_expert'), array(2, 16, 1460)));
	array_push($config, array('二手房竞投', array('market_bid_house_manage'), array(2, 16, 1461)));
	array_push($config, array('租房竞投', array('market_bid_rent_manage'), array(2, 16, 1462)));
	array_push($config, array('房源包装', array('vas_packing_house'), array(2, 16, 1463)));
	array_push($config, array('本区个人房源', array('personal_house'), array(2, 16, 1464)));
	array_push($config, array('店铺管理', array('shop'), array(2, 16, 1449)));
	array_push($config, array('基本设置', array('shop', 'shop_set_basic'), array(2, 16, 1465)));
	array_push($config, array('房源推荐', array('shop', 'shop_house_recommend'), array(2, 16, 1466)));
	array_push($config, array('个人中心', array('ucenter_growth'), array(2, 16, 1450)));
	array_push($config, array('我的成长', array('ucenter_growth'), array(2, 16, 1467)));
	array_push($config, array('资料管理', array('ucenter_information'), array(2, 16, 1468)));
	array_push($config, array('消息管理', array('ucenter_message'), array(2, 16, 1469)));
	array_push($config, array('金融贷款', array('my_loan'), array(2, 16, 1470)));
	array_push($config, array('举报有奖', array('my_complain'), array(2, 16, 1471)));
	array_push($config, array('意见反馈', array('my_feedback'), array(2, 16, 1472)));
	array_push($config, array('统计分析', array('statistics_analysis'), array(2, 16, 1451)));
	array_push($config, array('使用概况', array('statistics_analysis', 'today'), array(2, 16, 1473)));
	array_push($config, array('使用日志', array('statistics_analysis', 'log'), array(2, 16, 1474)));
	array_push($config, array('点击统计', array('statistics_analysis', 'click'), array(2, 16, 1475)));
	array_push($config, array('刷新统计', array('statistics_analysis', 'refresh'), array(2, 16, 1476)));
	array_push($config, array('支付中心', array('payment'), array(2, 16, 1452)));
	array_push($config, array('首页', array('payment'), array(2, 16, 1477)));
	array_push($config, array('在线充值', array('payment', 'recharge'), array(2, 16, 1478)));
	array_push($config, array('交易记录', array('payment', 'transaction'), array(2, 16, 1479)));
	array_push($config, array('问答', array('ask'), array(2, 16, 1453)));
	array_push($config, array('待解决', array('ask', 'to_answer'), array(2, 16, 1480)));
	array_push($config, array('全部问题', array('ask', 'all_qa'), array(2, 16, 1481)));
	array_push($config, array('我的回答', array('ask', 'my_qa'), array(2, 16, 1482)));
	$url = explode('/', $_SERVER['REQUEST_URI']);
	$page = null;
	foreach($config as $value){
		$is = true;
		foreach($value[1] as $key1 => $value1){
			if($value1 != $url[$key1+1]){
				$is = false;
				break;
			}
		}
		if($is == true){
			$page = $value;
			//break;
		}
	}
?>
<?php if($page != null): ?>
	<script type="text/javascript">
		var ga_city = "<?php echo GB_CITY; ?>";
		var ga_channel = "sell";
		var ga_page = "<?php echo $page[0]; ?>";
		var isa_website = "<?php echo implode(',', $page[2]); ?>";
		var isa_context_id = "";
        var isa_city = "<?php echo GB_CITY; ?>";
		var t2_ga_channel = "sell";
		var t2_ga_page = "<?php echo $page[0]; ?>";
		var website = "2,171";
	</script>
	<script type="text/javascript" src="//stat.house365.com/365count.js"></script>
<?php endif; ?>

<!--2018-->
<style>

    .item_relative_hf{float:left; width:207px;}
    .forms .inputText_hf{ width:171px;}
    .select_box{ position:relative; z-index:9; float:left; width:75px; height:32px;margin-right:17px;}
    .select_box .select{width:62px; padding:0 0 0 11px; float:left; cursor:pointer;  color:#767676; position:absolute; left:0;top:0;_top:2px;}
    .select_box .select_list{ height:190px;/* overflow-y:scroll; overflow-x:hidden;*/ display:none; border:1px solid #d9d9d9; width:73px; position:absolute; left:0; top:28px; background:#fff none repeat scroll 0 0;overflow-x:hidden;overflow-y:scroll}

    .select_box .select_link{ display:block; height:25px; line-height:25px; padding-left:11px; width:62px;}
    .select_box .select_link:hover{ color:#fff; background:#ff8400; text-decoration:none;}


</style>
<script>
    $(function(){
        $("#js_select_box").hover(function(){
            $(this).find(".select_list").show();
        },function(){
            $(this).find(".select_list").hide();
        });

    $('.account-btn').click(function (){
        $('.qrcode_login').hide();
        $('.forms').show();
    })
        $('.qr-code-btn').click(function () {
            $('.qrcode_login').show();
            $('.forms').hide();
        })
    $.ajax({
          url: '/login/qrCode',
          type: 'get',
          dataType: 'json',
          sync: true,
          success: function (response) {
              console.log(response);
              if (response.result === '0') {
                  layer.msg(response.msg);
              }
              $("#qrcode_img").attr('src',response.login_img);
              var uuid = response.key;
              var qrcodeLogin = setInterval(function (){
                  $.ajax({
                      url: '/login/qrCodeLogin',
                      type: 'post',
                      dataType: 'json',
                      data: {uuid:uuid},
                      sync: true,
                      success: function (response) {
                          console.log(response);
                          var msg = response.msg;

                          if (msg === 'expired') {
                              clearInterval(qrcodeLogin);
                              layer.msg('登录失败,请刷新二维码重新登录');
                              return;
                          }

                          if (msg === 'wait') {
                              return;
                          }

                          if (msg === 'success' || msg === 'has_login') {
                              clearInterval(qrcodeLogin);
                              layer.msg('登录成功',{
                                  icon: 1,
                                  time: 2000
                              },function (){
                                  location.href = "/";
                              })
                          }  else {
                              var errorMsg = '';
                              switch(msg) {
                                  case 'u_p_error':
                                      errorMsg = '账号不正确,请刷新二维码重新扫描';
                                      break;
                                  case 'vad_error':
                                  case 'exp_error':
                                      errorMsg  = '该账号已到期，请联系网站工作人员！';
                                      break;
                                  default:
                                      errorMsg = '登陆失败，请稍后再试！';
                                      break;
                              }
                              clearInterval(qrcodeLogin);
                              layer.msg(errorMsg);
                          }

                      }
                  })
              },1000 * 10)
          }
      })

    })
</script>
<!--2018-->
</body>
</html>
