<?php
if (!defined('ROOT'))
	exit ;
 ?>
<html>
	<head>
	<meta name="viewport" content="width=device-width, initial-scale=1,  user-scalable=no">
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<meta name="format-detection" content="telephone=no">
	<title>恭喜您成功购买：<?php echo $info_file_log['name']; ?>，本页可通过提取码免费下载</title>
	<link rel="stylesheet" href="<?php echo S('STATIC'); ?>/static/uhome/assets/css/bootstrap.min.css">
	<link rel="stylesheet" href="<?php echo S('STATIC'); ?>/static/uhome/assets/css/init.css">
	<link rel="stylesheet" href="<?php echo S('STATIC'); ?>/static/uhome/assets/css/main.css">
	<link type="text/css" rel="stylesheet" href="<?php echo S('STATIC'); ?>/static/uhome/assets/css/jquery.mmenu.all.css" />
	<link rel="stylesheet" href="<?php echo S('STATIC'); ?>/static/uhome/assets/css/animate.css">	
	<style type="text/css">
		.main{ z-index: 1;}
	</style>
	</head>
	<body class="sf fah">

<div>



	<header id="header" class="">
   <div class="main">
    <img src="<?php echo S('STATIC'); ?>/static/uhome/xsinmages/images/s_02.jpg" alt="" class="left logo">



    <ul class="left daoh hidden-xs ">
         <li><a href="http://www.<?php echo C('BEN_BZUSR');?>">首页</a></li>
		 <li><a href="http://member.<?php echo C('BEN_BZUSR');?>/reg">立即注册</a></li>
		 <li><a href="http://member.<?php echo C('BEN_BZUSR');?>/">马上登陆</a></li>
		 <li><a href="<?php echo "http://" . $userconfig['domain'] . '.' . C('DOMAIN_WANGPAN'); ?>">返回网盘</a></li>
    </ul>

    <br class="qc">
   </div>
	</header><!-- /header -->




  <div class="main fwai">

   <div class="li-m">

     <h2><img src="<?php echo S('STATIC'); ?>/static/uhome/xsinmages/images/cheng.png" alt=""> 恭喜您支付成功</h2>
     <p class="tit-simll">您购买了<span><?php echo $info_file_log['name']; ?></span>下面是您的订单信息</p>

     <ul class="biao-ge">
         <li>
           <span><img src="<?php echo S('STATIC'); ?>/static/uhome/xsinmages/images/f_03.png" alt="">商品名称</span>
           <div><span class="red" style="width: 100%;"><?php echo $info_file_log['name']; ?></span></div>
           <br class="qc">
         </li>
         <li>
           <span><img src="<?php echo S('STATIC'); ?>/static/uhome/xsinmages/images/f_06.png" alt="">订单号</span>
           <div><span class="blue"><?php echo $info_file_log['no']; ?></span>
		    <a href="#" class="fuzhi btn_copy" data-clipboard-text='<?php echo $info_file_log['no']; ?>'>复制订单</a></div>
           <br class="qc">
         </li>
         <li>
           <span><img src="<?php echo S('STATIC'); ?>/static/uhome/xsinmages/images/f_08.png" alt="">付款金额（元）</span>
           <div><span class="ju"><?php echo $info_file_log['price']; ?>元</span></div>
           <br class="qc">
         </li>
         <li>
           <span><img src="<?php echo S('STATIC'); ?>/static/uhome/xsinmages/images/f_10.png" alt="">软件提取码</span>
           <div><span class="green" id="biao1"><?php echo $info_file_log['code']; ?></span>
           <input type="hidden" name="" value="194809" id="input">
           <a href="#" class="fuzhi btn_copy" data-clipboard-text='<?php echo $info_file_log['code']; ?>'>复制</a>
		  
		   <button type="button"  class="fuzhi btn_copy"  data-toggle="modal" data-target="#download">软件下载</button></div>
           <br class="qc">
         </li>
         <li>

           <span><img src="<?php echo S('STATIC'); ?>/static/uhome/xsinmages/images/f_12.png" alt="">提取码有效期</span>
           <div><?php echo $userconfig['file_time']; ?>小时</div>
           <br class="qc">
         </li>
         <li>
           <span><img src="<?php echo S('STATIC'); ?>/static/uhome/xsinmages/images/f_14.png" alt="">支付方式</span>
           <div>
           	<?php echo $info_file_log['pay_way'];?>
           </div>
           <br class="qc">
         </li>
         <li>
           <span><img src="<?php echo S('STATIC'); ?>/static/uhome/xsinmages/images/f_16.png" alt="">支付时间</span>
           <div><?php echo date('Y-m-d H:i', $info_file_log['ctime']); ?></div>
           <br class="qc">
         </li>
     </ul>
	 <table width="100%" border="0" align="center">
  <tr>
    <td><div align="center"></div></td>
  </tr>
</table>

	 
	 
   </div>

	<?php if($info_file_log['card']){?>
   	<div class="dilie">
          <h2 class="title"><span>产品（卡密）</span></h2>

          <ul class="fu-zeng">
             
			  <li><a><!--<img src="<?php echo S('STATIC'); ?>/static/uhome/xsinmages/images/f_19.jpg" alt="">--><?php echo $info_file_log['card']; ?></a></li>

          </ul>

    </div>
    <?php }?>

    <p class="didibei">
      感谢您在106云盘购买客户产品<br>
	  本站仅是提供软件付费下载、自动发卡服务，并非销售商，相关售后问题并不负责，由此产生的交易纠纷由双方自行处理，与有106网盘 无关！<br>
如果您在支付过程中遇到虚假软件、文件、源码等虚拟商品或取卡问题、请在交易的第二天早8点前联系官方客服进行投诉。<br>
超过第二天上午8点后否则造成的经济损失自负！需要提供订单信息联系客服，投诉客服QQ：<a href="tencent://message/?uin=<?php echo C('KEFUQQ_02');?> "><?php echo C('KEFUQQ_02');?> </a> 联系电话：<a href="tel:04703200086"><?php echo C('TEL');?>    </a></p>

  </div>


 <p class="didi-bei ">106云盘 &copy;版权归属:扎兰屯市姝妍计算机服务有限公司 备案号：蒙ICP备18000186号 ICP经营许可：蒙B2-20180007 <a href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=15078302000156" target="_blank">蒙公网安备 15078302000156号</a></p>  

</div>


</div>
   <script type="text/javascript" src="<?php echo S('STATIC'); ?>/app/uhome/view/File_saletpl1/js/jquery.min.js"></script>
   <script type="text/javascript" src="<?php echo S('STATIC'); ?>/app/uhome/view/File_saletpl1/js/bootstrap.min.js"></script>
   <script src="<?php echo S('STATIC'); ?>/static/public/js/clipboard.min.js" type="text/javascript" charset="utf-8"></script>
	</div>

<!--投诉-->
<div class="modal fade" id="toushu" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">Modal title</h4>
      </div>
      <div class="modal-body"> ... </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        <button type="button" class="btn btn-primary">Save changes</button>
      </div>
    </div>
  </div>
</div>
<!-- 下载 -->
<div class="modal fade" id="download" tabindex="-1" role="dialog" >
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">软件下载</h4>
      </div>
      <form   class="am-form buy">
	      <div class="modal-body">
	      		<?php
	      		$pk=json_decode($info_file_log['file_pk'],true);	
	      		?>
				<input type="hidden" name="pk1" value="<?php echo $pk['pk1'];?>" />
				<input type="hidden" name="pk2" value="<?php echo $pk['pk2'];?>" />
				<input type="hidden" name="pk3" value="<?php echo $pk['pk3'];?>" />
				<input type="hidden" name="pk4" value="<?php echo $pk['pk4'];?>" />
				<div class="form-group">
				    <label for="exampleInputEmail1">邮箱</label>
					<input type="email" name="email" class="form-control" id="email" placeholder="请输入邮箱">
				</div>
				<div class="form-group">
				    <label for="exampleInputEmail1">提取码</label>
					<input type="text" class="form-control" name="code" id="code" id="exampleInputEmail1" placeholder="请输入提取码">
				</div>
	      </div>
	      <div class="modal-footer">
	        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
	        <button type="button" class="btn btn-primary btn_download_tqm1">确定下载</button>
	      </div>
      </form>
    </div>
  </div>
</div>
<script src="<?php echo S('STATIC'); ?>/static/public/js/angular.min.js" type="text/javascript" charset="utf-8"></script>
<script src="<?php echo S('STATIC'); ?>/static/public/js/pc.1.0.0.js"></script>
<script type="text/javascript">
jQuery(document).on('click', '.btn_download_tqm1', function() {
	var the = jQuery(this);
	jQuery.ajax({
		url: "/file/download",
		data: the.closest('form').serializeArray(),
		dataType: "json",
		type: "post",
		timeout: 10000,
		success: function(data) {
			console.log(data.url);
			if(data.status == 1) {
				jQuery('#download').modal('hide');
				the.closest('form')[0].reset();
				location.href = data.url;
			} else {
				wd_alert({
					msg: data.info,
					background: '#f00'
				})
			}

		},
		error: function() {}
	});
});
</script>
	<script type="text/javascript">
		try{
			new ClipboardJS('.btn_copy').on('success',function () {
				alert('复制成功');
			}).on('error',function () {
				alert('您的浏览器不支持，请手动选择复制');
			});
		}catch(e){
			//TODO handle the exception
		}
	</script>
	</body>

</html>