getCompiled()->isFresh($_smarty_tpl, array ( 'version' => '5.3.1', 'unifunc' => 'content_679cc16b3c1c02_42437671', 'has_nocache_code' => false, 'file_dependency' => array ( 'aa64e431bf47e1cda159e5c8727668aa23428af3' => array ( 0 => 'user/invoice/view.tpl', 1 => 1734066778, 2 => 'file', ), ), 'includes' => array ( 'file:user/header.tpl' => 1, 'file:../../gateway/".((string)$_smarty_tpl->getValue(\'payment_name\')).".tpl' => 1, 'file:user/footer.tpl' => 1, ), ))) { function content_679cc16b3c1c02_42437671 (\Smarty\Template $_smarty_tpl) { $_smarty_current_dir = '/www/wwwroot/xiaofu.cloud/resources/views/tabler/user/invoice'; $_smarty_tpl->renderSubTemplate('file:user/header.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), (int) 0, $_smarty_current_dir); ?> src="//getValue('config')['jsdelivr_url'];?> /npm/jquery/dist/jquery.min.js"> >
getValue('invoice')->status === 'unpaid') {?>

基本信息

订单ID
getValue('invoice')->order_id;?>
订单金额
getValue('invoice')->price;?>
订单状态
getValue('invoice')->status_text;?>
创建时间
getValue('invoice')->create_time;?>
更新时间
getValue('invoice')->update_time;?>
支付时间
getValue('invoice')->pay_time;?>
getValue('invoice')->status === 'paid_gateway') {?>
支付网关单号
getValue('paylist')->tradeno;?>

账单详情

getSmarty()->getRuntime('Foreach')->init($_smarty_tpl, $_smarty_tpl->getValue('invoice_content'), 'invoice_content_detail'); $foreach0DoElse = true; foreach ($_from ?? [] as $_smarty_tpl->getVariable('invoice_content_detail')->value) { $foreach0DoElse = false; ?> getSmarty()->getRuntime('Foreach')->restore($_smarty_tpl, 1);?>
名称 价格
getValue('invoice_content_detail')->name;?> getValue('invoice_content_detail')->price;?>
getValue('invoice')->status === 'unpaid') {?>

余额支付

当前账户可用余额:getValue('user')->money;?>
getSmarty()->getModifierCallback('count')($_smarty_tpl->getValue('payments')) > 0) {?>

微信支付宝

getSmarty()->getRuntime('Foreach')->init($_smarty_tpl, $_smarty_tpl->getValue('payments'), 'payment'); $foreach1DoElse = true; foreach ($_from ?? [] as $_smarty_tpl->getVariable('payment')->value) { $foreach1DoElse = false; ?>
getValue('payment'); $_smarty_tpl->assign('payment_name', $_prefixVariable1::_name(), false, NULL);?> renderSubTemplate("file:../../gateway/".((string)$_smarty_tpl->getValue('payment_name')).".tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), (int) 0, $_smarty_current_dir); ?>
getSmarty()->getRuntime('Foreach')->restore($_smarty_tpl, 1);?>
> $("#pay-balance").click(function () { $.ajax({ url: '/user/invoice/pay_balance', type: 'POST', dataType: "json", data: { invoice_id: getValue('invoice')->id;?> , }, success: function (data) { if (data.ret === 1) { $('#success-message').text(data.msg); $('#success-dialog').modal('show'); setTimeout(function () { $(location).attr('href', '/user/invoice'); }, getValue('config')['jump_delay'];?> ); } else { $('#fail-message').text(data.msg); $('#fail-dialog').modal('show'); } } }) }); > renderSubTemplate('file:user/footer.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), (int) 0, $_smarty_current_dir); } }