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.

235 lines
9.6 KiB
HTML

5 years ago
<extend name="Public/bases" />
<block name="body" >
<link href="__CSS__/user.css" rel="stylesheet" >
<body class="user">
<header class="header user-index-header">
<div class="">
<if condition="$user['id']">
<a href="javascript:;" class="hbtn sign">
<img src="__IMG__/sign.png">
<empty name="day">
<span class="signed">今日已签</span>
<else/>
<span class="signing">今日签到</span>
</empty>
</a>
<a href="mqqwpa://im/chat?chat_type=wpa&uin={:C('PC_SET_SERVER_QQ')}&version=1&src_type=web&web_src=oicqzone.com" class="hbtn" style="width:4.5rem;right:38px"><img style="width:23px;height:23px;" src="__IMG__/icon_kefu@3x.png"></a>
<a href="{:U('userset')}" class="hbtn set" style="width:4.5rem;"><img style="width: 23px;height: 23px" src="__IMG__/icon_shezhi@3x.png"></a>
<else/>
<a href="{:U('login')}" class="hbtn sign">
<img src="__IMG__/sign.png"><span class="signing">每日签到</span>
</a>
</if>
</div>
</header>
<div class="occupy"></div>
<section class="trunker">
<section class="container">
<div class="banner" style="padding-bottom:1rem;">
<div class="wrap">
<if condition="$user['id']">
<div class="login" style="padding-bottom:0;">
<if condition="C('IS_OPEN_SMALL_ACCOUNT') eq 1">
<div class="div_editortx">
<img class="user_touxiang" onerror="this.src='__IMG__/empty.jpg';this.onerror=null" src="<notempty name='user.head_img'>{$user['head_img']}<else /><eq name='user.sex' value='1'>__IMG__/head_women.png<else />__IMG__/head_men.png</eq></notempty>">
<a class="a_gotoeditor" href="{:U('User/usernick')}"><span>{$user['nickname']}</span><i class="icon_editor"></i></a>
</div>
<div class="clearfix">
<div class="clearfix zuse_div">
<div class="zuser_s">
<div class="z_yel">{$user['balance']}</div>
<div>平台币</div>
</div>
<div class="zuser_s">
<div class="z_yel">{$user['gold_coin']}</div>
<div>金币</div>
</div>
<div class="btn_div">
<a class="a_getcash" href="{:U('Trade/withdraw_gold')}">提现</a>
</div>
</div>
</div>
<else/>
<div class="div_editortx" style="margin-top: 3.7rem">
<img class="user_touxiang" src="<notempty name='user.head_img'>{$user['head_img']}<else /><eq name='user.sex' value='1'>__IMG__/head_women.png<else />__IMG__/head_men.png</eq></notempty>">
<a class="a_gotoeditor" href="{:U('User/usernick')}"><span>{$user['nickname']}</span><i class="icon_editor"></i></a>
<div class="zuser_s" style="margin-top: 1.5rem;float:right;">
<div class="z_yel">{$user['balance']}</div>
<div>平台币</div>
</div>
</div>
</if>
</div>
<else/>
<div class="nologin">
<a href="{:U('User/login')}"><img src="__IMG__/portrait_not.png"></a>
<p class="nick">点击头像登录账户</p>
</div>
</if>
</div>
</div>
<div class="t-list user-index-list" style="padding-top:0;">
<ul class="clearfix">
<li>
<?php $userbindcoin = $user['id'] ? U('userbindcoin') : U('login');?>
<a class="item" href="{$userbindcoin}">
<img src="__IMG__/user1.png" class="icon"><p class="name">绑币管理</p>
</a>
</li>
<li>
<?php $recharge = $user['id'] ? U('recharge') : U('login');?>
<a class="item" href="{$recharge}">
<img src="__IMG__/user2.png" class="icon"><p class="name">账户充值</p>
</a>
</li>
<li>
<?php $userintegral = $user['id'] ? U('userintegral') : U('login');?>
<a class="item" href="{$userintegral}">
<img src="__IMG__/user3.png" class="icon"><p class="name">我的积分</p>
</a>
</li>
<li>
<?php $usergame = $user['id'] ? U('usergame') : U('login');?>
<a class="item" href="{$usergame}">
<img src="__IMG__/user4.png" class="icon"><p class="name">我的游戏</p>
</a>
</li>
<li>
<?php $usercollection = $user['id'] ? U('usercollection') : U('login');?>
<a class="item" href="{$usercollection}">
<img src="__IMG__/user5.png" class="icon"><p class="name">我的收藏</p>
</a>
</li>
<li>
<?php $usergift = $user['id'] ? U('usergift') : U('login');?>
<a class="item" href="{$usergift}">
<img src="__IMG__/user6.png" class="icon"><p class="name">我的礼包</p>
</a>
</li>
<li>
<?php $usercomment = $user['id'] ? U('usercomment') : U('login');?>
<a class="item" href="{$usercomment}">
<img src="__IMG__/user7.png" class="icon"><p class="name">我的评论</p>
</a>
</li>
<li>
<?php $userinvitation = $user['id'] ? U('userinvitation') : U('login');?>
<a class="item" href="{$userinvitation}">
<img src="__IMG__/user8.png" class="icon"><p class="name">我的邀请</p>
</a>
</li>
<li>
<?php $exchangerecord = $user['id'] ? U('exchangerecord') : U('login');?>
<a class="item" href="{$exchangerecord}">
<img src="__IMG__/user9.png" class="icon"><p class="name">兑换记录</p>
</a>
</li>
<if condition="C('IS_OPEN_SMALL_ACCOUNT') eq 1">
<li>
<?php $withdraw_record = $user['id'] ? U('withdraw_record') : U('login');?>
<a class="item" href="{$withdraw_record}">
<img src="__IMG__/icon_tixian@3x.png" class="icon"><p class="name">提现记录</p>
</a>
</li>
</if>
<!-- <li>
5 years ago
<?php $useing_record = $user['id'] ? U('useing_record') : U('login');?>
<a class="item" href="{$useing_record}">
<img src="__IMG__/icon_xiaofei@3x.png" class="icon"><p class="name">消费记录</p>
</a>
</li> -->
5 years ago
<!-- 最后一个空矩形框,无内容 begin! -->
<li>
<a class="item" >
<img src="__IMG__/user9.png" class="icon" style="visibility:hidden;"><p style="visibility:hidden;" class="name">消费记录</p>
</a>
</li>
<!--end! 最后一个空矩形框,无内容 -->
</ul>
</div>
</section>
</section>
<div class="space"></div>
<footer class="footer">
<ul class="nav clearfix">
<li><a class="item" href="index.html"><i class="iconfont icon-home"></i><span>首页</span></a></li>
<li><a class="item" href="gift.html"><i class="iconfont icon-gift"></i><span>礼包</span></a></li>
<li><a class="item" href="shop.html"><i class="iconfont icon-shop"></i><span>商城</span></a></li>
<li><a class="item" href="news.html"><i class="iconfont icon-news"></i><span>资讯</span></a></li>
<li><a class="item active" href="user.html"><i class="iconfont icon-user"></i><span>我的</span></a></li>
</ul>
</footer>
<div class="pop pop-window">
<div class="pop-box pop-sign">
<div class="pop-wrap"></div>
</div>
</div>
<div class="hidden" id="sign_in">
<a href="javascript:;" class="pop-close"></a>
<h2 class="pop-sign-title"></h2>
<div class="pop-sign-list">
<ul class="clearfix">
<for start="1" end="8">
<li>
<div class="item <if condition='$i elt $sign_day'>on</if>">
<div class="picbox">
<img style="position:static;" src="<if condition='$i elt $sign_day'>__IMG__/sign_yes.png<else/>__IMG__/sign_not.png</if>">
<span>积分{$i}</span>
</div>
<p>第{$i}天</p>
</div>
</li>
</for>
</ul>
</div>
<p class="sign-notice">连续签到天数越多积分越多每7天循环一次</p>
<div class="pop-btnbox">
<empty name="day">
<a href="javascript:;" class="pop-btn pop-confirm disabled pop-signing jsconfirm ">已签到</a>
<else/>
<a href="javascript:;" id="jsconfirm" class="pop-btn pop-confirm pop-signing jsconfirm">确定</a>
</empty>
</div>
</div>
<div class="popmsg pop-dialog"></div>
<script src="__JS__/pop.lwx.min.js"></script>
<script>
$(function() {
var pmsg = $('.popmsg').pop();
$('.sign').click(function() {
var html = $("#sign_in").html();
var pop = $('.pop').pop().open(800,html);
$('#jsconfirm').click(function() {
$.ajax({
url:"{:U('User/sign_in')}",
type:"post",
dataType:"json",
data:{},
success:function(result){
pmsg.msg(result.info);
location.reload();
},
error:function(){
alert('服务器异常');
}
})
pop.close();
});
$('.disabled').click(function(){
pop.close();
})
$('.pop-close').click(function(){
pop.close();
})
});
});
</script>
</body>
</block>