{extend name="default/users/base" /}
{block name="title"}喜欢的商品 - 用户中心 - {:WSTConf('CONF.shopName')}{__block__}{/block}
{block name="css"}{/block}
{block name="content"}
<div class="wst-user-box"><div class="wst-user-info">
<div class="wst-user-head">喜欢的商品</div>
<div class="wst-clear"></div>
<div class="wst-fav-listg" id="list-goods"></div>
<div class="wst-clear"></div>
<div id="goodsPage" class="wst-pager"></div>
</div></div>
<script id="list" type="text/html">
{{# for(var i = 0; i < d.length; i++){}}
	<div class="wst-fav-goods">
		<div class="wst-fav-goimg"><a href="javascript:getGoods({{ d[i].goodsId }})"><img class="goodsImg2" data-original="__RESOURCE_PATH__/{{ d[i].goodsImg }}" title="{{ d[i].goodsName }}" src="__RESOURCE_PATH__/{:WSTConf('CONF.goodsLogo')}"></a></div>
		<a href="javascript:getGoods({{ d[i].goodsId }})"><p class="wst-fav-gonam">{{WST.cutStr(d[i].goodsName,48)}}</p></a>
		<p class="wst-fav-goodp1">{{ d[i].shopPrice }}元</p>
		<p style="margin-bottom:8px;">&nbsp;</p>
		<div class="operation"><a href="javascript:void(0);"  class="del" onclick="javascript:cancelFavorite({{ d[i].favoriteId }},0)">删除</a></div>
	</div>
{{# } }}
</script>
{/block}
{block name="js"}
<script type='text/javascript' src='__STYLE__/users/favorites/favorites.js?v={$v}'></script>
<script>
$(function(){
	freGoodsList();
});
</script>
{/block}