<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
		<title><?php echo $userconfig['seo_title']; ?></title>
		<meta name="keywords" content="自动发卡平台,发卡平台,自动发卡,发卡网,游戏发卡,发卡,天天发卡,天天发卡平台,天天自动发卡平台" />
		<meta name="description" content="极受用户欢迎的106云盘自动发卡平台自动发卡平台，满50元结算无手续费" />
		<!--    模版页面样式文件开始-->
		<link href="<?php echo  C('TMPL_PARSE_STRING.__VIEW__');?>/Products_index/<?php echo $tpl;?>/css/main.css" rel="stylesheet" type="text/css">
		<link href="<?php echo  C('TMPL_PARSE_STRING.__VIEW__');?>/Products_index/<?php echo $tpl;?>/css/pay.css" rel="stylesheet" type="text/css">
		<link href="<?php echo  C('TMPL_PARSE_STRING.__VIEW__');?>/Products_index/<?php echo $tpl;?>/css/iconfont.css" rel="stylesheet" type="text/css">
		<!--    模版页面样式文件结束-->
		<style>.spsm>span>span { color: #648ff7 !important;}</style>
	</head>
	<body ms-controller="myController" class="ms-controller">
		<section class="page_top">
			<div class="container">
				<!--导航-->
				<div class="top">
					<div class="logo">
						<a href="/">
							<img src="<?php echo  C('TMPL_PARSE_STRING.__VIEW__');?>/Products_index/<?php echo $tpl;?>/picture/logo.png" alt="" height="44">
						</a>
					</div>
					<div class="nav_btn">
						<i></i>
					</div>
					<div class="user_btns">
						<a href="/orderquery" target="_blank" class="reg_btn" style="width: 180px">
							<i class="iconfont icon-sousuo"></i> 查询订单
						</a>
					</div>
					<div class="nav">
						<ul>
							<li>
								<a target="_blank" href="/">
									首页
								</a>
							</li>
							<li>
								<a target="_blank" href="javascript:;" data-fancybox='{type:"iframe",href:"/Report/add/?uid=<?php echo $uid;?>",width:660,height:600}'>
									投诉订单
								</a>
							</li>
						</ul>
					</div>
				</div>
			</div>
		</section>
		<form action="<?php echo U('Pay/file')?>" target="_blank" method="post" id="pay">
			<input type="hidden" name="model_id" value="58" />
			<input type="hidden" name="ctime" value="<?php echo time(); ?>" />
	        <input type="hidden" name="file_id"  ms-attr="{value:@info_file.id}" />
	        <input type="hidden" name="uid"  ms-attr="{value:@info_file.uid}" />
	        <input type="hidden" name="pk1"  ms-attr="{value:@info_file.pk1}" />
	        <input type="hidden" name="pk2" ms-attr="{value:@info_file.pk2}" />
	        <input type="hidden" name="pk3" ms-attr="{value:@info_file.pk3}" />
	        <input type="hidden" name="pk4" ms-attr="{value:@info_file.pk4}" />
			
			<div class="order_form">
				<div class="left_card" style="min-height: 276px;margin-top: -20px;">
					<div class="dianpu">
						<i class="iconfont icon-dengpao"></i> 小超人小店
					</div>
					<div class="small_card">
						数字卡密
					</div>
					<div class="small_card">
						自动发货
					</div>
					<div class="small_card">
						<?php echo $userconfig['member_truename']?'实名认证':'未实名认证';?>
					</div>
					<div class="clear"></div>
					<p>
						<b>联系卖家</b><?php echo $service_qq[0];?>
						<a href="//wpa.qq.com/msgrd?v=1&uin=<?php echo $service_qq[0];?>&site=miaoka.la&menu=yes'" target="_blank" class="qq1_btn" style="width:65px;top:15px;">
							<i class="iconfont icon-qq-white"></i> 咨询卖家
						</a>
						<br>
						<span style="color:red;font-size:12px">商品问题联系卖家</span>
					</p>
					<p>
						<b>卖家网站</b>
						<a target="_blank" href="" style="color: #648ff7;">
							点击浏览
						</a>
					</p>
					<p>
						<b>商品说明</b><span id="remark"></span>
					</p>
				</div>
				<div class="right_form">

					<span style="display: none" class="rate">100</span>
					<ul>
						<li>
							<span class="span_up">商品分类</span>
							<select id="cateid">
								<option value="">请选择..</option>
								<option ms-attr="{value:v.pk4}" ms-for="v in @folder">{{v.name}}</option>
							</select>
						</li>
						<li>
							<span class="span_up">商品名称</span>
							<select id="goodid">
								<option value="">请选择..</option>
								<option ms-attr="{value:v.pk}" ms-for="v in @files">{{v.name}}</option>
							</select>
							<a class="spsm">
								[ 卖家公告 ]
							</a>
							<span id="gonggao" style="display: none">售后Q群:727747639</span>
						</li>

						<li>
							<span class="span_up">商品单价</span>
							<p class="big_txt">
								<b id="price"></b>元
							</p>
							<a style="display:none;top: 10px;" id="isdiscount_span" class="spsm">
								[ 批发优惠 ]
							</a>
							<div id="discountdetail" style="display: none;"></div>
						</li>
						<li>
							<span class="span_up">购买数量</span>
							<input name="num" id="num" type="text" value="1"/>
							<a class="spsm">
								[ <span id="goodInvent" style="width: 110px"></span> ]
							</a>
						</li>
						<li>
							<span class="span_up">邮箱</span>
							<input class="phone_num" name="email" type="text" placeholder="[必填]">
						</li>
						<li>
							<span class="span_up">手机</span>
							<input class="phone_num" name="mobile" type="text" placeholder="短信接收将收取0.1元短信费">
						</li>
						<li class="email_show">
							<span>邮箱地址</span>
							<input type="text" name="email" placeholder="填写你常用的邮箱地址">
						</li>

					</ul>
				</div>
				<div class="clear"></div>
				<!--付款方式-->
				<div class="pay_box">
					<div class="pay_menu">
						<!--                扫码支付-->
						<div class="pay pay_cj_1 checked1">
							<img src="<?php echo  C('TMPL_PARSE_STRING.__VIEW__');?>/Products_index/<?php echo $tpl;?>/picture/pay1.png" width="18" height="18" style="vertical-align:middle">
							扫码支付
						</div>
				
						<div class="all_pay">
							<i class="iconfont icon-zijin"></i> 应付总额：<b class="tprice">{{@price}}</b>元
						</div>
					</div>
					<!--                扫码支付-->
					<div class="pay_list1">
						<?php
						$list_pay_way = get_pay_way(1, 1);	
						foreach ($list_pay_way as $k => $v) {
							if ($k == 0) {
								$checked = 'checked="checked"';
								$checked2='checked2';
							} else {
								$checked = '';
								$checked2='';
							}
							echo '<label class="lab3 '.$checked2.'">
						<input name="pay_way" value="' . $v['id'] . '" data-bank="" type="radio" ' . $checked . '>
						<img src="'.C('TMPL_PARSE_STRING.__VIEW__').'/Products_index/'.$tpl.'/images/' . $v['name'] . '.jpg">
						</label>';
						}
						?>
					</div>
					<!--                网银支付-->
				</div>
				<div id="submit">
					<button class="check_pay" type="submit">
					确认支付
					</button>
				</div>
			</div>
		</form>
		<!--返回顶部-->
		<div class="toTop">
			<i class="iconfont icon-angle-up"></i>TOP
		</div>

		<footer class="row footer-area">

			<div class="row m0 footer_bottom">
				<div class="container">
					<div class="row" style="padding:0 20px">
						<div class="col-sm-6 col-md-6">
							Copyright © 2018-2020 南昌云悉网络科技有限公司 All rights reserved. 版权所有
						</div>
						<div class="right col-sm-6 col-md-6">
							<ul class="footer-menu">
								<li>
									<a href="/" >
										网站首页
									</a>
								</li>
								<li>
									<a href="/company/contact" >
										联系我们
									</a>
								</li>
								<li>
									<a href="/company/faq" >
										常见问题
									</a>
								</li>
								<li>
									<a href="/orderquery" >
										订单查询
									</a>
								</li>
								<li>
									<a href="/article/14.html" target="_blank">
										关于我们
									</a>
								</li>
								<li>
									<a href="/complaintquery" >
										投诉查询
									</a>
								</li>
							</ul>
						</div>
					</div>
				</div>
			</div>
		</footer>
		<script src="<?php echo  C('TMPL_PARSE_STRING.__TPLPUBLIC__');?>/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="<?php echo  C('TMPL_PARSE_STRING.__TPLPUBLIC__');?>/js/pc.1.0.0.js" type="text/javascript" charset="utf-8"></script>
		<script src="<?php echo  C('TMPL_PARSE_STRING.__TPLPUBLIC__');?>/js/avalon.min.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			var vm = avalon.define({
			    $id: "myController",
			    folder:[],
			    files:[],
			    price:0,
			    info_file:[]
			});
			jQuery(document).ready(function($){ 
			    try{
			        jQuery.ajax({
			        	url:"<?php echo U('folder')?>",
			            data:{
			            	uid:<?php echo $uid;?>
			            },
			            dataType: "json",
			            type: "post",
			            timeout: 10000,
			            success: function(data) {
			            	vm.folder=data;
			            },
			            error: function() {
			                mui.toast("网络连接超时");
			            }
			        });   
			    }catch(e){}
			});
			jQuery(document).on('change','#cateid',function () {
				var the=jQuery(this);
				jQuery("#goodid option").eq(0).html('加载中..');
				jQuery.ajax({
		        	url:"<?php echo U('files')?>",
		            data:{
		            	uid:<?php echo $uid;?>,
		            	folder:the.val()
		            },
		            dataType: "json",
		            type: "post",
		            timeout: 10000,
		            success: function(data) {
		            	vm.files=data;
		            	jQuery("#goodid option").eq(0).html('请选择..');
		            },
		            error: function() {
		                mui.toast("网络连接超时");
		            }
		        });    
			})
			jQuery(document).on('change','#goodid',function () {
				var the=jQuery(this);
				jQuery.ajax({
					url:"<?php echo U('getPrice')?>",
				    data:{
				    	pk:the.val()
				    },
				    dataType: "json",
				    type: "post",
				    timeout: 10000,
				    success: function(data) {
				    	vm.info_file=data.info_file;
				    	vm.price=data.amount;
				    },
				    error: function() {
				        mui.toast("网络连接超时");
				    }
				});
			});
			jQuery(document).on('change','#num',function () {
				var the=jQuery(this);
				jQuery.ajax({
					url:"<?php echo U('getPrice')?>",
				    data:{
				    	pk:jQuery("#goodid").val(),
				    	num:the.val()
				    },
				    dataType: "json",
				    type: "post",
				    timeout: 10000,
				    success: function(data) {
				    	vm.price=data.amount;
				    },
				    error: function() {
				        mui.toast("网络连接超时");
				    }
				});     
			});
			jQuery(document).on('click','.pay_list1 label',function () {
				var the=jQuery(this);
				jQuery('.pay_list1 label').removeClass('checked2');       
				the.addClass('checked2');   
			})
		</script>
	</body>
</html>
