<?php /* Smarty version Smarty-3.1.8, created on 2016-01-05 15:43:40
         compiled from "D:\wwwroot\o2o\htdocs\themes\default\xiche\order\pay.html" */ ?>
<?php /*%%SmartyHeaderCode:226605652dc96821902-08483971%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'ca1aa7f0bc72ed92b73661ae2c7098c04320aeb3' => 
    array (
      0 => 'D:\\wwwroot\\o2o\\htdocs\\themes\\default\\xiche\\order\\pay.html',
      1 => 1451979542,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '226605652dc96821902-08483971',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5652dc9688ef25_12694733',
  'variables' => 
  array (
    'o' => 0,
    'g' => 0,
    'og' => 0,
    'v' => 0,
    'MEMBER' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5652dc9688ef25_12694733')) {function content_5652dc9688ef25_12694733($_smarty_tpl) {?><?php if (!is_callable('smarty_function_link')) include 'D:\\wwwroot\\o2o\\htdocs\\system\\plugins/smarty\\function.link.php';
?><?php $_smarty_tpl->tpl_vars['tpl_title'] = new Smarty_variable('支付订单', null, 0);?>
<!DOCTYPE HTML>
<html>
<head>

<?php echo $_smarty_tpl->getSubTemplate ("xiche/block/sheader.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>


</head>
<body>
<header>
	<i class="left"><a id="icon_goback" href="<?php echo smarty_function_link(array('ctl'=>'ucenter/orderlist'),$_smarty_tpl);?>
"></a></i>
    <div class="title">支付订单</div>
    <i class="right"></i>
</header>
<form action="<?php echo smarty_function_link(array('ctl'=>'trade/payment:order'),$_smarty_tpl);?>
" method="post">
<section id="order_pay" class="page_center_box">
	<ul class="form_list_box">
    	<li>
            <p>
            	<span class="fl"><?php echo $_smarty_tpl->tpl_vars['g']->value[$_smarty_tpl->tpl_vars['o']->value['goods_id']]['title'];?>
</span>
                <span class="fr"></span>
            </p>
        </li>
        <?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['og']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key;
?>
            <li>
                <p>
                    <span class="fl"><?php echo $_smarty_tpl->tpl_vars['v']->value['product_name'];?>
 <span class="red"><?php echo $_smarty_tpl->tpl_vars['v']->value['product_price'];?>
</span>元</span>
                    <span class="fr fontcl">X<?php echo $_smarty_tpl->tpl_vars['v']->value['product_number'];?>
</span>
                </p>
            </li>
        <?php } ?>
        <li class="last">
           	<p>
            	<span class="fl">总价</span>
                <span class="fr"><b class="fontcl"><?php echo $_smarty_tpl->tpl_vars['o']->value['price'];?>
</b>元<span id="hbdk_num"></span></span>
            </p>
        </li>
    </ul>        
	<ul class="payWay">
            <li>
            	<label>
                	<div class="fl">
                    	<em class="ico_1"></em>
                        <p class="overflow_clear">支付宝</p>
                        <p class="overflow_clear graycl">推荐已安装支付宝客户端的用户使用</p>
                    </div>
                    <div class="fr">
                    	<span class="check on" val='alipay'></span>
                    </div>
                    <div class="clear"></div>
                </label>
            </li>
            <li>
            	<label>
                	<div class="fl">
                    	<em class="ico_3"></em>
                        <p class="overflow_clear">微信</p>
                        <p class="overflow_clear graycl">推荐已安装微信客户端的用户使用</p>
                    </div>
                    <div class="fr">
                    	<span class="check" val='wxpay'></span>
                    </div>
                    <div class="clear"></div>
                </label>
            </li>
            <li>
            	<label>
                	<div class="fl">
                    	<em class="ico_4"></em>
                        <p class="overflow_clear">余额支付</p>
                        <p class="overflow_clear graycl">推荐余额足够的用户使用，您的余额<?php echo $_smarty_tpl->tpl_vars['MEMBER']->value['money'];?>
</p>
                    </div>
                    <div class="fr">
                    	<span class="check" val='money'></span>
                    </div>
                    <div class="clear"></div>
                </label>
            </li>
          
        </ul>
</section>
    <input type='hidden' value='alipay' name='code' id='pay_type'>
    <input type="hidden" value='<?php echo $_smarty_tpl->tpl_vars['o']->value['order_id'];?>
' name='order_id'>
    <input type='hidden' value='xiche' name='from'>
    <input type="hidden" value='' name='hb_id' id="hb_id">
<footer>
	<div class="btn_long_box"><input class="btn_long" type="submit" value="立即支付"></div>
</footer>
</form>
<script>
require(["zepto", "underscore", "frozen"], function($, _, fz) {
        $(".payWay li").click(function(){
		$(".check").removeClass("on");
		$(this).find(".check").addClass("on");
        v = $(this).find('.check').attr('val');
        $('#pay_type').val(v);
	});
	$(".recharge .check_label").click(function(){
		$(".check_style").removeClass("on");
		$(this).find(".check_style").addClass("on");
	});
	$(".pay_way .check_label").click(function(){
		$(".list").removeClass("on");
		$(this).find(".list").addClass("on");
	});
});
</script>
</body>
</html><?php }} ?>