<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="proinfo.aspx.cs" Inherits="QiZhanBang.Web.proinfo" %>
<%@ 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><%= productinfo.productname %>-<%= 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.aspx" class="pull-right ect-icon ect-icon1 ect-icon-homes icon-write"></a></header>
</div>
<!-- 头部e -->

<!-- 三个产品图幻灯片s -->
<div class="index-main comWidth">
<div class="swiper-container">
<div class="swiper-wrapper">
<div class="swiper-slide"><img src="<%= productinfo.includepicpath %>" border="0" alt="" /></div>
<%=otherincludepics%>
</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 -->

<div class="con">

  <div class="goods-info ect-padding-tb"> 
    
<section class="ect-margin-tb ect-margin-lr goods-title">
<h4 class="title pull-left"><%= productinfo.productname %></h4>
<span class="pull-right text-center  ect-padding-lr" onClick="collect(1)" id="ECS_COLLECT" style="display:none"> <i class="fa fa-heart-o"></i><br>收藏 </span>
</section>
<section class="ect-margin-tb ect-margin-lr ">
<p><span class="pull-left">兑换需：<b class="ect-colory" id="ECS_GOODS_AMOUNT"><%= productinfo.salecount %><%= (productinfo.productcode == "1" ? "金币" : "积分")%> </b></span><span class="pull-right"></span></p>
<p>市场价：<small> <del>￥<%= productinfo.price %> </del></small>
</p>
<p></p>	 
</section>
     
<form action="javascript:addToCart(1)" method="post" name="ECS_FORMBUY" id="ECS_FORMBUY" >

<section class="ect-padding-lr ect-padding-tb goods-option">
<div class="goods-optionc"> 
</div>
<div class="goods-num" style="display:none"> <span class="pull-left">兑换数量：</span> 
<div class="input-group pull-left wrap"><span class="input-group-addon sup" onClick="changePrice('1')">-</span>
<input type="text" class="form-contro form-num"  name="number" id="goods_number" autocomplete="off" value="1" onFocus="back_goods_number()"  onblur="changePrice('2')"/>
<span class="input-group-addon plus" onClick="changePrice('3')">+</span></div>   
</div>
</section>
      
<div class="ect-padding-lr ect-padding-tb goods-submit">
<div><a type="botton" class="btn btn-info ect-btn-info ect-colorf ect-bgmmm" href="cart.aspx?pid=<%= productinfo.productid %>">立即兑换</a></div>
</div>

<section class="goods-more-as" style="background:#fff;"> 
<a class="ect-padding-lr ect-padding-tb"><span class="Text">商品描述</span></a>
</section>
      
<div>

 <div class="goods-info ect-padding-tb">
<section class="user-tab ect-border-bottom0">
<div class="tab-content">
<div class="tab-pane tab-info active">
<h4 id="goodstithy"><%= productinfo.productname %></h4>
<!-- 产品评细s -->
<%= productinfo.specification %>
<!-- 产品评细e -->     
</div>
</div>
</section>
</div>
</div>

<script type="text/javascript">
    /**
    * 点选可选属性或改变数量时修改商品价格的函数
    */
    function changePrice(type) {
        var qty = document.forms['ECS_FORMBUY'].elements['number'].value;
        if (type == 1) { qty--; }
        if (type == 3) { qty++; }
        if (qty <= 0) { qty = 1; }
        if (!/^[0-9]*$/.test(qty)) { qty = document.getElementById('back_number').value; }
        document.getElementById('goods_number').value = qty;
        var attr = getSelectedAttributes(document.forms['ECS_FORMBUY']);
        $.get('/mobile/index.php?m=default&c=goods&a=price', { 'id': goodsId, 'attr': attr, 'number': qty }, function (data) {
            changePriceResponse(data);
        }, 'json');
    }


    /**
    * 接收返回的信息
    */
    function changePriceResponse(res) {
        if (res.err_msg.length > 0) {
            alert(res.err_msg);
        } else {
            if (document.getElementById('ECS_GOODS_AMOUNT'))
                document.getElementById('ECS_GOODS_AMOUNT').innerHTML = res.result;
        }
    }

    /**
    * 接收返回的信息
    */
    function changePriceResponse(res) {
        if (res.err_msg.length > 0) {
            alert(res.err_msg);
        } else {
            if (document.getElementById('ECS_GOODS_AMOUNT'))
                document.getElementById('ECS_GOODS_AMOUNT').innerHTML = res.result;
        }
    }

</script> 

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

</body>
</html>