<div id="favoritesGoods" class="double">
  <div class="outline">
    <div class="title">
      <h3>商品收藏</h3>
    </div>
    <?php if(!empty($favorites_list) && is_array($favorites_list)){ ?>
    <div class="dsm-favorites-goods">
      <ul id="favoritesGoodsList" class="jcarousel-skin-tango">
        <?php foreach($favorites_list as $key=>$favorites){?>
        <li>
          <div class="dsm-goods-thumb-120"><a href="{:url('/Home/Goods/index',['goods_id'=>$favorites.goods.goods_id])}" target="_blank"><img alt="" src="<?php echo thumb($favorites['goods'], 240);?>"></a>
            <div class="dsm-goods-price"><em>￥<?php echo dsPriceFormat($favorites['goods']['goods_price']);?></em></div>
          </div>
          <div class="dsm-goods-name"><a href="{:url('/Home/Goods/index',['goods_id'=>$favorites.goods.goods_id])}" title="<?php echo $favorites['goods']['goods_name'];?>" target="_blank"><?php echo $favorites['goods']['goods_name'];?></a></div>
        </li>
        <?php } ?>
      </ul>
      <div class="more"><a target="_blank" href="{:url('/Home/Memberfavorites/fglist')}">查看收藏的所有商品</a></div>
    </div>
    <?php } else { ?>
    <dl class="null-tip">
      <dt></dt>
      <dd>
        <h4>您还没有收藏商品</h4>
        <h5>收藏的商品将显示最新的促销活动和降价情况</h5>
      </dd>
    </dl>
    <?php } ?>
  </div>
</div>
<div id="favoritesStore" class="normal">
  <div class="outline">
    <div class="title">
      <h3>店铺收藏</h3>
    </div>
    <?php if(!empty($favorites_store_list) && is_array($favorites_store_list)){?>
    <div class="dsm-favorites-store">
      <ul id="favoritesStoreList" class="jcarousel-skin-tango">
        <?php foreach($favorites_store_list as $key=>$favorites){?>
        <li>
          <div class="dsm-store-pic"><a href="{:url('/Home/Store/index',['store_id'=>$favorites.store.store_id])}" ><img alt="" src="<?php echo getStoreLogo($favorites['store']['store_avatar']);?>"></a></div>
          <dl>
            <dt class="dsm-goods-name"><a href="{:url('/Home/Store/index',['store_id'=>$favorites.store.store_id])}" title="<?php echo $favorites['store']['store_name'];?>" ><?php echo $favorites['store']['store_name'];?></a></dt>
            <dd>新品<?php echo $goods_count[$favorites['store']['store_id']];?>件</dd>
          </dl>
        </li>
        <?php } ?>
      </ul>
      <div class="more"><a target="_blank" href="{:url('/Home/Memberfavorites/fslist')}">查看收藏的所有店铺</a></div>
    </div>
    <?php } else { ?>
    <dl class="null-tip">
      <dt></dt>
      <dd>
        <h4>您还没有收藏店铺</h4>
        <h5>收藏店铺可获知店铺最新商品和促销活动</h5>
      </dd>
    </dl>
    <?php } ?>
  </div>
</div>
