<!--标签零售样式-->
<style>
#asideBox .bq1 { background: url("<?=STATIC_SOURCE_URL?>/zsb/images/v1.0/bq_sprites.png") no-repeat 0 -138px ;}
#asideBox .on .bq1{ background: url("<?=STATIC_SOURCE_URL?>/zsb/images/v1.0/bq_sprites.png") no-repeat 0 0 ;}
.bq-record{border-collapse: collapse; border-spacing: 0;table-layout: fixed;margin:20px 10px;}
.bq-record td,.bq-record th{border: solid 1px #d9d9d9; padding: 3px;text-align: center;height: 30px;width: 5%;}
.bq-record th{color:#333;background-color: #ebebeb;}
.bq-record td{color: #333;}
</style>
<!--标签零售样式结束-->
<!---->
<div id="centre" class="layout">
		<div class="centreInner ">
				<div class="mainInner radius5 "> 
						<!---->
						<div class="belongBox radius5">
								<div class="personalPInner fdPayInner clearfix"> 
										
										<!---->
										
										<div class="nameBox"> <span class="bold mr45 left">&nbsp;姓名：<span class="color1"><?= $info['truename'] ?></span></span> <span class="bold left">账户：</span><em class="color2 mr45 left"><?= $info['username'] ?></em> <span class="bold left">等级：</span><em class="color2 mr45 left">Lv<?= $info['level'] ?></em> <span class="bold left">房豆：</span><em class="color3 left"><?= $info['credit'] ?></em>
												<div class="btnFBbox btnLJCZbox left"> <a class="btnB btnSubmit radius5" href="<?=$payment_url?>" target="_blank">立即充值</a> </div>
												<span class="left m_l_10"><a href="<?=$documentation['what_credit']?>" target="_blank" class="help_pay">什么是房豆</a>丨<a href="<?=$documentation['get_credit']?>" target="_blank" class="help_pay_link">获取房豆说明</a></span>
										</div>
								</div>
								
								<!----> 
								
						</div>
						<!---->
						
						<div class="belongBox belongBox_visible radius5">
								<div class="titleTabBox titleTabBoxPay">
										<div class="titleTab">
												<div class="titleTabB clearfix">
														<dl class="list">
																<dd class="item itemOn"> <a href="/vas_set_promot/schoolHouse/" class="link">我要购买</a> </dd>
																<dd class="item"> <a href="/vas_set_promot/myList/" class="link">我的购买记录</a> </dd>
														</dl>
												</div>
										</div>
								</div>
								<div class="tab_box_p_001 tab_box_p_001_pay"> <a class="link" href="/vas_set_promot/schoolHouse/">学区房定投</a><a class="link linkOn" href="/vas_set_promot/greatBroker/">优秀经纪人定投</a> </div>
								
								
								<div class="pay_dt_jjr_box">
										<span class="gb">优秀经纪人定投推广 二手房首页唯一推荐经纪人</span>
										<span class="h4">推广周期：<span class="c">3</span>天</span>
										<a href="<?=$documentation['great_broker_rule']?>" class="link" target="_blank">查看详细规则说明&gt;&gt;</a>
								</div>
								
								
								<div class="pay_fd_tip"><span class="c">温馨提示：必须拥有至少3条店铺推荐房源才可参与定投推广！</span><a class="help_link" href="<?=$documentation['shop_recommend_rule']?>" target="_blank">如何设置店铺推荐房源？</a> </div>
						</div>
						
						<!---->
                        <div class="pay_more_link pay_more_link02"><span class="h4">推广形式</span><a class="link" href="<?=$documentation['greate_broker_example_online']?>" target="_blank">查看线上包装示例&gt;&gt;</a></div>
                        
                        
						<div class="pay_zw_box clearfix">
								<div class="left">
										<div class="pay_zw_item pay_zw_item02 radius5">
												<img alt="" class="img_p" src="<?=STATIC_SOURCE_URL?>/zsb/images/v1.0/pay_ico_zx12.png">
												
										</div>
								</div>
								<div class="right">
										<div class="pay_zw_item pay_zw_item02 radius5">
											
											<div class="hd">
												<span class="i">&nbsp;</span>
												<span class="h4">我要购买</span>
											</div>
											
											
												
												
													<!--		打折可以买	 -->	
													<div class="pay_zw_item_inner pay_zw_item_inner02 clearfix">
											
														<div class="info">
                                                                 <?php if($GreatBrokerPrice['cost_price']!=$GreatBrokerPrice['current_price']&&$GreatBrokerPrice['current_price']!=0){?>
																<div class="pirce_y">原价：<span class="c"><?=$GreatBrokerPrice['cost_price']?></span>房豆/期</div>
																<div class="pirce">现价: <span class="c"><?=$GreatBrokerPrice['current_price']?></span>房豆/期</div>
                                                                 <?php }else{?>
                                                                <div class="pirce">价格: <span class="c"><?=$GreatBrokerNowPrice?></span>房豆/期</div>
                                                                 <?php }?>
																<div class="pay_zw_item_relative"> 
                                                                    <?php if($judgeGradeBroker['status']==1){?>
                                                                    <a href="javascript:void(0)" class="btn btnConColor radius5 okBuy">我要购买</a>
                                                                    <?php }else{?>
                                                                    <a href="javascript:void(0)" class="btn btnCon radius5">我要购买</a>
                                                                    	<div class="text"><?=$judgeGradeBroker['msg']?></div>
																		<div class="ico">&nbsp;</div>
                                                                    <?php }?>
                                                                </div>
														</div>
											
												</div> 
											
		
												
												
										</div>
								</div>
						</div>
						
						<!--pay_zw_item_relative-->
						
						
						
						
				
						
						
						
					
			
						
						<!---->
						
						<div class="belongBox belongBox_visible radius5">
								<div class="tglc_box_pay clearfix">
										<h4 class="h4">推广流程</h4>
										<img  alt="" src="<?=STATIC_SOURCE_URL?>/zsb/images/v1.0/pay_ico_zx10.png"> </div>
						</div>
				</div>
		</div>
</div>
</body>

</html>
<script>
$(function(){
    $(".okBuy").click(function(){
        
           $.ajax({
            type: 'post',
            url : '/vas_set_promot/isTopHouse/',
            data: '',
            dataType:'json',
            success: function(msg){
                if(msg['status']==1){                   
                    openWin("warning4");                  
                }else{
                    openWin("warning3");
                }
            }
          });
        
    });
    
          $(".toBuy").click(function(){              
           $.ajax({
            type: 'post',
            url : '/vas_set_promot/gradeBrokerBuy/',
            data: '',
            dataType:'json',
            success: function(msg){
                if(msg['status']==1){
                    $("#waring_text").html("交易号："+msg['transaction_id']);
                    openWin("warning1");
                    window.setTimeout("window.location.href='/vas_set_promot/myList/'; ",3000);
                }else{
                    openWin("warning2");
                }
            }
          });
      });
    
    
})
</script>
<div style="display:none;" class="dialog dialogW340 radius5" id="warning1">
		<div class="hd">
				<h3 class="h3">提示</h3>
				<p class="close close-win" title="关闭">关闭 </p>
		</div>
		<div class="mod">
				<div class="textMod textMod003"><img alt="" src="<?=STATIC_SOURCE_URL?>/zsb/images/v1.0/okBg.png"> 恭喜您，购买成功！</div>
				<div class="textHd_new textHd_new02">
						<p> 购买产品：<span class="c2">定投推广&mdash;优秀经纪人</span></p>
						<p id="waring_text"></p>
						<p>温馨提示：工作人员会尽快给您排期反馈，</p>
						<p>您可以在<a class="c1" href="/vas_set_promot/greatBroker/">我的购买记录</a>中查看实时进度。</p>
				</div>
		</div>
</div>
<div style="display:none;" class="dialog dialogW340 radius5"  id="warning2">
		<div class="hd">
				<h3 class="h3">提示</h3>
				<p class="close close-win" title="关闭">关闭 </p>
		</div>
		<div class="mod">
				<div class="textMod textMod003"><img alt="" src="<?=STATIC_SOURCE_URL?>/zsb/images/v1.0/failureBg.png"> 很遗憾，购买失败！</div>
				<div class="textHd_new">
						<div class="textHd_new_link "><a href="###" class="close-win">再试一次吧！</a></div>
				</div>
		</div>
</div>

<div class="dialog dialogW485 radius5" style="display:none;" id="warning3">
		<div class="hd">
				<h3 class="h3">提示</h3>
				<p title="关闭" class="close close-win">关闭 </p>
		</div>
		<div class="mod">
				<div class="textMod textMod005">购买产品：<span class="ch">优秀经纪人</span></div>
				<div class="sb_text_box">
						<p class="p">很遗憾，您没有达到申请条件，必须拥有至少3条店铺推荐房源。您可以</p>
						<p class="p">1.发布多图房源  <a href="/sell/add/" class="c2" target="_blank">去发布房源 &gt;&gt;</a></p>
						<p class="p">2.设置店铺推荐房源  <a href="/shop/shop_house_recommend/" class="c2" target="_blank">去设置推荐房源 &gt;&gt;</a></p>
				</div>
				<div class="img_pirce_box"> 确认要支付<strong class="num"><?=$GreatBrokerNowPrice?></strong>房豆吗？ </div>
				<div class="pop_pay_btn_box"> <a  class="btn btnCon btnCon_none radius5" href="javascript:void(0)">确认支付</a> <a class="btn btnCon radius5 close-win" href="javascript:void(0)">取消</a> </div>
		</div>
</div>


<div class="dialog dialogW340 radius5" style="display:none;"id="warning4" >
		<div class="hd">
				<h3 class="h3">提示</h3>
				<p title="关闭" class="close close-win">关闭 </p>
		</div>
		<div class="mod">
				<div class="textMod textMod005">购买产品：<span class="ch">优秀经纪人</span></div>
				<div class="img_pirce_box "> 确认要支付<strong class="num"><?=$GreatBrokerNowPrice?></strong>房豆吗？ </div>
				<div class="pop_pay_btn_box pop_pay_btn_box02"> <a  class="btn savePrjoect btnConColor radius5 toBuy close-win" href="javascript:void(0)">确认支付</a> <a class="btn btnCon radius5 close-win" href="javascript:void(0)">取消</a> </div>
		</div>
</div>