<?php
if (!defined('ROOT'))
	exit ;
?>
<!DOCTYPE html>
<html>

	<head>
		<title>充值</title>
		<meta name="description" content="">
		<meta name="keywords" content="">
		<?php
		include 'Inc_files.php';
		?>
	</head>

	<body data-type="index">
		<script src="<?php echo C('TMPL_PARSE_STRING.__TPL__'); ?>/assets/js/theme.js"></script>
		<div class="am-g tpl-g">
			<?php include 'Inc_head.php'?>
			<!-- 侧边导航栏 -->
			<?php
				include 'Inc_left.php';
			?>

			<!-- 内容区域 -->
			<div class="tpl-content-wrapper">
				<div class="row-content am-cf">
					<div class="row">
	                    <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
	                        <div class="widget am-cf">
	                            <div class="widget-head am-cf">
	                                <div class="widget-title am-fl">充值</div>
	                            </div>
	                            <div class="widget-body am-fr">
	                            	<!--/Pay/recharge_alipay_pc-->
	                                <form target='_blank' action="/pay/recharge" method="post" class="am-form tpl-form-border-form tpl-form-border-br">
	                                	<input type="hidden" name="model_id" value="35" />
	                                	<input type="hidden" name="uid" value="<?php echo session('user_auth.id');?>" />
	                                    <div class="am-form-group">
	                                        <label for="user-name" class="am-u-sm-3 am-form-label">充值金额 </label>
	                                        <div class="am-u-sm-9">
	                                            <input type="number"   step="0.01" name="amount" style="width: 100px;" class="tpl-form-input" placeholder="请输入整数">
	                                            <small>最小1元起冲</small>
	                                        </div>
	                                    </div>
	                                    <div class="am-form-group">
	                                        <label for="user-phone" class="am-u-sm-3 am-form-label">支付方式</label>
	                                        <div class="am-u-sm-9">
	                                            <select name="pay_way" data-am-selected="{searchBox: 0}" style="display: none;">
	                                            	<?php
	                                            	$list_pay_way=get_pay_way(3,1);
													foreach ($list_pay_way as $k => $v) {
														echo "<option value='{$v['id']}'>{$v['title1']}</option>";
													}
	                                            	?>
												</select>
	                                        </div>
	                                    </div>
	                                    <div class="am-form-group">
	                                        <div class="am-u-sm-9 am-u-sm-push-3">
	                                            <button type="submit" class="am-btn am-btn-primary tpl-btn-bg-color-success  btn_chongzhi">提交</button>
	                                        </div>
	                                    </div>
	                                </form>
	                            </div>
	                        </div>
	                    </div>
	                </div>
				</div>
			</div>
		</div>
		<div class="am-modal am-modal-confirm" tabindex="-1" id="payconfirm">
		  	<div class="am-modal-dialog">
			    <div class="am-modal-hd">支付提示</div>
			    <div class="am-modal-bd">
			    </div>
			    <div class="am-modal-footer">
			      <span class="am-modal-btn" data-am-modal-cancel>重新充值</span>
			      <span class="am-modal-btn" data-am-modal-confirm>支付成功</span>
			    </div>
		  	</div>
		</div>
		<?php
		include 'Inc_files_boot.php';
		?>
		<script type="text/javascript">
			jQuery(document).on('click','.btn_chongzhi',function () {
				var the=jQuery(this);
				jQuery('#payconfirm').modal({
					relatedTarget: this,
					onconfirm: function() {
						location.href='/v/lists/model_id/35/uid/<?php echo session('user_auth.id');?>';
					},
					onCancel: function() {
			
					}
				});
			})
		</script>
	</body>

</html>