You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
2.5 KiB
HTML

<div class="user-hd laybox">
<div class="user-hd-left fl">
<div class="user-avatar"> <a href="javascript:;"><if condition="get_user_head_img(session('member_auth.mid')) neq ''"><img width="100" height="100" src="{:get_cover(get_user_head_img(session('member_auth.mid')),'path')}
"> <else/><img width="100" height="100" src="__IMG__/game/noavatar_middle.gif"> </if></a>
<!-- <a href="javascript:avapopOpen();" class="btn-avatar">修改头像</a> -->
</div>
<ul class="user-info">
<li>您好,<b><if condition="session('member_auth.nickname') eq 'Uc用户'">Uc用户<else/>{$user.nickname}</if></b>&nbsp;&nbsp;&nbsp;&nbsp; <a href="#" class="quit">[退出]</a> </li>
<li>账号:<if condition="session('member_auth.nickname') eq 'Uc用户'">{:session('member_auth.account')}<else/>{$user.account}</if></li>
<li>上次登录时间:<if condition="session('member_auth.nickname') eq 'Uc用户'">*******<else/>{:date('Y-m-d H:i:s',$user['login_time'])}</if></li>
<li><a href="{:U('Gift/gift')}" class="g-btn-s btn-getlb">领取礼包</a></li>
</ul>
</div>
<div class="user-hd-right fl">
<ul class="remgame-list fix">
<volist name="game_like" id="gl">
<li> <a href="#" class="img">
<img src="{:get_cover($gl['icon'],'path')}" alt="" width="70" height="70" onerror="this.src='__IMG__/empty.jpg';this.onerror=null">
</a>
<div class="info"> <a href="#" class="name">《{$gl.relation_game_name}》</a>
<p><span style="color: red"><if condition='empty($gl["dow_num"])'>0<else/>{$gl.dow_num}</if></span>次下载</p>
<a href="{:U('Game/game_detail',array('id'=>$gl['relation_game_id']))}" class="g-btn-s">立即下载</a> </div>
</li>
</volist>
</ul>
</div>
</div>
<script>
$('.quit').click(function(){
changyanurl="http://changyan.sohu.com/api/2/logout?client_id='{:C('changyan.partner')}'";
$.ajax({
type: 'get',
url: changyanurl,
cache: false,
dataType: "jsonp", //跨域采用jsonp方式
processData: false,
complete:function (data) {
}
});
url = "{:U('Member/logout')}";
$.ajax({
type: 'POST',
url: url ,
success:function(data){
window.location.href=data.reurl;
}
});
});
</script>