<?php defined('G_IN_SYSTEM')or exit('No permission resources.'); ?><!DOCTYPE html>
<html>
  <head>
    <base href="/">
    <meta charset="utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <meta name="renderer" content="webkit">
    <title><?php echo $webname; ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<link href="<?php echo G_TEMPLATES_CSS; ?>/mobile/comm.css" rel="stylesheet" type="text/css" />
<link href="<?php echo G_TEMPLATES_CSS; ?>/mobile/index.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="<?php echo G_TEMPLATES_CSS; ?>/mobile/reset.css">
<link rel="stylesheet" href="<?php echo G_TEMPLATES_CSS; ?>/mobile/animate.css">
<link rel="stylesheet" href="<?php echo G_TEMPLATES_CSS; ?>/mobile/style.css">
<link href="<?php echo G_TEMPLATES_CSS; ?>/mobile/main.css" rel="stylesheet" type="text/css">



<script src="<?php echo G_TEMPLATES_JS; ?>/mobile/jquery.js"></script>
<script src="<?php echo G_TEMPLATES_JS; ?>/mobile/js.cookie.js"></script>
<script src="<?php echo G_TEMPLATES_JS; ?>/mobile/lodash.js"></script>
<script src="<?php echo G_TEMPLATES_JS; ?>/mobile/response.js"></script>
<script src="<?php echo G_TEMPLATES_JS; ?>/mobile/swiper.min.js"></script>
<script src="<?php echo G_TEMPLATES_JS; ?>/mobile/countdown.js"></script>
<script src="<?php echo G_TEMPLATES_JS; ?>/mobile/simpop.min.js"></script>
<script src="<?php echo G_TEMPLATES_JS; ?>/mobile/jquery.lazyload.min.js"></script>
<script>
var DuoBao = {};
var __data__ = (function(){
  return JSON.parse('{}');
})();
var __user__ = (function(){
  return JSON.parse('{}');

})();
var __touchorclick__ = (function(){
  if ('ontouchend' in document)
    return 'touchend';
  else
    return 'click';
})();
</script>
</head>
  <style>
    .img-topright {
      padding-right: 0.8rem;
      padding-top: 1rem;
      height: 3.5rem;
      width: auto;
      float: right;
    }
  </style>

  <body >
<?php include templates("mobile/index","header");?>
    <div class="container">
<main class="db-main db-main-index">
<style type="text/css">
.zxjx>a:link, .zxjx>a:visited, .zxjx>a:hover, .zxjx>a:active,
.tabs>a:link, .tabs>a:visited, .tabs>a:hover, .tabs>a:active {
    color: #323232;
}
.tab_selected {
    color: #D80000;
    border-bottom: 3px solid #D80000;
}
.color_blue {
    color: #2a99e0;
}
.btn_buy {
    font-size: 1rem;
    border-radius: 50rem;
    border: 1px solid #D80000;
    color: #D80000;
    text-align: center;
    padding: 0.3rem 0.2rem;
}
.item_bottom_container {
   overflow: hidden;
   padding: 0 5%;
   margin-top: 0.8rem;
   font-size: 1rem;
}
.jdt_container {
    float: left;
    width: 60%;
}
.jdt_container div {
    color: #646464;
}
.buy_container {
    float: left;
    width: 40%;
    text-align: center;
}
.tab_load_more {
    text-align: center;
    color: #868686;
    font-size: 1.2rem;
    padding: 0.8rem 0rem 0rem;
}
</style>
    <!-- 焦点图 -->
    <div class="swiper-container">
      <div class="swiper-wrapper">
       <?php $ln=1;if(is_array($shop_ad)) foreach($shop_ad AS $ad): ?>
        <div class="swiper-slide swiper-slide-active">
          <a href="<?php echo $ad['link']; ?>">
            <img alt="<?php echo $ad['title']; ?>" src="<?php echo G_UPLOAD_PATH; ?>/<?php echo $ad['img']; ?>">
          </a>
        </div>
        <?php  endforeach; $ln++; unset($ln); ?>  
      </div>
      <div class="swiper-pagination swiper-pagination-clickable"><span class="swiper-pagination-bullet swiper-pagination-bullet-active"></span><span class="swiper-pagination-bullet"></span></div>
    </div>
	
	
	
	
	
	
	<section class="g-main">
		    <ul class="m-lott-lipro">
			        <li>
		                <a href="<?php echo WEB_PATH; ?>/mobile/home/userqiandao" class="u-lott-pic">
		                    <img src="<?php echo G_TEMPLATES_IMAGE; ?>/nava1.png" alt="" border="0">
		                </a>
		                <span><a href="<?php echo WEB_PATH; ?>/mobile/home/userqiandao">签到领奖</a></span>
			        </li>
				<li>
		                <a href="<?php echo WEB_PATH; ?>/mobile/lottery" class="u-lott-pic">
		                    <img src="<?php echo G_TEMPLATES_IMAGE; ?>/nava2.png" alt="" border="0">
		                </a>
		                <span><a href="<?php echo WEB_PATH; ?>/mobile/lottery">充值抽奖</a></span>
			        </li>
					 <li>
		                <a href="<?php echo WEB_PATH; ?>/mobile/home/invite" class="u-lott-pic">
		                    <img src="<?php echo G_TEMPLATES_IMAGE; ?>/nava3.png" alt="" border="0">
		                </a>
		                <span><a href="<?php echo WEB_PATH; ?>/mobile/home/invite">邀请赚钱</a></span>
			        </li>
					 <li>
		                <a href="<?php echo WEB_PATH; ?>/mobile/home/userbuylist" class="u-lott-pic">
		                    <img src="<?php echo G_TEMPLATES_IMAGE; ?>/nava4.png" alt="" border="0">
		                </a>
		                <span><a href="<?php echo WEB_PATH; ?>/mobile/home/userbuylist">购买记录</a></span>
			        </li>
		    </ul>

    </section>
	
	
	
	
	
	
	
	
	
    <script> 
    var mySwiper = new Swiper('.swiper-container', {
      autoplay: 5000,//可选选项，自动滑动
      pagination : '.swiper-pagination',
      paginationClickable :true,
    })
    </script>
  <div class="zxjx">
    <a href="<?php echo WEB_PATH; ?>/mobile/mobile/lottery">最新揭晓<label style="position:absolute; right:1rem; cursor:pointer">显示全部&nbsp;></label></a>
    <ul class="ul ">
      <script>
        (function(){
          DuoBao.refresh_prize = function refresh_prize(){
            var $el = $($(this).data('dom_id'));
            $.get($el.attr('title'), {raw_only: 'true'}, function(data){
                $el.html(data);
            });
          };

        })();
      </script>
     <?php $ln=1; if(is_array($shopqishu)) foreach($shopqishu AS $k => $qishu): ?>
      <?php 
                  $qishu['q_user'] = unserialize($qishu['q_user']);
       ?>
      
      <li>
        <a href="<?php echo WEB_PATH; ?>/mobile/mobile/item/<?php echo $qishu['id']; ?>" id="r<?php echo $qishu['id']; ?>" title="<?php echo WEB_PATH; ?>/mobile/mobile/itemajax/<?php echo $qishu['id']; ?>">
          <div style="width:90%; margin-left:5%;">
            <img  style="width:90%; margin-left:5%;" src="<?php echo G_UPLOAD_PATH; ?>/<?php echo $qishu['thumb']; ?>"  class="lazy_loading_image">
          </div>
          <div class="txt" style="">
            <h6><?php echo _strcut($qishu['title'],20); ?></h6>
            <?php if($qishu['q_showtime']=='N'): ?>
            <div class="zj"><span>中奖</span><span style="color: #5bb6ea;"><?php echo get_user_name($qishu['q_uid'],'username'); ?></span></div>
            <?php  else: ?>
            <div class="zj">
            <div style="text-align:center; padding: 0.2rem;white-space: nowrap; text-overflow: ellipsis; overflow: hidden; background-color:#D80000; color:#fff; border-radius:1rem;">
              <time class="countdown"
                style="white-space: nowrap; text-overflow: ellipsis; overflow: hidden;"
                data-dom_id="#r<?php echo $qishu['id']; ?>"
                data-sec="<?php echo ceil($qishu['q_end_time']-time()); ?>"
                data-text="正在揭晓..."
                data-delay="1000"
                data-callback="DuoBao.refresh_prize">开始倒计时</time>
            </div>
            </div>
            <?php endif; ?>
          </div>
        </a>
      </li>
       <?php  endforeach; $ln++; unset($ln); ?>
    </ul>
  </div>
  
      <!-- 今日限时 -->
<!--   <?php if(_cfg("xianshi")==1): ?>
    <section class="g-main">
	    <div class="m-tt1">
		    <h2 class="fl"><a href="<?php echo WEB_PATH; ?>/mobile/autolottery">今日限时</a></h2>
		    <div class="fl z-tips">每天10点、15点、22点准时揭晓</div>
		    <div class="fr u-more">
			    <a href="<?php echo WEB_PATH; ?>/mobile/autolottery/next" class="u-rs-m2"><b class="z-arrow"></b>明日限时</a>
		    </div>
	    </div>
	    <article id="autoLotteryBox" class="clearfix h5-1yyg-w310 m-round overflow">
	        <ul id="divTimerItems" class="slides">
			 
			  <?php if($count>1): ?>
			   <div class="loading"><b></b>正在加载</div>
			  <?php  else: ?>
			    <?php if($count==0): ?>
				<div id="divNone" class="haveNot z-minheight" style="display:block"><s></s><p>抱歉，今日没有发布限时揭晓商品！</p>
		      </div>
				<?php endif; ?>
			  <?php endif; ?>
			  
			 <?php $ln=1;if(is_array($jinri_shoplist)) foreach($jinri_shoplist AS $shop): ?>
			 
            <?php 
            	$shop['time_H'] = abs(date("H",$shop['xsjx_time']));
				$sysj=$shop['xsjx_time']-time();
             ?>         
            <?php if(time() > $shop['xsjx_time'] ): ?> 
			
			<li class="m-xs-li" txt="<?php echo $shop['time_H']; ?>点" codeid="<?php echo $shop['id']; ?>" uweb="<?php echo idjia($shop['q_uid']); ?>">
				<article class="clearfix m-xs-ct m-xs-End">
					<div class="u-xs-pic">
						<div class="z-xs-pic">
						<a href="<?php echo WEB_PATH; ?>/mobile/mobile/item/<?php echo $shop['id']; ?>"><img src="<?php echo G_TEMPLATES_IMAGE; ?>/loading.gif" src2="<?php echo G_UPLOAD_PATH; ?>/<?php echo $shop['thumb']; ?>" border=0 /></a>
						</div>
						<div class="z-xs-time"><b>已结束</b></div>
					</div>
					<div class="u-xs-con">
						<div class="clearfix u-xs-name">
						<a class="u-xs-name-img" href="<?php echo WEB_PATH; ?>/mobile/mobile/userindex/<?php echo $shop['q_uid']; ?>">
						 <?php if($shop['canyurenshu'] < 1 ): ?> 
						 <img name="uImg" border="0" src2="<?php echo G_TEMPLATES_IMAGE; ?>/prmimg.jpg"/></a>
						<div class="u-xs-name-r">
						<p>该产品暂时无人购买，不予开奖</p>
						<p>幸运码：<em class="orange">无人参与不予开奖</em></p>
						<p>总共<?php echo _cfg('web_name_two'); ?>：<em class="orange"><?php echo $user_shop_number[$shop['q_uid']][$shop['id']]; ?></em>人次</p>
						</div>
						<?php  else: ?>
						<img name="uImg" border="0" src2="<?php echo G_UPLOAD_PATH; ?>/<?php echo get_user_key($shop['q_uid'],'img'); ?>"/></a>
						<div class="u-xs-name-r"><p>恭喜<a name="uName" href="<?php echo WEB_PATH; ?>/mobile/mobile/userindex/<?php echo $shop['q_uid']; ?>" class="z-user blue"><?php echo get_user_name($shop['q_uid']); ?></a>获得</p><p>幸运<?php echo _cfg('web_name_two'); ?>码：<em class="orange"><?php echo $shop['q_user_code']; ?></em></p><p>总共<?php echo _cfg('web_name_two'); ?>：<em class="orange"><?php echo $user_shop_number[$shop['q_uid']][$shop['id']]; ?></em>人次</p></div>
						<?php endif; ?>


						</div><ins class="z-promo">价值:<em class="arial">￥<?php echo $shop['money']; ?></em></ins>

						<div class="Progress-bar"><p class="u-progress" title="已完成<?php echo width($shop['canyurenshu'],$shop['zongrenshu'],100); ?>%">
							<span class="pgbar" style="width:<?php echo width($shop['canyurenshu'],$shop['zongrenshu'],100); ?>%;">
							   <span class="pging"></span>
							</span></p>
							<ul class="Pro-bar-li">
								<li class="P-bar01"><em><?php echo $shop['canyurenshu']; ?></em>已参与</li>
								<li class="P-bar02"><em><?php echo $shop['zongrenshu']; ?></em>总需人次</li>
								<li class="P-bar03"><em><?php echo $shop['zongrenshu']-$shop['canyurenshu']; ?></em>剩余</li>
							</ul>
						</div>
					</div>
				</article>
			</li>
			 <?php  else: ?>
			<li class="m-xs-li" txt="<?php echo $shop['time_H']; ?>点" codeid="<?php echo $shop['id']; ?>" >
			  <article class="clearfix m-xs-ct ">
			      <div class="u-xs-pic">
				       <div class="z-xs-pic">
			             <a href="<?php echo WEB_PATH; ?>/mobile/mobile/item/<?php echo $shop['id']; ?>"><img src="<?php echo G_TEMPLATES_IMAGE; ?>/loading.gif" src2="<?php echo G_UPLOAD_PATH; ?>/<?php echo $shop['thumb']; ?>" border=0 /></a>
			          </div>			         				 
					  <div name="timerItem" class="z-xs-time" time="<?php echo $sysj; ?>"><em>00</em>时<em>00</em>分<em>00</em>秒<s class="z-aw-tblr"></s>
				      </div>
				  </div>
				  <div class="u-xs-con">
				      <a href="<?php echo WEB_PATH; ?>/mobile/mobile/item/<?php echo $shop['id']; ?>" class="gray6 z-tt">(第<?php echo $shop['qishu']; ?>期)<?php echo $shop['title']; ?></a>
				      <ins class="z-promo">价值:<em class="arial">￥<?php echo $shop['money']; ?></em></ins>
				      <div class="Progress-bar"><p class="u-progress" title="已完成<?php echo width($shop['canyurenshu'],$shop['zongrenshu'],100); ?>%"><span class="pgbar" style="width:<?php echo width($shop['canyurenshu'],$shop['zongrenshu'],100); ?>%;"><span class="pging"></span></span></p>
					    <ul class="Pro-bar-li">
					     <li class="P-bar01"><em><?php echo $shop['canyurenshu']; ?></em>已参与</li>
						 <li class="P-bar02"><em><?php echo $shop['zongrenshu']; ?></em>总需人次</li>
						 <li class="P-bar03"><em><?php echo $shop['zongrenshu']-$shop['canyurenshu']; ?></em>剩余</li>
						</ul>
					   </div>
				  </div>
				 </article>
			</li>
			<?php endif; ?>
            <?php  endforeach; $ln++; unset($ln); ?>
			
			
		 </ul>
	        
	    </article>
    </section>
    <?php endif; ?>
-->

  <div class="tabs-wrap">
    <div class="zxjx">
      <a href="<?php echo WEB_PATH; ?>/mobile/mobile/glist" class="tab_selected" data-order_by='level'>热门推荐<label style="position:absolute; right:1rem; cursor:pointer">显示全部&nbsp;></label></a>
    </div>
    <div class="tabs-content">
      <ul class="ul">
      <?php $ln=1;if(is_array($shoplistrenqi)) foreach($shoplistrenqi AS $renqi): ?>
           <li id="<?php echo $renqi['id']; ?>">
           <a id="prize_url" href="javascript:;" class="add1" codeid="<?php echo $renqi['id']; ?>" >
             <img style="display: block;" data-original="<?php echo G_UPLOAD_PATH; ?>/<?php echo $renqi['thumb']; ?>" id="prize_image" src="<?php echo G_UPLOAD_PATH; ?>/<?php echo $renqi['thumb']; ?>">
             <h6 id="prize_title"><?php echo $renqi['title']; ?></h6>
             <div class="item_bottom_container">
               <div class="jdt_container">
                 <div>进度&nbsp;<label class="color_blue" id="jd"><?php echo percent($renqi['canyurenshu'],$renqi['zongrenshu']); ?></label></div>
                 <span class="jdt" style="margin-left:0rem;"><span style="width:<?php echo $renqi['canyurenshu']/$renqi['zongrenshu']*100; ?>%;"></span></span>
               </div>
               <div class="buy_container">
                 <div class="btn_buy">立即<?php echo _cfg('web_name_two'); ?></div>
               </div>
             </div>
           </a>
         </li>
          <?php  endforeach; $ln++; unset($ln); ?>
      </ul>	  
	  
	  <div class="tabs-wrap">
    <div class="zxjx">
      <a href="<?php echo WEB_PATH; ?>/mobile/mobile/glist" class="tab_selected" data-order_by='level'>新品上架<label style="position:absolute; right:1rem; cursor:pointer">显示全部&nbsp;></label></a>
    </div>
    <div class="tabs-content">
      <ul class="ul">
      <?php $ln=1;if(is_array($new_shop)) foreach($new_shop AS $new): ?>
           <li id="<?php echo $new['id']; ?>">
           <a id="prize_url" href="javascript:;" class="add1" codeid="<?php echo $new['id']; ?>" >
             <img style="display: block;" data-original="<?php echo G_UPLOAD_PATH; ?>/<?php echo $new['thumb']; ?>" id="prize_image" src="<?php echo G_UPLOAD_PATH; ?>/<?php echo $new['thumb']; ?>">
             <h6 id="prize_title"><?php echo $new['title']; ?></h6>
             <div class="item_bottom_container">
               <div class="jdt_container">
                 <div>进度&nbsp;<label class="color_blue" id="jd"><?php echo percent($new['canyurenshu'],$new['zongrenshu']); ?></label></div>
                 <span class="jdt" style="margin-left:0rem;"><span style="width:<?php echo $new['canyurenshu']/$new['zongrenshu']*100; ?>%;"></span></span>
               </div>
               <div class="buy_container">
                 <div class="btn_buy">立即<?php echo _cfg('web_name_two'); ?></div>
               </div>
             </div>
           </a>
         </li>
          <?php  endforeach; $ln++; unset($ln); ?>
      </ul>	    
	  
	  
	  
 <script type="text/javascript">
      //打开页面加载数据
      window.onload=function(){
      	//购物车数量
      	$.getJSON('<?php echo WEB_PATH; ?>/mobile/ajax/cartnum',function(data){
      		if(data.num){
      			$("#btnCart").append('<em>'+data.num+'</em>');
      		}
      	});
      }
      	//添加到购物车
      	$(document).on("click",'.add1',function(){
      		var codeid=$(this).attr('codeid');
      		window.location.href="<?php echo WEB_PATH; ?>/mobile/mobile/item/"+codeid;	
      	});
</script>
	  
	  <?php include templates("mobile/index","footer");?>
    </div>
  </div>
</main>
 <script src="<?php echo G_TEMPLATES_JS; ?>/mobile/main.js"></script> 
</div>
   <?php 
    $f_home = '';
    $f_whole = '';
    $f_jiexiao = '';
    $f_car = '';
    $f_personal = '';

    if( ROUTE_C == 'home' || ROUTE_C == 'user' ){
      $f_personal = 'cur';
    }else if( ROUTE_C == 'mobile' && ROUTE_A == 'init'){
      $f_home = 'cur';
    }else if( ROUTE_C == 'mobile' && ROUTE_A == 'glist'){
      $f_whole = 'cur';
    }else if( ROUTE_C == 'mobile' && ROUTE_A == 'lottery'){
      $f_jiexiao = 'cur';
    }else if( ROUTE_C == 'shaidan'){
      $f_car = 'cur';
    }
    ?>
   <p>
    <br />
   </p>
   <p>
    <br />
   </p>
   <p>
    <br />
   </p>
   <style>
   .footerdi .f_home i.cur{
    background-position: 0 0 !important;
   }
   .footerdi .f_whole i.cur{
    background-position: 0 -52px !important;
   }
   .footerdi .f_jiexiao i.cur{
    background-position: 0 -222px !important;
   }
   .footerdi .f_car i.cur{
    background-position: 0 -105px !important;
   }
   .footerdi .f_personal i.cur{
    background-position: 0 -152px !important;
   }
   </style>   
   <div class="footerdi" style="bottom: 0px;">
    <ul>
      <li class="f_home">
        <a title="首页" href="<?php echo WEB_PATH; ?>/mobile/mobile/"><i class="<?php echo $f_home; ?>">&nbsp;</i>首页</a>
      </li>
      <li class="f_whole">
        <a title="全部奖品" href="<?php echo WEB_PATH; ?>/mobile/mobile/glist"><i class="<?php echo $f_whole; ?>">&nbsp;</i>全部商品</a>
      </li>
      <li class="f_jiexiao">
        <a title="最新揭晓" href="<?php echo WEB_PATH; ?>/mobile/mobile/lottery"><i class="<?php echo $f_jiexiao; ?>">&nbsp;</i>最新揭晓</a>
      </li>
      <li class="f_car">
        <a title="首页" href="<?php echo WEB_PATH; ?>/mobile/shaidan"><i class="<?php echo $f_car; ?>">&nbsp;</i>分享晒单</a>
      </li>
      <li class="f_personal">
        <a title="首页" href="<?php echo WEB_PATH; ?>/mobile/user/login"><i class="<?php echo $f_personal; ?>">&nbsp;</i>个人中心</a>
      <li>
    </ul>
   </div>
  </body>
</html>
<style>
#pageDialogBG{-webkit-border-radius:5px; width:255px;height:45px;color:#fff;font-size:16px;text-align:center;line-height:45px;}
</style>
<div id="pageDialogBG" class="pageDialogBG">
<div class="Prompt"></div>
</div>


	  <style>
 .contact-public{
    position:fixed;
    right:0px;
    width:30px;
    padding:0;
    line-height:15px;
    border-radius:5px;
    background:rgba(255, 222, 173, 1);
    bottom:70px;
    text-align:center;
    color:#fff;
    z-index:2;
 }
.contact-public li{
   display:block;
   border-bottom:1px solid #7D7D7D;
   text-align:center;
               -webkit-box-sizing:border-box;
                  -moz-box-sizing:border-box;
                     -o-box-sizing:border-box;   
                        box-sizing:border-box;
}
.contact-public li:last-child{
   border-bottom:0;
   border-top:1px solid #242424;
}
.contact-public a{
   display:block;
   color:#FD94FC;
   font-size:16px;
   text-align:center;
   padding:6px;
}
.contact-public .icon-tel{
   display:block;
   margin:0px auto 0 auto;
   width:25px;
   height:20px;
   background:url("http://wfx.91dcw.com/weixin/images/distribution2.png") -200px -820px;
   background-size:300px 1000px;
}
</style>
 <script>
   wx.config({
     debug: false,
     appId: "<?php  echo $wechat['appid']; ?>",
     timestamp: <?php  echo $signPackage["timestamp"]; ?>,
     nonceStr: '<?php  echo $signPackage["nonceStr"]; ?>',
     signature: '<?php  echo $signPackage["signature"]; ?>',
   jsApiList: ["checkJsApi", "onMenuShareAppMessage", "onMenuShareTimeline", "onMenuShareWeibo", "onMenuShareQQ"]
   });
 wx.ready(function () {
 var n = $("#hidLineLink").val();
     wx.onMenuShareTimeline({
         title: "1元就能购买iphone6哦，快去看看吧！", // 分享标题
         link: n, // 分享链接
         imgUrl: "<?php echo G_TEMPLATES_STYLE; ?>/images/mobile/iphone6.jpg", // 分享图标
         success: function () { 
            alert('已分享');
         },
         cancel: function () { 
             alert('已取消');
         }
     });
     wx.onMenuShareAppMessage({
         title: "1元就能购买iphone6哦，快去看看吧！", // 分享标题
         desc: "1元就能购买iphone6哦，快去看看吧！", // 分享描述
         link: n, // 分享链接
         imgUrl: "<?php echo G_TEMPLATES_STYLE; ?>/images/mobile/iphone6.jpg", // 分享图标
         type: '', // 分享类型,music、video或link，不填默认为link
         dataUrl: '', // 如果type是music或video，则要提供数据链接，默认为空
          success: function () { 
            alert('已分享');
         },
         cancel: function () { 
             alert('已取消');
         }
     });
     wx.onMenuShareQQ({
         title: "1元就能购买iphone6哦，快去看看吧！", // 分享标题
         desc: "1元就能购买iphone6哦，快去看看吧！", // 分享描述
         link: n, // 分享链接
         imgUrl: "<?php echo G_TEMPLATES_STYLE; ?>/images/mobile/iphone6.jpg", // 分享图标
         success: function () { 
            // 用户确认分享后执行的回调函数
         },
         cancel: function () { 
            // 用户取消分享后执行的回调函数
         }
     });
     wx.onMenuShareWeibo({
         title: "1元就能购买iphone6哦，快去看看吧！", // 分享标题
         desc: "1元就能购买iphone6哦，快去看看吧！", // 分享描述
         link: n, // 分享链接
         imgUrl: "<?php echo G_TEMPLATES_STYLE; ?>/images/mobile/iphone6.jpg", // 分享图标
         success: function () { 
            alert('已分享');
         },
         cancel: function () { 
             alert('已取消');
         }
     });
 });
 </script>
 <script language="javascript" type="text/javascript">
  var Path = new Object();
  Path.Skin="<?php echo G_TEMPLATES_STYLE; ?>";  
  Path.Webpath = "<?php echo 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('<?php echo G_TEMPLATES_JS; ?>/mobile/Bottom.js');
</script>