<?php /* Smarty version Smarty-3.1.8, created on 2016-01-06 10:46:16
         compiled from "D:\wwwroot\o2o\htdocs\themes\default\ucenter\money\index.html" */ ?>
<?php /*%%SmartyHeaderCode:1365756502a33f31321-95962256%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '67986a1b1271de2c61ef29b9a6bf222f79305797' => 
    array (
      0 => 'D:\\wwwroot\\o2o\\htdocs\\themes\\default\\ucenter\\money\\index.html',
      1 => 1452048373,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1365756502a33f31321-95962256',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_56502a34054846_43292191',
  'variables' => 
  array (
    'MEMBER' => 0,
    'paynum' => 0,
    'item' => 0,
    'k' => 0,
    'is_wx' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56502a34054846_43292191')) {function content_56502a34054846_43292191($_smarty_tpl) {?><?php if (!is_callable('smarty_function_link')) include 'D:\\wwwroot\\o2o\\htdocs\\system\\plugins/smarty\\function.link.php';
?><!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/index'),$_smarty_tpl);?>
"></a></i>
	<div class="title">余额</div>
        <i class="right"><a href="<?php echo smarty_function_link(array('ctl'=>'ucenter/money/log'),$_smarty_tpl);?>
">余额明细</a></i> </header>
        <div class="cztx_mask">
                <div class="nr">
                    <a href="#">
                    <div class="nr_mask">
                            <p>
                                充值越多，返现越多；
                                优先安排师傅为您服务；
                                全场通用，安全快捷。 
                            </p>
                    </div>
                   </a>
                </div>
        </div>
<form action="<?php echo smarty_function_link(array('ctl'=>'trade/payment:money'),$_smarty_tpl);?>
" method="post">
<section id="index" class="page_center_box">

        <?php if ($_smarty_tpl->tpl_vars['MEMBER']->value['money']>0){?>
	<div class="youhui_no">
		<div class="iconBg"> <i class="ico3"></i> </div>
		<h2>账户余额：<font class="pointcl">￥<?php echo $_smarty_tpl->tpl_vars['MEMBER']->value['money'];?>
</font></h2>
	</div>
        <?php }else{ ?>
         <div class="youhui_no">
		<div class="iconBg icongrayBg"> <i class="ico9"></i> </div>
		<h2>您还没有余额</h2>
		<p class="graycl">暂时没有明细</p>
	</div>
        <?php }?>
	<div class="yuee_list">
		<ul>

                        
                        <?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['item']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['paynum']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
$_smarty_tpl->tpl_vars['item']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['item']->key;
?>
                        <li val='<?php echo $_smarty_tpl->tpl_vars['item']->value;?>
'>
                            <a href="#">
				<h4>充值<span class="fontcl"><?php echo $_smarty_tpl->tpl_vars['k']->value;?>
</span>元送<font class="pointcl"><?php echo $_smarty_tpl->tpl_vars['item']->value;?>
元</font></h4>
                            </a>
                        </li>
                        <?php } ?>
                        
                        <input name="amount" type="hidden" value="" id='amount'>

                        
		</ul>
	</div>
        <div class="pay_way">
            <div class="title">选择支付方式</div>
            <ul>
                <?php if ($_smarty_tpl->tpl_vars['is_wx']->value==0){?>
                <li>
                    <label class="check_label">
                        <div class="list ico_1 on"><input name="code" checked="checked" type="radio" value="alipay"></div>
                    </label>
                </li>
                <?php }else{ ?>
                <li>
                    <label class="check_label">
                        <div class="list ico_2"><input name="code" " checked="checked" type="radio" value="wxpay"></div>
                    </label>
                </li>
                <?php }?>
                <div class="clear"></div>
            </ul>
        </div>
	
</section>
    <footer>
            <div class="btn_long_box"><input class="btn_long" type="submit" value="立即充值"></div>
        </footer>
</form>
        
<script type="text/javascript">
    require(["zepto", "underscore", "frozen"], function ($, _, fz) {
            $('.yuee_list ul li').click(function(){
                var val = $(this).attr('val');
                $('.yuee_list ul li').removeClass('current');
                $(this).addClass('current');
                $('#amount').val(val);
            });
            $('.cztx_mask .nr_mask').click(function(){
             $('.cztx_mask').hide();
            });
            $('#list3').addClass('on');
    });
</script>

    </body>
</html><?php }} ?>