<{uqcms m="goods" v="data" c="get_all:cid=smarty.get.cid&key=smarty.get.key&shop_id=smarty.get.shop_id&group_cid=smarty.get.group_cid&brand=smarty.get.brand&page=smarty.get.page&page_size=10&page_type=2&attr=smarty.get.attr&sort=smarty.get.sort"}> 
<{import file="common.html" title=$data.cats_name}>
<link rel="stylesheet" type="text/css" href="<{$__APP__}>public/css/index.css?t=<{$smarty.now}>">
<style type="text/css">
.px{ width:100%; border-bottom:1px solid #eee; border-top:1px solid #eee; background:#fff; margin-bottom:0.5rem; float:left; }
.px a{ padding:0.8rem 0.8rem 0.7rem; font-size:0.85rem; float:left; }
.px a.ch{ color:#f00; margin:0; }
.px a i{ line-height:0.5rem; font-size:0.80rem; } 
.px a.ch i{ color:#fff; line-height:0.5rem; font-size:0.80rem; } 
</style>
<{import file="header.html"}>
<div class="px">
	<a href="?m=goods&cid=<{$smarty.get.cid}>&brand=<{$smarty.get.brand}>&attr=<{$smarty.get.attr}>" <{if $smarty.get.sort == ''}>class="ch"<{/if}>>默认</a>
	<a href="?m=goods&cid=<{$smarty.get.cid}>&brand=<{$smarty.get.brand}>&attr=<{$smarty.get.attr}>&sort=volume" <{if $smarty.get.sort == 'volume'}>class="ch"<{/if}>>销量</a> 
	<a href="?m=goods&cid=<{$smarty.get.cid}>&brand=<{$smarty.get.brand}>&attr=<{$smarty.get.attr}>&sort=<{if $smarty.get.sort == 'price'}>_price<{else}>price<{/if}>" <{if $smarty.get.sort == 'price' || $smarty.get.sort == '_price'}>class="ch"<{/if}>>价格<i><{if $smarty.get.sort == 'price'}>↓<{else}>↑<{/if}></i></a> 
	<a href="?m=goods&cid=<{$smarty.get.cid}>&brand=<{$smarty.get.brand}>&attr=<{$smarty.get.attr}>&sort=comment" <{if $smarty.get.sort == 'comment'}>class="ch"<{/if}>>评论数</a> 
</div>
<div class="hot_box">
	<div class="hot_con" id="container"> 
	<{if $data.list}> 
		<{foreach item=i from=$data.list}> 	
			<div class="gs_box">
				<div class="img"><a href="?m=goods&a=detail&id=<{$i.id}>"><img data-original="<{$__IMG__}><{$i.images|img_size:320x320}>" class="lazy"/></a></div>
				<div class="con">
					<div class="ttl"><a href="?m=goods&a=detail&id=<{$i.id}>"><{$i.title}></a></div> 
					<div class="pr">
						<{if $i.act_status == '1'}><span class="cx">促</span><{/if}>
						<i>¥</i> 
						<em><{$i.price}></em>
						<span class="vol">已售 <{$i.volume}></span>
					</div> 
				</div> 
			</div>
		<{/foreach}>  
	<{else}>
		<div class="nomsg"><span>暂时无内容</span></div>	
	<{/if}> 
</div>
<div class="spage"><{$data.page}></div> 
<{import file="btm_tab.html"}> 
<{import file="footer.html"}> 
<script type="text/javascript">
var PUBLIC_PATH	= '<{$__PUBLIC__}>';
var APP_PATH	= '<{$__APP__}>';
var IMG_HOST 	= '<{$__IMG__}>';
lazyload();
$(function(){
	$(".gs_box .img").css('height', $('.gs_box .img').width()); 
	scrollLoad("#container", ".gs_box"); 
});   
</script>