<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="QiZhanBang.Web.index" %>
<%@ Import Namespace="QiZhanBang.Core" %>
<%@ Import Namespace="QiZhanBang.Core.Model" %>
<%@ Import Namespace="QiZhanBang.Core.Factory" %>
<%@ Register src="sitefooter.ascx" tagname="sitefooter" tagprefix="uc1" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="Keywords" content="" />
<meta name="Description" content="" />
<title><%= SiteName %></title>
<link rel="stylesheet" href="images/bootstrap.min.css" />
<link rel="stylesheet" href="images/font-awesome.min.css" />
<link rel="stylesheet" type="text/css" href="images/swiper.min.css" />
<link rel="stylesheet" href="images/ectouch.css" />
<link rel="stylesheet" href="images/style.css" />
<script type="text/javascript" src="js/jquery.min.js" ></script> 
</head>
<body>
<!-- 头部s 首页不需要。。。
<div class="ect-bg">
<header class="ect-header ect-margin-tb ect-margin-lr text-center ect-bg icon-write"> <a href="javascript:history.go(-1)" class="pull-left ect-icon ect-icon1 ect-icon-history"></a> <span>商品详情</span> <a href="index.html" class="pull-right ect-icon ect-icon1 ect-icon-homes icon-write"></a></header>
</div>
头部e -->
<header>

<!-- 三个幻灯片s -->
<div class="index-main comWidth">
<div class="swiper-container">
<div class="swiper-wrapper">
<%
    System.Data.DataTable dtLinks = LinkFactory.GetList(10);
    foreach (System.Data.DataRow drLnk in dtLinks.Rows)
    {
%>
<div class="swiper-slide"><a href='<% = drLnk["linkurl"].ToString()%>' target="_blank"><img src='<% = drLnk["includepic"].ToString()%>' border="0" alt="" /></a></div>
<%
    } %>
</div>
<div class="swiper-pagination"></div>
</div>
</div>
<script src="js/jquery.swiper.min.js"></script> 
<script language="javascript">
    var handler = function (e) { //禁止浏览器默认行为
        e.preventDefault();
    };
    var swiper = new Swiper('.swiper-container', {
        pagination: '.swiper-pagination',
        slidesPerView: 1,
        loop: true,
        autoplay: 5000
    });
</script>
<!-- 三个幻灯片e -->
</header>

<main class="main">
<div class="webiconbox">

<a href="buybx.aspx">
<dl>
<dt><img src="images/icon1.png" alt=""/></dt>
<dd>车险订单</dd>
</dl>
</a>
<a href="page.aspx?sn=hyfl">
<dl>
<dt><img src="images/icon4.png" alt=""/></dt>
<dd>会员福利</dd>
</dl>
</a>
<a href="prolist.aspx?pc=1">
<dl>
<dt><img src="images/icon2.png" alt=""/></dt>
<dd>金币商城</dd>
</dl>
</a>
<a href="prolist.aspx?pc=2">
<dl>
<dt><img src="images/icon3.png" alt=""/></dt>
<dd>积分兑换</dd>
</dl>
</a>

</div>
</main>


<!-- 商品列表s 12条为最佳 -->
<section class="product-list j-product-list product-list-medium" data="1">

<div class="intit"><h3>猜您喜欢</h3></div>

	<ul id="j-product-box">	
     <asp:Repeater runat="server" ID="rptCommendProducts">
      <ItemTemplate>
      <li>
			<div class="product-div">
				<a class="product-div-link" href="proinfo.aspx?id=<%# Eval("productid")%>"></a>
				<img class="product-list-img" src="<%# Eval("includepicpath")%>" alt="" />
				<div class="product-text">
					<h4><%# Eval("productname")%></h4>
					<p class="dis-box p-t-remark"><span class="box-flex">兑换方式：<%# Eval("productcode").ToString() == "1" ? "金币" : "积分"%></span><!--<span class="box-flex">销量：2</span>--></p>
					<p><span class="p-price t-first "><%# Eval("salecount")%><%# Eval("productcode").ToString() == "1" ? "金币" : "积分"%><small><del>￥<%# Eval("price")%></del></small></span></p>
				</div>
			</div>
		</li>
      </ItemTemplate>
     </asp:Repeater>
   </ul>
<div class="mores"><a href="prolist.aspx">更多产品</a></div>
</section>
<!-- 商品列   -->

<!-- 底部菜单s -->            
<uc1:sitefooter ID="sitefooter1" runat="server" />
<!-- 底部菜单e -->
</body>
</html>
