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.

88 lines
3.5 KiB
HTML

5 years ago
<extend name="Public/bases" />
<block name="css">
<link href="__CSS__/shop.css" rel="stylesheet" >
<meta name="format-detection" content="telephone=no" />
</block>
<block name="body" >
<body class="shop">
<header class="header index-header">
<div class="">
<h1 class="caption">积分商城</h1>
</div>
</header>
<div class="occupy"></div>
<section class="trunker">
<section class="container">
<div class="banner">
<div class="wrap">
<i class="iconfont icon-money-pile"></i>
<span>可用积分:{$point}</span>
<p></p>
</div>
</div>
<ul class="s-tab clearfix">
<li><a href="{:U('exchangecoin')}" class=""><span>兑换平台币</span></a></li>
<li><a href="{:U('exchangerecord')}"><i class="iconfont icon-list"></i><span>兑换记录</span></a></li>
</ul>
<div class="t-list shop-list">
<ul class="clearfix" id="ajaxContainer" currentpage="{$page}" name="{$name}">
<foreach name="data" item="v">
<li>
<div class="item">
<a href="{$v['url']}" class="iconwrap za_icon">
<img src="{$v['cover']}" class="icon" onerror="this.src='__IMG__/empty.jpg';this.onerror=null">
</a>
<a href="{$v['url']}" class="name">{$v['good_name']}</a>
<p>
<span><i class="iconfont icon-money-pile"></i><i class="icon_text">{$v['price']}</i></span>
<a href="{:U('Shop/shopdetail',array('id'=>$v['id']))}" class="exchangebtn">兑换</a>
</p>
</div>
</li>
</foreach>
</ul>
</div>
</section>
</section>
<div class="space"></div>
<div class="loading ms-none" id="moreBtn"><a href="javascript:" class="link"></a></div>
<script src="__JS__/ajaxload.js"></script>
<script src="__JS__/pop.lwx.min.js"></script>
<script>
var ac = $('#ajaxContainer');
var popmsg = $('.loading').pop();
ajaxload('{:U("ajaxlists")}',{},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="'+item.url+'" class="iconwrap za_icon">'+
' <img src="'+item.cover+'" class="icon" onerror="this.src=\'__IMG__/empty.jpg\';this.onerror=null">'+
' </a>'+
' <a href="'+item.url+'" class="name">'+item.good_name+'</a>'+
' <p>'+
' <span><i class="iconfont icon-money-pile"></i><i class="icon_text">'+item.price+'</i></span>'+
' <a href="javascript:;" class="exchangebtn">兑换</a>'+
' </p>'+
' </div>'+
'</li>';
}
ac.append(html);
$('.loading').addClass('ms-none');
$('#moreBtn').removeClass('ms-none');loads=false;
} else {
$('.loading').addClass('ms-none');
popmsg.msg('已经到底了~');
// $('#moreBtn').show().html('已经到底了~');
}
});
</script>
</block>