
<header class="uc_head">
	<h3 class="current">收藏夹</h3>
</header>

{set:$favoriteObj = Api::run('getFavorite',$this->user['user_id'],IReq::get('cat_id'))}
{set:$favoriteObjList=$favoriteObj->find()}
{if:$favoriteObjList}
<section class="goods_list">
	<ul>
		{foreach:items = $favoriteObjList}
		<li>
			<a target="_blank" href="{url:/site/products/id/$item['goods_id']}">
				<img alt="{$item['name']}" src="{url:/pic/thumb/img/$item['img']/w/205/h/205}">
				<h5>{$item['name']}</h5>
				<em>￥{$item['sell_price']}</em>
				<del>￥{$item['market_price']}</del>
			</a>
			<div class="goods_list_btn">
				<div class="add_cart" onclick="joinCart_list({$item['goods_id']});">加入购物车</div>
				<div class="del_fav" onclick="delModel({link:'{url:/ucenter/favorite_del/id/$item[id]}',msg:'是否取消收藏？'});">取消收藏</div>
			</div>
		</li>
		{/foreach}
	</ul>
</section>
{else:}
<section class="nodata">暂无数据</section>
{/if}
{$favoriteObj->getPageBar()}
