fuc/storage/framework/smarty/compile/da5db61046b6f2ff4daf4ccad0a950fd7292b940_0.file_sales.tpl.php
2025-03-13 17:13:42 +08:00

148 lines
5.2 KiB
PHP
Executable File

<?php
/* Smarty version 5.3.1, created on 2025-02-02 11:56:25
from 'file:front/sales.tpl' */
/* @var \Smarty\Template $_smarty_tpl */
if ($_smarty_tpl->getCompiled()->isFresh($_smarty_tpl, array (
'version' => '5.3.1',
'unifunc' => 'content_679eece95d9832_91443329',
'has_nocache_code' => false,
'file_dependency' =>
array (
'da5db61046b6f2ff4daf4ccad0a950fd7292b940' =>
array (
0 => 'front/sales.tpl',
1 => 1738468579,
2 => 'file',
),
),
'includes' =>
array (
'file:front/common/head.tpl' => 1,
'file:front/common/foot.tpl' => 1,
),
))) {
function content_679eece95d9832_91443329 (\Smarty\Template $_smarty_tpl) {
$_smarty_current_dir = '/www/wwwroot/fuuu.cloud/resources/views/tabler/front';
$_smarty_tpl->renderSubTemplate('file:front/common/head.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), (int) 0, $_smarty_current_dir);
?>
<?php echo '<script'; ?>
src="/assets/baba/lib/jquery-1.10.2.js"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
src="/assets/baba/dist/dialog.js"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
src="/assets/baba/dist/clipboard.min.js"><?php echo '</script'; ?>
>
</div>
<div class="productPageHeaderContainer container-fluid">
<div class="row" style="height:100%;">
<div class="productPageHeaderInner col-sm-8 col-sm-offset-2" style="background: url('/assets/baba/default_files/img_barbar/Hero_SSL.svg') no-repeat center center;">
</div>
</div>
</div>
<div id="homePagePricingContainer" class="row homepageSectionContainer" style="margin-right: 0px; margin-left: 0px;">
<div class="col-md-12">
<center>
<div class="homepageSectionHeaderContainer">
<h1 class="homepageSectionHeading"><?php ob_start();
echo $_smarty_tpl->getValue('year');
$_prefixVariable1 = ob_get_clean();
echo $_prefixVariable1;?>
年优惠卷</h1>
</div>
</center>
<div class="container homepageSectionContent">
<div id="homePagePricingOptions" class="row" style="margin-top: 40px;">
<div class="col-md-12 featuresFlexContainer textLeft" style="justify-content:left;">
<?php
$_from = $_smarty_tpl->getSmarty()->getRuntime('Foreach')->init($_smarty_tpl, $_smarty_tpl->getValue('coupons'), 'value', false, 'key');
$foreach0DoElse = true;
foreach ($_from ?? [] as $_smarty_tpl->getVariable('key')->value => $_smarty_tpl->getVariable('value')->value) {
$foreach0DoElse = false;
?>
<div class="centerWrapflexBoxItem productPricingBox" style="float: left; margin-bottom:30px;">
<div class="productPricingBoxLabel"><?php echo $_smarty_tpl->getValue('value')->name;?>
</div>
<div class="productPricingBoxPrice" style=""><?php echo $_smarty_tpl->getValue('value')->expire_time;?>
</div><br>
<div class="productPricingBoxDiscount">
<button saleCode="<?php echo $_smarty_tpl->getValue('value')->code;?>
" class="showSaleCode btn btn-lg btn-xiaofu"
style="display: block; height: 42px; font-size: 14px; margin-top: 20px; width:110px; border-radius:3px;">
<span>查看优惠卷</span>
</button>
</div>
</div>
<?php
}
$_smarty_tpl->getSmarty()->getRuntime('Foreach')->restore($_smarty_tpl, 1);?>
</div>
</div>
</div>
</div>
</div>
<div hidden>
<div id='dialogShadow'>
<!-- <p id='dialogTitle' style="font-size:16px;"></p> -->
<div class='copyText' style='border: 1px solid #bbb; font-size: 16px; width:100%; padding:8px; border-radius: 5px;'></div>
<!-- <input class='copyInput' type='text' value="777" disabled style='border: 1px solid #bbb; font-size: 16px; width:100%; padding:8px; border-radius: 5px;'> -->
<!-- <div class="sanOkBtnMini toCopy" style="margin-top:20px; width:110px;float:left;">
<span>复制到剪贴板123</span>
</div> -->
<button id='2' class="toCopy btn btn-lg btn-xiaofu"
style="display: block; height: 42px; font-size: 14px; margin-top: 20px; width:120px; border-radius:3px;float:left;">
<span>复制到剪贴板</span>
</button>
<a href='/user/product' target="_blank" rel="noopener noreferrer">
<div style="width: 90px;float:left; margin-top:30px; margin-left:10px; color:#E07E7B;">
前去下单 >
</div>
</a>
</div>
</div>
<?php echo '<script'; ?>
>
var clipboard = new ClipboardJS('.toCopy', {
target: function () {
return document.querySelector('.copyText');
},
});
$('.showSaleCode').on('click', function(){
var title = $(this).parent().siblings(".productPricingBoxLabel").html();
$('.copyText').html($(this).attr('saleCode'));
var d = dialog({
title: title,
content: $('#dialogShadow'),
okValue: '确 定',
width: 260
});
d.showModal();
});
<?php echo '</script'; ?>
>
<?php $_smarty_tpl->renderSubTemplate('file:front/common/foot.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), (int) 0, $_smarty_current_dir);
}
}