getCompiled()->isFresh($_smarty_tpl, array (
'version' => '5.3.1',
'unifunc' => 'content_679f07b44f2da5_55184184',
'has_nocache_code' => false,
'file_dependency' =>
array (
'7f044f72a47502eab810ff749ee60b0a2d6ab7c6' =>
array (
0 => 'user/order/create.tpl',
1 => 1712762115,
2 => 'file',
),
),
'includes' =>
array (
'file:user/header.tpl' => 1,
'file:user/footer.tpl' => 1,
),
))) {
function content_679f07b44f2da5_55184184 (\Smarty\Template $_smarty_tpl) {
$_smarty_current_dir = '/www/wwwroot/fuuu.cloud/resources/views/tabler/user/order';
$_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">
>
| 商品ID |
getValue('product')->id;?>
|
| 商品名称 |
getValue('product')->name;?>
|
| 商品类型 |
getValue('product')->type_text;?>
|
getValue('product')->type === 'tabp' || $_smarty_tpl->getValue('product')->type === 'time') {?>
| 商品时长 |
getValue('product')->content->time;?>
天 |
| 等级时长 |
getValue('product')->content->class_time;?>
天 |
| 等级 |
Lv. getValue('product')->content->class;?>
|
getValue('product')->type === 'tabp' || $_smarty_tpl->getValue('product')->type === 'bandwidth') {?>
| 可用流量 |
getValue('product')->content->bandwidth;?>
GB |
getValue('product')->type === 'tabp' || $_smarty_tpl->getValue('product')->type === 'time') {?>
| 速率限制 |
getValue('product')->content->speed_limit === '0') {?>
不限制 |
getValue('product')->content->speed_limit;?>
Mbps |
| 同时连接 IP 限制 |
getValue('product')->content->ip_limit === '0') {?>
不限制 |
getValue('product')->content->ip_limit;?>
|
| 商品价格 |
getValue('product')->price;?>
|
| 优惠码 |
|
| 优惠金额 |
|
| 实际支付 |
getValue('product')->price;?>
|
>
$("#verify-coupon").click(function () {
$.ajax({
url: '/user/coupon',
type: 'POST',
dataType: "json",
data: {
coupon: $('#coupon').val(),
product_id: getValue('product')->id;?>
,
},
success: function (data) {
if (data.ret === 1) {
$('#coupon-code').text($('#coupon').val());
$('#product-buy-discount').text(data.discount);
$('#product-buy-total').text(data.buy_price);
} else {
$('#fail-message').text(data.msg);
$('#fail-dialog').modal('show');
}
}
})
});
$("#create-order").click(function () {
$.ajax({
url: '/user/order/create',
type: 'POST',
dataType: "json",
data: {
coupon: $('#coupon').val(),
product_id: getValue('product')->id;?>
,
},
success: function (data) {
if (data.ret === 1) {
$('#success-message').text(data.msg);
$('#success-dialog').modal('show');
setTimeout(function () {
$(location).attr('href', '/user/invoice/' + data.invoice_id + '/view');
}, 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);
}
}