<!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, viewport-fit=cover"/>
    <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"-->
    <link rel="stylesheet" href="../css/om.index.css?v={$version_sn}" />
</head>
<body>
<!--#include file="include.header.html"-->
<section class="mbody">
    
    <script type="text/javascript" src="../js/touchslide.1.1.js"></script>
    <div class="ow-banner">
        <div id="ow_banner" class="slidebox">
            <div class="hd"><ul></ul></div>
            <div class="bd">
                <ul><%=OW.echoAdImg("1001","<li i=""{$i}""><a href=""{$link}""><img src=""{$url}"" alt=""{$name}"" title=""{$name}""></a></li>")%></ul>
            </div>
        </div>
    </div>
    <script type="text/javascript">
	$(document).ready(function(){
		//**banner
		if(OW.int($("#ow_banner").find("img").length)>=1){
			TouchSlide({ 
				slideCell:"#ow_banner",
				titCell:".hd ul",
				mainCell:".bd ul", 
				effect:"leftLoop", 
				autoPage:true,
				autoPlay:true,
				interTime:5000
			});
		}else{
			$(".ow-banner").remove();
		};
	});
    </script>
    
    <div class="ow-rich-text ow-editor-content-text">{ow:home-mobile-richtext}</div>
    <script type="text/javascript">
	$(document).ready(function(){
		if(OW.isNull($(".ow-rich-text").text())){
			$(".ow-rich-text").remove();
		};
	});
    </script>
    
    <div class="ow-product" id="ow_product">
        <div class="wrapper">
            <div class="hd">
                <h2>{%=OW.DB.getFieldValueBySQL("SELECT [name] FROM ow_position WHERE pos_id=2")%}</h2>
                <h3>{%=OW.DB.getFieldValueBySQL("SELECT [subname] FROM ow_position WHERE pos_id=2")%}</h3>
            </div>
            <div class="cates">
                {cate top="10" parent_id="3"}
                <ul>
                    {cate:loop}<li><a href="[cate:link]">[cate:name]</a></li>{/cate:loop}
                </ul>
                {/cate}
            </div>
            <div class="bd">
                {content top="100" position_id="2" model="product"}
                <ul>
                    {content:loop}
                    <li class="li[content:i]">
                        <div class="thumb"><a href="[content:link]"><img src="[content:thumbnail]" alt="[content:title]" title="[content:title]" /></a></div>
                        <div class="info">
                            <h3 class="title"><a href="[content:link]">[content:ctitle]</a></h3>
                        </div>
                    </li>
                    {/content:loop}
                </ul>
                {/content}
            </div>
        </div>
    </div>
    <script type="text/javascript">
	$(document).ready(function(){
		if($(".ow-product").find(".bd").find("li").length==0){
			$(".ow-product").remove();
		}else{};
	});
    </script>
    
    <div class="ow-introduce-style2">
        <div class="wrapper">
            {ow:index-introduce}
        </div>
    </div>
    <script type="text/javascript">
	$(document).ready(function(){
		if(OW.isNull($(".ow-introduce-style2").text())){
			$(".ow-introduce-style2").remove();
		};
	});
    </script>
    
    <div class="ow-cases after">
        <div class="wrapper">
            <div class="hd">
                <h2>{%=OW.DB.getFieldValueBySQL("SELECT [name] FROM ow_position WHERE pos_id=3")%}</h2>
                <h3>{%=OW.DB.getFieldValueBySQL("SELECT [subname] FROM ow_position WHERE pos_id=3")%}</h3>
            </div>
            <div class="bd">
                    {content top="30" position_id="3" model="case" orderby="a.cid DESC"}
                    <ul>
                        {content:loop}
                        <li class="li[content:i]" name="item">
                            <div class="thumb"><a href="[content:link]" title="[content:title]" target="_blank"><img src="{if:OW.isNul("[content:thumbnail]")}../images/news_none_pic.png{else}[content:thumbnail]{/if}" alt="[content:title]"><i class="play"></i></a></div>
                            <div class="info">
                                <h3 class="title"><a href="[content:link]" title="[content:title]" target="_blank">[content:title]</a></h3>
                            </div>
                        </li>
                        {/content:loop}
                    </ul>
                    {/content}
                </div>
            </div>
        </div>
    </div>
    <script type="text/javascript">
	$(document).ready(function(){
		if($(".ow-cases").find(".bd").find("li").length==0){
			$(".ow-cases").remove();
		};
	});
    </script>
    
    <div class="ow-news after">
        <div class="wrapper">
            <div class="hd">
                <h2>{%=OW.DB.getFieldValueBySQL("SELECT [name] FROM ow_position WHERE pos_id=1")%}</h2>
                <h3>{%=OW.DB.getFieldValueBySQL("SELECT [subname] FROM ow_position WHERE pos_id=1")%}</h3>
            </div>
            <div class="bd">
                    {content top="50" position_id="1" model="news"}
                    <ul>
                        {content:loop}
                        <li class="li[content:i]" name="item">
                            <div class="thumb"><a href="[content:link]" target="_blank"><img src="[content:thumbnail]" alt="[content:title]" title="[content:title]" /></a></div>
                            <div class="info">
                                <h3 class="title"><a href="[content:link]" target="_blank">[content:title]</a></h3>
                                <div class="summary"><%=OW.leftString("[content:summary]",250)%></div>
                                <div class="more"><a href="[content:link]" target="_blank">阅读更多<span class="raquo">»</span></a></div>
                            </div>
                        </li>
                        {/content:loop}
                    </ul>
                    {/content}
                </div>
            </div>
        </div>
    </div>
    <script type="text/javascript">
	$(document).ready(function(){
		if($(".ow-news").find(".bd").find("li").length==0){
			$(".ow-news").remove();
		}else{};
	});
    </script>
    
    <div class="ow-index-tags">
        <div class="hd"><h4>分类阅读</h4></div>
        <div class="bd">
        {tags top="38" is_shop="0"}
        {tags:loop}<a href="[tags:link]" hits="[tags:hits]">[tags:tag]</a>{/tags:loop}
        {/tags}
        </div>
    </div>
    <script type="text/javascript">
	$(document).ready(function(){
		if($(".ow-index-tags").find(".bd").find("a").length==0){
			$(".ow-index-tags").remove();
		}else{};
	});
    </script>
    
</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:['updateAppMessageShareData','updateTimelineShareData']
});
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.updateAppMessageShareData({title:wxTitle,desc:wxDesc,link:wxLink,imgUrl:wxImgUrl,success:function(){}});
	wx.updateTimelineShareData({title:wxTitle,link:wxLink,imgUrl:wxImgUrl,success:function(){}});
});
</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?v={$version_sn}"></script>
<script type="text/javascript">
$(document).ready(function(){
	indexInit();
});
</script>
</body>
</html>
