getCompiled()->isFresh($_smarty_tpl, array ( 'version' => '5.3.1', 'unifunc' => 'content_673b39637373c5_15660101', 'has_nocache_code' => false, 'file_dependency' => array ( '0f6f0e94a3163de72982d6d6feb0a2f8cea74673' => array ( 0 => 'admin/invoice/view.tpl', 1 => 1712762115, 2 => 'file', ), ), 'includes' => array ( 'file:admin/header.tpl' => 1, 'file:admin/footer.tpl' => 1, ), ))) { function content_673b39637373c5_15660101 (\Smarty\Template $_smarty_tpl) { $_smarty_current_dir = '/private/var/www/wwwroot/crc.loc/resources/views/tabler/admin/invoice'; $_smarty_tpl->renderSubTemplate('file:admin/header.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), (int) 0, $_smarty_current_dir); ?>

基本信息

提交用户
getValue('invoice')->user_id;?>
关联订单 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;?>
> $("#confirm_mark_paid").click(function () { $.ajax({ url: "/admin/invoice/getValue('invoice')->id;?> /mark_paid", type: 'POST', dataType: "json", success: function (data) { if (data.ret === 1) { $('#success-message').text(data.msg); $('#success-dialog').modal('show'); } else { $('#fail-message').text(data.msg); $('#fail-dialog').modal('show'); } } }) }); > renderSubTemplate('file:admin/footer.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), (int) 0, $_smarty_current_dir); } }