<!DOCTYPE HTML>
<html>
<head>
    <meta charset="UTF-8">
    <title>{$title}</title>
    <meta name="keywords" content="{$keywords}" />
    <meta name="description" content="{$description}" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <meta name="format-detection" content="telephone=no, email=no">
    <meta name="apple-mobile-web-app-title" content="{$site_name}" />
    <meta name="generator" content="openwbs {$version}" />
    <meta name="author" content="openwbs team" />
    <meta name="copyright" content="2019-2039 OpenWBS Inc." />
    <!--#include file="include.css.html"-->
    <script type="text/javascript" src="../js/touchslide.1.1.js"></script>
</head>
<body>
<!--#include file="include.header.html"-->
<div class="om-header om-header-fixed" id="header">
    <div class="om-header-container">
        <div class="logo"><img src="{$config(site_mobile_logo)}" alt="{$site_name}" title="{$site_name}" /></div>
        <div class="search">
            <i class="icon-search"></i>
            <div class="search-input"><input type="text" name="search" maxlength="20" cleardefault="no" autocomplete="off" placeholder="搜索商品名称"  value="" /></div>
        </div>
        <div class="user"><a class="unlogin" href="{$login_url}"><i></i></a></div>
    </div>
    <div class="om-top-nav">
        {cate is_shop="1" parent_id="0"}
        <ul name="slither">
            {cate:loop}<li class="li[cate:i]"><a href="[cate:link]">[cate:name]</a></li>{/cate:loop}
        </ul>
        {/cate}
    </div>
</div>

<section class="mbody">
    <div class="om-banner">
        <div id="banner" class="slidebox">
            <div class="header"><ul></ul></div>
            <div class="section">
                <ul><%=OW.echoAdImg("1001","<li i=""{$i}""><a href=""{$link}""><img src=""{$url}"" alt=""{$name}"" title=""{$name}""></a></li>")%></ul>
            </div>
        </div>
    </div>
    
    {if:OW.int("{$config(is_goods_sales_broadcast)}")>0}
    <div class="om-goods-sales-broadcast">
        <dl><dt>商品播报：</dt><dd><ul class="marquee" id="marquee"><%=OS.getGoodsSalesBroadcast(10)%></ul></dd></dl>
    </div>
    <script type="text/javascript" src="../js/jquery.marquee.js"></script>
    <script type="text/javascript">  
    $(document).ready(function(){$("#marquee").marquee({yScroll:"bottom",scrollSpeed:10,pauseSpeed:2000,pauseOnHover:true});  }); 
    </script>
    {/if}
    
    <div class="om-home-category">
        <ul>
            <li><a href="{$site_hurl}coupon/"><img src="../images/icon/c10.png" alt="优惠券"><span>优惠券</span></a></li>
            <li><a href="{$site_hurl}shop/"><img src="../images/icon/c4.png" alt="商品分类"><span>商品分类</span></a></li>
            <li><a href="{$site_hurl}cart.html"><img src="../images/icon/c7.png" alt="购物车"><span>购物车</span></a></li>
            {if:OW.int("{$config(is_fenxiao_open)}")=1}
            <li><a href="{$site_url}ow-ucenter/?ctl=fenxiao"><img src="../images/icon/c13.png" alt="我的分销"><span>我的分销</span></a></li>
            {else}
            <li><a href="{$site_url}ow-ucenter/?ctl=order_form_data"><img src="../images/icon/c9.png" alt="我的分销"><span>收货地址</span></a></li>
            {/if}
            <li><a href="{$site_url}ow-ucenter/"><img src="../images/icon/c8.png" alt="会员中心"><span>会员中心</span></a></li>
            <li><a href="{$site_url}ow-ucenter/?ctl=orders"><img src="../images/icon/c5.png" alt="我的订单"><span>我的订单</span></a></li>
            <li><a href="{$site_url}ow-ucenter/?ctl=finance"><img src="../images/icon/c14.png" alt="我的余额"><span>我的余额</span></a></li>
            <li><a href="{$site_url}ow-ucenter/?ctl=point"><img src="../images/icon/c11.png" alt="我的积分"><span>我的积分</span></a></li>
        </ul>
    </div>
    <div class="om-rich-text">{ow:home-mobile-richtext}</div>
    
    <!--秒杀活动-->
    {activity type="1" is_show_index="1"}
    {activity:loop}
    <div class="om-activity-goods" id="om_activity_goods">
        <div class="header">
            <h2 class="title">[activity:title]</h2><span class="subtitle">[activity:subtitle]</span>
        </div>
        <div class="section">
            {goods activity_id="[activity:activity_id]"}
            <ul class="om-goods-horizlist">
                {goods:loop}
                <li class="li[goods:i]" name="goods">
                    <div class="thumb" name="goods"><a href="[goods:link]"><img src="[goods:thumbnail]" alt="[goods:title]" title="[goods:title]" /></a></div>
                    <div class="info">
                        <h3 class="title"><a href="[goods:link]">[goods:title]</a></h3>
                        {if:OW.isNotNul("[goods:subtitle]")}<p class="subtitle"><a href="[goods:link]">[goods:subtitle]</a></p>{/if}
                        <div class="price"><i class="icon-text icon-text-seckill">秒杀价</i><span class="money"><em>{$moneysb}</em><b><%=OW.parsePrice(OS.getGoodsMinSeckillPrice("[goods:gid]"))%></b></span></div>
                        <div class="buy"><a class="btnbuy" href="[goods:link]">立即抢购</a></div>
                    </div>
                </li>
                {/goods:loop}
            </ul>
            {/goods}
        </div>
    </div>
    {/activity:loop}
    {/activity}
    
    <!--拼团活动-->
    {activity type="2" is_show_index="1"}
    {activity:loop}
    <div class="om-activity-goods" id="om_activity_goods">
        <div class="header">
            <h2 class="title">[activity:title]</h2><span class="subtitle">[activity:subtitle]</span>
        </div>
        <div class="section">
            {goods activity_id="[activity:activity_id]"}
            <ul class="om-goods-horizlist">
                {goods:loop}
                <li class="li[goods:i]" name="goods">
                    <div class="thumb" name="goods"><a href="[goods:link]"><img src="[goods:thumbnail]" alt="[goods:title]" title="[goods:title]" /></a></div>
                    <div class="info">
                        <h3 class="title"><a href="[goods:link]">[goods:title]</a></h3>
                        {if:OW.isNotNul("[goods:subtitle]")}<p class="subtitle"><a href="[goods:link]">[goods:subtitle]</a></p>{/if}
                        <div class="price"><i class="icon-text icon-text-seckill">拼团价</i><span class="money"><em>{$moneysb}</em><b><%=OW.parsePrice(OS.getGoodsMinSeckillPrice("[goods:gid]"))%></b></span></div>
                        <div class="buy"><span class="sub">[goods:groupbuy_num]人成团</span><a class="btnbuy" href="[goods:link]">立即拼团</a></div>
                    </div>
                </li>
                {/goods:loop}
            </ul>
            {/goods}
        </div>
    </div>
    {/activity:loop}
    {/activity}
    
    <!--人气推荐-->
    <div class="om-recomd-goods" id="om_star_goods">
        <div class="header">
            <h2 class="title">{%=OW.DB.getFieldValueBySQL("SELECT [name] FROM "& DB_PRE &"position WHERE pos_id=4")%}</h2>
            <span class="subtitle">{%=OW.DB.getFieldValueBySQL("SELECT [subname] FROM "& DB_PRE &"position WHERE pos_id=4")%}</span>
        </div>
        <div class="section">
            {goods top="49" position_id="4"}
            <ul>
                {goods:loop}
                <li class="li[goods:i]" name="goods">
                    <a href="[goods:link]">
                    <div class="thumb" name="goods"><img src="[goods:thumbnail]" alt="[goods:title]" title="[goods:title]" /></div>
                    <div class="info">
                        <h3 class="title">[goods:title]</h3>
                        {if:OW.isNotNul("[goods:subtitle]")}<p class="subtitle">[goods:subtitle]</p>{/if}
                        <div 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></div>
                    </div>
                    </a>
                </li>
                {/goods:loop}
            </ul>
            {/goods}
        </div>
    </div>
    
    <!--新品推荐-->
    <div class="om-recomd-goods" id="om_new_goods">
        <div class="header">
            <h2 class="title">{%=OW.DB.getFieldValueBySQL("SELECT [name] FROM "& DB_PRE &"position WHERE pos_id=5")%}</h2>
            <span class="subtitle">{%=OW.DB.getFieldValueBySQL("SELECT [subname] FROM "& DB_PRE &"position WHERE pos_id=5")%}</span>
        </div>
        <div class="section" id="newgoods">
            {goods top="49" position_id="5"}
            <ul>
                {goods:loop}
                <li class="li[goods:i]" name="goods">
                    <a href="[goods:link]">
                    <div class="thumb" name="goods"><img src="[goods:thumbnail]" alt="[goods:title]" title="[goods:title]" /></div>
                    <div class="info">
                        <h3 class="title">[goods:title]</h3>
                        {if:OW.isNotNul("[goods:subtitle]")}<p class="subtitle">[goods:subtitle]</p>{/if}
                        <div 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></div>
                    </div>
                    </a>
                </li>
                {/goods:loop}
            </ul>
            {/goods}
        </div>
    </div>
    
    <div id="ow_floor">
        {cate is_shop="1" parent_id="0"}
        {cate:loop}
        <div class="om-floor-goods" name="floor_goods">
            <h2 class="floor-hd"><span class="floor-num">[cate:i]F</span><a class="floor-name" href="[cate:link]" target="_blank">[cate:name]</a></h2>
            <div class="floor-hero"><%=OW.echoImages("[cate:ad_image_data_mob]","<li i=""{$i}""><a href=""{$link}""><img src=""{$url}"" alt=""{$name}"" title=""{$name}""></a></li>")%></div>
            <div class="floor-bd">
                <ul class="om-goods-vertilist">
                    {goods top="30" recommend_cate_id="[cate:cate_id]"}
                    {goods:loop}
                    <li class="li[goods:i]">
                        <a href="[goods:link]">
                        <div class="thumb" name="goods"><img src="[goods:thumbnail]" alt="[goods:title]" title="[goods:title]" /></div>
                        <div class="info">
                            <h3 class="title">[goods:title]</h3>
                            <div class="subtitle">[goods:subtitle]</div>
                            <div 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></div>
                        </div>
                        </a>
                    </li>
                    {/goods:loop}
                    {/goods}
                </ul>
            </div>
        </div>
        {/cate:loop}
        {/cate}
    </div>
    
    <div class="om-idx-news">
        <h2 class="header">{%=OW.DB.getFieldValueBySQL("SELECT [name] FROM "& DB_PRE &"category WHERE cate_id=2")%}</h2>
        {content top="10" model="news" position_id="1"}
        <div class="section">
            <ul class="om-news-list">
            {content:loop}
                {if:OW.int("[content:i]")=1}
                <li class="li[content:i] first"><a href="[content:link]"><div class="thumb"><img src="[content:thumbnail]" alt="[content:title]" title="[content:title]"></div><h3 class="title"><span>[content:title]</span></h3></a></li>
                {else}
                <li class="li[content:i]"><a href="[content:link]"><div class="thumb"><img src="[content:thumbnail]" alt="[content:title]" title="[content:title]"></div><h3 class="title">[content:title]</h3></a></li>
                {/if}
            {/content:loop}
            </ul>
        </div>
        {/content}
    </div>
    
</section>
<!--底部-->
<% if OS.isWeixinShare then %>
<%=OS.getWXShareTicket%>
<script type="text/javascript">
OW.uid = OW.int(OW.cookie.getCookie("uid"));
wx.config({
	debug:false,appId:'<%=OS.wxShareAppid%>',timestamp:'<%=OS.wxShareTimestamp%>',nonceStr:'<%=OS.wxShareNonceStr%>',signature:'<%=OS.wxShareSignature%>',jsApiList:['onMenuShareTimeline','onMenuShareAppMessage','onMenuShareQQ','onMenuShareQZone']
});
wx.ready(function(){
	var wxTitle = '{$title}',
	wxDesc      = '{$description}'
	wxLink      = '<%=SITE_URL%>' + OW.iif(OW.uid>0,"?rid="+ OW.uid +"",""),
	wxImgUrl    = '<%=OW.validImageUrl("{$config(share_default_img)}")%>',
	errmsg      = "<%=OS.weixinAccessTokenErrmsg%>";
	wx.onMenuShareTimeline({title:wxTitle,link:wxLink,imgUrl:wxImgUrl});
	wx.onMenuShareAppMessage({title:wxTitle,desc:wxDesc,link:wxLink,imgUrl:wxImgUrl});
	wx.onMenuShareQQ({title:wxTitle,desc:wxDesc,link:wxLink,imgUrl:wxImgUrl});
	wx.onMenuShareQZone({title:wxTitle,desc:wxDesc,link:wxLink,imgUrl:wxImgUrl});
});
</script>
<img src="<%=OW.validImageUrl("{$config(share_default_img)}")%>" style="display:none;">
<% end if %>
<!--#include file="include.footer.all.html"-->
<script type="text/javascript" src="../js/index.js"></script>
<script type="text/javascript">
var switchTime = '{%=OW.int(OW.DB.getFieldValueBySQL("SELECT top 1 switch_time FROM "& DB_PRE &"ad WHERE ad_id=1001"))%}';
$(document).ready(function(){
	indexInit();
});
</script>
</body>
</html>
