<!--{assign var="menu_id" value="party"}-->
<!--{include file="<!--{$oetplpath}-->widget/block_header.tpl"}-->
<body class="bg_body">
<!--{include file="<!--{$oetplpath}-->widget/block_top.tpl"}-->
<div class="w1200 pt30">
  <div class="bg_f br10 clearfix p20">
    <div class="fl pr oh" style="width: 400px;height: 280px;">
      <img class="ob_c" src="<!--{$party.drawimg}-->" alt="封面">
      <!--{if $login.status == '0'}-->
        <!--{if $party.bm == '2'}-->
        <div class="pa lb w100per plr10 bsb bg_tran_5 color_f lh30">报名已经结束</div>
        <!--{/if}-->
      <!--{else}-->
        <!--{if $party.bm == '1'}-->
        <div class="pa lb w100per plr10 bsb bg_tran_5 color_f lh30">你已报名</div>
        <!--{elseif $party.bm == '2'}-->
        <div class="pa lb w100per plr10 bsb bg_tran_5 color_f lh30">报名结束</div>
        <!--{elseif $party.bm == '3'}-->
        <div class="pa lb w100per plr10 bsb bg_tran_5 color_f lh30">名额已满</div>
        <!--{elseif $party.bm == '4'}-->
        <div class="pa lb w100per plr10 bsb bg_tran_5 color_f lh30">已报名，待付款</div>
        <!--{/if}-->
      <!--{/if}-->
    </div>
    <div class="fl" style="width: 504px;margin-left: 40px;">
      <h3 class="fz20 mb15"><!--{$party.title}--></h3>
      <div class="text color_6">
        <em class="iconfont icon-shijian fz18 pr t1"></em>
        <span><!--{$party.starttime|date_format:"%Y/%m/%d %H:%M"}--> ~ <!--{$party.endtime|date_format:"%Y/%m/%d %H:%M"}--></span>
      </div>
      <div class="mtb10 color_6 lhn">
        <em class="iconfont icon-dingwei fz18"></em>
        <span><!--{area type="text" value=$party.area1}--> <!--{area type="text" value=$party.area2}--> <!--{area type="text" value=$party.area3}--> <!--{$party.address}--></span>
      </div>
      <div class="clearfix ptb20 t_center">
        <div class="fl" style="width: 107px;">
          <div>
            <!--{if $party.limitman >0}--><strong class="fz18"><!--{$party.limitman}--></strong>人<!--{else}--><strong class="fz18">不限</strong><!--{/if}-->
          </div>
          <div class="color_9">男士</div>
        </div>
        <div class="fl" style="width: 107px;">
          <div>
            <strong class="fz18">100</strong>人
          </div>
          <div class="color_9">女士</div>
        </div>
        <div class="fl" style="width: 107px;">
          <div>
            <!--{if $party.moneyman >0}-->￥<strong class="fz18"><!--{$party.moneyman}--></strong><!--{else}--><strong class="color_green fz18">免费</strong><!--{/if}-->
          </div>
          <div class="color_9">男士</div>
        </div>
        <div class="fl" style="width: 107px;">
          <div>
            <!--{if $party.moneylady >0}-->￥<strong class="fz18"><!--{$party.moneylady}--></strong><!--{else}--><strong class="color_green fz18">免费</strong><!--{/if}-->
          </div>
          <div class="color_9">女士</div>
        </div>
      </div>
      <div class="btn_box clearfix mt10">
        <!--{if $login.status == '0'}-->
          <!--{if $party.bm == '2'}-->
          <span class="ptb10 cursor plr30 fz16 br3 bg_c color_f"><em></em>已结束报名</span>
          <!--{else}-->
            <!--{if $config.partybm_limit_needidrz == '1' || $config.partybm_limit_vip == '1'}-->
            <a class="ptb10 cursor plr30 fz16 br3 bg_main color_f inline_block" href="<!--{routeurl module='passport' action='login'}-->"><em></em>我要报名</a>
            <!--{else}-->
            <a class="ptb10 cursor plr30 fz16 br3 bg_main color_f inline_block" href="<!--{routeurl module='passport' action='login'}-->"><em></em>我要报名</a>
            <!--{/if}-->
          <!--{/if}-->
        <!--{else}-->
          <!--{if $party.bm == '1'}-->
          <span class="ptb10 cursor plr30 fz16 br3 bg_de color_f"><em></em>你已报名</span>
          <!--{elseif $party.bm == '2'}-->
          <span class="ptb10 cursor plr30 fz16 br3 bg_c color_f"><em></em>报名结束</span>
          <!--{elseif $party.bm == '3'}-->
          <span class="ptb10 cursor plr30 fz16 br3 bg_c color_f"><em></em>名额已满</span>
          <!--{elseif $party.bm == '4'}-->
          <span class="ptb10 cursor plr30 fz16 br3 bg_gao color_f" onclick="window.location.href='<!--{$urlpath}-->index.php?m=user&c=party';"><em></em>已报名，待付款</span>
          <!--{else}-->
            <!--{if $config.partybm_limit_needidrz == '1' && $login.info.idrz != '1'}-->
            <span class="ptb10 cursor plr30 fz16 br3 bg_main color_f" f="pop_partybm" data-id="<!--{$party.partyid}-->" data-type="idrz"><em></em>我要报名</span>
            <!--{elseif $config.partybm_limit_vip == '1' && $login.info.isvip != '1'}-->
            <span class="ptb10 cursor plr30 fz16 br3 bg_main color_f" f="pop_partybm" data-id="<!--{$party.partyid}-->" data-type="vip"><em></em>我要报名</span>
            <!--{else}-->
            <span class="ptb10 cursor plr30 fz16 br3 bg_main color_f" f="pop_partybm" data-id="<!--{$party.partyid}-->"><em></em>我要报名</span>
            <!--{/if}-->
          <!--{/if}-->
        <!--{/if}-->
      </div>
    </div>
    <div class="fr" style="width: 202px;">
      <div class="qr w100per bo_eb br3 p5 bsb">
        <img class="w100per" src="<!--{$oefile}-->?c=scan&a=scan&mod=party&id=<!--{$party.partyid}-->&size=8" alt="二维码">
      </div>
      <div class="color_9 fz14 mt5 t_center">手机扫一扫 快速报名</div>
      <div class="text mt15 t_center">
        <div class="line bo_beb inline_block vam" style="width: 50px;"></div>
        <div class="color_9 inline_block vam plr5">
          已报名<span class="color_red"><!--{$party.bmnums}--></span>人
        </div>
        <div class="line bo_beb inline_block vam" style="width: 50px;"></div>
      </div>
    </div>
  </div>
</div>
<div class="w1200 pt30 clearfix pb30">
  <div class="left fl" style="width: 770px;">
    <div class="party_content bg_f br10 p30">
      <h3 class="t_center fz18">活动详情</h3>
      <div class="m0_a bg_main mt10" style="height: 3px;width: 25px;"></div>
      <div class="content pt30">
        <!--{$party.content}-->
      </div>
    </div>
    <div class="share bg_f br10 mt30 t_center bsb p20" style="height:200px;padding-top: 80px;">
      <span class="color_9 fz16 inline_block vam">分享至：</span>
      <span class="share inline_block vam">
        <div class="bdsharebuttonbox" style=""><a href="javascript:;" class="bds_more" data-cmd="more"></a><a title="分享到QQ空间" href="javascript:;" class="bds_qzone" data-cmd="qzone"></a><a title="分享到新浪微博" href="javascript:;" class="bds_tsina" data-cmd="tsina"></a><a title="分享到腾讯微博" href="javascript:;" class="bds_tqq" data-cmd="tqq"></a><a title="分享到人人网" href="javascript:;" class="bds_renren" data-cmd="renren"></a><a title="分享到微信" href="javascript:;" class="bds_weixin" data-cmd="weixin"></a></div>
        <script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"24"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
      </span>
    </div>
  </div>
  <div class="right fr" style="width: 400px;">
    <div class="sign_up bg_f p20 br10">
      <h3 class="t_center fz18">报名会员</h3>
      <div class="m0_a bg_main mt10" style="height: 3px;width: 25px;"></div>
      <!--{assign var="bmlist" value=vo_list("mod={partybm} where={v.partyid='<!--{$party.partyid}-->'} num={10}")}-->
      <!--{if empty($bmlist)}-->
      <div class="oe_nodata">
        <p class="p_1"><img src="<!--{$skinpath}-->images/nodata.jpg" /></p>
        <p class="p_2">暂时没有任何数据！~</p>
      </div>
      <!--{else}-->
      <ul class="clearfix mt20">
        <!--{foreach $bmlist as $val}-->
        <li class="fl w25per">
          <div class="avatar oh br30 img_50 m0_a">
            <!--{if !empty($val.headimg)}-->
            <img class="ob_c" src="<!--{$val.headimg_s}-->" />
            <!--{else}-->
            <!--{if $val.gender == '1'}-->
            <img class="ob_c" src="<!--{$urlpath}-->tpl/static/images/gender_1.png" />
            <!--{else}-->
            <img class="ob_c" src="<!--{$urlpath}-->tpl/static/images/gender_2.png" />
            <!--{/if}-->
            <!--{/if}-->
          </div>
          <div class="color_6 ws fz12 mt5 t_center bsb plr5"><!--{$volist.username}--></div>
        </li>
        <!--{/foreach}-->
      </ul>
      <!--{/if}-->
    </div>
  </div>
</div>

<input type="hidden" id="partyid" value="<!--{$party.partyid}-->" />
<!--{include file="<!--{$oetplpath}-->widget/block_footer_oeui.tpl"}-->
<script src="<!--{$skinpath}-->js/party.js?r=<!--{$copyright_version}-->"></script>

<!--{if intval($config.baidumap_flag) == '1'}-->
<!--{if !empty($party.maplng) && !empty($party.maplat)}-->
<!--{assign var="baidu_map_key" value="<!--{$config.baidumap_key}-->"}-->
<!--{if empty($baidu_map_key)}-->
<!--{assign var="baidu_map_key" value="d9jat2VxBFnIEWKGs2NaxAowYXDvlzal"}-->
<!--{/if}-->
<!--{if $config.https == '1'}-->
<script type="text/javascript" src="https://api.map.baidu.com/api?v=2.0&ak=<!--{$baidu_map_key}-->"></script>
<!--{else}-->
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=<!--{$baidu_map_key}-->"></script>
<!--{/if}-->
<script type="text/javascript">
    function _getMap($lng, $lat, $address, $mapid) {
        var map_obj = ""; //地图对象
        var map_point = ""; //坐标对象
        var map_marker = ""; //标注对象
        map_obj = new BMap.Map($mapid);
        if ($lng.length > 0 && $lat.length > 0) {
            map_point = new BMap.Point($lng, $lat);
            map_obj.centerAndZoom(map_point, 17);
        }
        else {
            if ($address.length > 0) {
                map_obj.centerAndZoom($address, 17);
            }
        }
        map_obj.addControl(new BMap.NavigationControl()); // 添加平移缩放控件
        map_obj.addControl(new BMap.ScaleControl()); // 添加比例尺控件
        map_obj.addControl(new BMap.OverviewMapControl()); //添加缩略地图控件
        map_obj.enableScrollWheelZoom(); //启用滚轮放大缩小
        map_obj.addControl(new BMap.MapTypeControl()); //添加地图类型控件放按

        if ($lng.length > 0 && $lat.length > 0) {
            map_marker = new BMap.Marker(new BMap.Point($lng, $lat));
            map_marker.enableDragging();
            map_obj.addOverlay(map_marker);

            /*
            var infoWindow = new BMap.InfoWindow("<!--{$party.title}--><br/>地址：<!--{area type='text' value=$party.area1}--> <!--{area type='text' value=$party.area2}--> <!--{$party.address}-->");  // 创建信息窗口对象
		map_obj.openInfoWindow(infoWindow,map_point); //开启信息窗口
		*/
        }
    }
    $(function(){
        _getMap("<!--{$party.maplng}-->", "<!--{$party.maplat}-->", "<!--{area type='text' value=$party.area1}--> <!--{area type='text' value=$party.area2}-->", "oe_mapcont");
    });
</script>

<!--{/if}-->
<!--{/if}-->

</body>
<style>
  .content img{max-width: 98%;height: auto;}
</style>
</html>