
<!DOCTYPE html>
<html>
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>
	{wc:$key}
</title><meta content="app-id=518966501" name="apple-itunes-app" /><meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, user-scalable=no, maximum-scale=1.0" /><meta content="yes" name="apple-mobile-web-app-capable" /><meta content="black" name="apple-mobile-web-app-status-bar-style" /><meta content="telephone=no" name="format-detection" />
<link href="{G_TEMPLATES_CSS}/mobile/comm.css" rel="stylesheet" type="text/css" />
<link href="{G_TEMPLATES_CSS}/mobile/goods.css" rel="stylesheet" type="text/css" />
<link href="{G_TEMPLATES_CSS}/aui/foot.css" rel="stylesheet" type="text/css" />

<script src="{G_TEMPLATES_JS}/mobile/jquery190.js" language="javascript" type="text/javascript"></script>
{wc:if $shopitem=='itemfun'}
	<script id="pageJS" data="{G_TEMPLATES_JS}/mobile/goodsInfo.js" language="javascript" type="text/javascript"></script>
{wc:else}
<script id="pageJS" data="{G_TEMPLATES_JS}/mobile/LotteryDetail.js" language="javascript" type="text/javascript"></script>
{wc:if:end}
</head>
<body>
<div class="h5-1yyg-v1" id="loadingPicBlock">

<!-- 栏目页面顶部 -->


<!-- 内页顶部 -->

{wc:templates "mobile/index","top"}
<!-- 内页顶部 -->

    <input name="hidGoodsID" type="hidden" id="hidGoodsID" value="{wc:$itemlist[0]['q_uid']}"/>   <!--上期获奖者id-->
    <input name="hidCodeID" type="hidden" id="hidCodeID" value="{wc:$item['id']}"/>     <!--本期商品id-->
    <section class="goodsCon pCon">

		{wc:php:start}
            $sysj=$item['xsjx_time']-time();
        {wc:php:end}

        <!-- 产品图 -->
        <div class="pPic pPicBor">
            <div class="pPic2">
    	        <div id="sliderBox" class="pImg">
                    <div class="loading"><b></b>正在加载</div>
                    <ul class="slides">
					{wc:loop $item['picarr'] $imgtu}
					<li><img src="{G_UPLOAD_PATH}/{wc:$imgtu}" /></li>
					{wc:loop:end}
                    </ul>
                </div>
            </div>
        </div>

        <!-- 条码信息 -->


        <div class="pDetails {wc:if $item['q_end_time']!=''}pDetails-end{wc:if:end}">
                <b>(第{wc:$item['qishu']}期){wc:$item['title']} <span></span></b>
                <p class="price">价值：<em class="arial gray">￥{wc:$item['yunjiage']}</em></p>
				<div class="Progress-bar">
					<p class="u-progress" title="已完成{wc:fun:percent($item['canyurenshu'],$item['zongrenshu'])}">
						<span class="pgbar" style="width:{wc:$item['canyurenshu']/$item['zongrenshu']*100}%;">
							<span class="pging"></span>
						</span>
					</p>
					<ul class="Pro-bar-li">
						<li class="P-bar01"><em>{wc:$item['canyurenshu']}</em>已购买数量</li>
						<li class="P-bar03"><em>{wc:$item['zongrenshu']-$item['canyurenshu']}</em>剩余数量</li>
					</ul>
				</div>

              <div id="btnBuyBox1" class="pBtn" codeid="{wc:$item['id']}">
				<a href="javascript:;" class="fl buyBtn" style="width: 100%;">立即购买</a>
			  </div>
        </div>
        <!-- 参与记录，商品详细，晒单导航 -->
        <div class="joinAndGet">
    	    <dl>
    	
				<a href="{WEB_PATH}/mobile/mobile/jf_goodsdesc/{wc:$item['id']}"><b class="fr z-arrow"></b>图文详情<em>（建议WIFI下使用）</em> </a>

            </dl>

        </div>
    </section>

{wc:templates "mobile/index","footer"}
<script language="javascript" type="text/javascript">
  var Path = new Object();
  Path.Skin="{G_TEMPLATES_STYLE}";
  Path.Webpath = "{WEB_PATH}";

var Base = {
    head: document.getElementsByTagName("head")[0] || document.documentElement,
    Myload: function(B, A) {
        this.done = false;
        B.onload = B.onreadystatechange = function() {
            if (!this.done && (!this.readyState || this.readyState === "loaded" || this.readyState === "complete")) {
                this.done = true;
                A();
                B.onload = B.onreadystatechange = null;
                if (this.head && B.parentNode) {
                    this.head.removeChild(B)
                }
            }
        }
    },
    getScript: function(A, C) {
        var B = function() {};
        if (C != undefined) {
            B = C
        }
        var D = document.createElement("script");
        D.setAttribute("language", "javascript");
        D.setAttribute("type", "text/javascript");
        D.setAttribute("src", A);
        this.head.appendChild(D);
        this.Myload(D, B)
    },
    getStyle: function(A, B) {
        var B = function() {};
        if (callBack != undefined) {
            B = callBack
        }
        var C = document.createElement("link");
        C.setAttribute("type", "text/css");
        C.setAttribute("rel", "stylesheet");
        C.setAttribute("href", A);
        this.head.appendChild(C);
        this.Myload(C, B)
    }
}
function GetVerNum() {
    var D = new Date();
    return D.getFullYear().toString().substring(2, 4) + '.' + (D.getMonth() + 1) + '.' + D.getDate() + '.' + D.getHours() + '.' + (D.getMinutes() < 10 ? '0': D.getMinutes().toString().substring(0, 1))
}
Base.getScript('{G_TEMPLATES_JS}/mobile/Bottom.js');


</script>
<script>
$(function(){
  $(".blue").click(function(){

     url="{WEB_PATH}/uname/{wc:fun:idjia($itemlist[0]['q_uid'])}";
	 window.location.href=url;

  });

  $(".orange.arial").click(function(){
     url="{WEB_PATH}/mobile/mobile/dataserver/{wc:$itemlist[0]['id']}";
	 window.location.href=url;

  });

})

</script>
</div>
</body>
</html>
