<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>{$title}</title>
<meta name="keywords" content="{$keywords}" />
<meta name="description" content="{$description}" />
<meta name="generator" content="openwbs {$version}" />
<meta name="author" content="openwbs team" />
<meta name="copyright" content="2008-2020 OpenWBS Inc." />
<!--#include file="include.css.html"-->
<link rel="stylesheet" href="../css/ow.index.css" />
</head>
<body>
<!--头部-->
<!--#include file="include.header.html"-->
<div id="mbody">
   
    <!--楼层-->
    <div class="idx-floor" id="ow_floor">
        {cate is_shop="1" parent_id="0"}
        {cate:loop}
        <div class="shop-floor shop-floor-[cate:i]">
            <div class="header">
                <h2 class="title"><a class="floor-name" href="[cate:link]" target="_blank">[cate:name]</a></h2>
                <ul class="subcate">{cate2 top="10" parent_id="[cate:cate_id]"}{cate2:loop}<li class="spacer spacer-[cate2:i]"></li><li class="link"><a href="[cate2:link]" target="_blank">[cate2:name]</a></li>{/cate2:loop}{/cate2}</ul>
            </div>
            <div class="section">
                <div class="shop-floor-goods">
                    <ul class="clearfix" name="floor_goods">
                        {goods top="1000" cate_id="[cate:cate_id]" orderby="sequence asc"}
                        {goods:loop}
                        <li name="goods">
                            <div class="thumb"><a href="[goods:link]" title="[goods:title]" target="_blank"><img src="[goods:thumbnail]" alt="[goods:title]" title="[goods:title]"></a></div>
                            <div class="info">
                                <h3 class="title"><a href="[goods:link]" title="[goods:title]" target="_blank">[goods:ctitle]</a></h3>
                                {if:OW.isNotNul("[goods:subtitle]")}<p class="subtitle">[goods:subtitle]</p>{/if}
                                <p class="price">{if:OW.int("[goods:point_set]")=1}<span class="point"><b>[goods:point_pay_amount]</b><em>积分</em><i>+</i></span>{/if}<span class="money"><em>{$moneysb}</em><b><%=OW.parsePrice("[goods:price]")%></b></span></p>
                            </div>
                        </li>
                        {/goods:loop}
                        {/goods}
                    </ul>
                </div>
            </div>
        </div>
        {/cate:loop}
        {/cate}
    </div>
</div>

<!--底部-->
<!--#include file="include.footer.html"-->
<script type="text/javascript">
$(document).ready(function(){
	var $owFloor = $("#ow_floor");
	$owFloor.find("li.hero").each(function(){
		if($(this).find("img").length==0){
			$(this).remove();
		};
	});
	$("ul[name='floor_goods']").each(function(){
		var goodsNum = $(this).find("li").length;
		if(goodsNum==0){
			$(this).parent().parent().parent().remove();
		};
		if(goodsNum>5){
			$(this).find("li[name='goods']:eq(5)").css("margin-left","0px");
		};
		if(goodsNum>10){
			$(this).find("li:last").remove();
		};
	});
	//积分价格
	$(".price").each(function(){
		var price = OW.parseMoney($(this).find(".money > b").html());
		if(!price>0){
			$(this).find(".money").hide();
			$(this).find(".point > i").hide();
		};
	});
});
</script>
</body>
</html>
