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.
95 lines
3.3 KiB
HTML
95 lines
3.3 KiB
HTML
2 years ago
|
<extend name="Public/bases" />
|
||
|
<block name="css">
|
||
|
<link href="__CSS__/user.css" rel="stylesheet" >
|
||
|
</block>
|
||
|
<block name="body" >
|
||
|
|
||
|
<body class="">
|
||
|
<header class="header">
|
||
|
<div class="">
|
||
|
<a href="{:U('User/index')}" class="hbtn back"><i class="iconfont icon-drop-left"></i></a>
|
||
|
<h1 class="caption">我的评论</h1>
|
||
|
|
||
|
</div>
|
||
|
</header>
|
||
|
<div class="occupy"></div>
|
||
|
<section class="trunker">
|
||
|
<section class="container">
|
||
|
|
||
|
<notempty name='data'>
|
||
|
<div class="trunker-section user-comment-list ">
|
||
|
<p class="total">共{$count}条评论</p>
|
||
|
<ul class="t-content clearfix" id="ajaxContainer" currentpage="1">
|
||
|
<volist name='data' id="vo">
|
||
|
<li>
|
||
|
<div class="item">
|
||
|
<a href="{:U('Game/detail',array('id'=>$vo['game_id']))}" class="za_iconcomment">
|
||
|
<img src="{$vo['game_icon']}" class="icon" onerror="this.src='__IMG__/empty.jpg';this.onerror=null">
|
||
|
|
||
|
</a>
|
||
|
<div class="text">
|
||
|
<div class="namebox">
|
||
|
<a href="" class="name">{$vo.nickname}</a>
|
||
|
<span class="time">{$vo.create_time}</span>
|
||
|
</div>
|
||
|
<p class="des">{$vo.comment}</p>
|
||
|
</div>
|
||
|
</div>
|
||
|
</li>
|
||
|
</volist>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<else/>
|
||
|
<div class="emptybg">
|
||
|
<div class="empty ">
|
||
|
<img src="__IMG__/not.png" class="icon">
|
||
|
<p>目前还没有发表过评论哦~</p>
|
||
|
</div>
|
||
|
</div>
|
||
|
</notempty>
|
||
|
</section>
|
||
|
</section>
|
||
|
<div class="popmsg pop-dialog"></div>
|
||
|
<script src="__JS__/ajaxload.js"></script>
|
||
|
<script src="__JS__/pop.lwx.min.js"></script>
|
||
|
<script>
|
||
|
$(document).keyup(function(event){
|
||
|
if(event.keyCode ==13){
|
||
|
$('#form').submit();
|
||
|
}
|
||
|
});
|
||
|
var pmsg = $('.popmsg').pop();
|
||
|
<?php if(!$data){?>
|
||
|
pmsg.msg('暂无数据');
|
||
|
<?php }?>
|
||
|
var ac = $('#ajaxContainer');
|
||
|
ajaxload('{:U("ajaxComment")}',{},function(data) {
|
||
|
if (data.status == 1) {
|
||
|
ac.attr('currentpage',data.page);
|
||
|
var html = '',d = data.lists;
|
||
|
for (var i in d) {
|
||
|
var item = d[i];
|
||
|
html += '<li>'+
|
||
|
' <div class="item"><a href="">'+
|
||
|
' <img src="'+item.head_img+'" class="icon" onerror="this.src=\'__IMG__/empty.jpg\';this.onerror=null">'+
|
||
|
' </a><div class="text">'+
|
||
|
' <div class="namebox">'+
|
||
|
' <a href="" class="name">'+item.nickname+'</a>'+
|
||
|
' <span class="time">'+item.create_time+'</span>'+
|
||
|
' </div>'+
|
||
|
' <p class="des">'+item.comment+'</p>'+
|
||
|
' </div>'+
|
||
|
' </div>'+
|
||
|
'</li>';
|
||
|
}
|
||
|
ac.append(html);
|
||
|
$('.loading').addClass('ms-none');
|
||
|
$('#moreBtn').removeClass('ms-none');loads = false;
|
||
|
} else {
|
||
|
pmsg.msg('已经到底了~');
|
||
|
}
|
||
|
});
|
||
|
</script>
|
||
|
</body>
|
||
|
</block>
|
||
|
<block name="footer"></block>
|