反馈修改完成-1114
parent
46002fb8f2
commit
25c0818531
|
@ -49,7 +49,7 @@ $previewList = Article::getList(Category::CATEGORY_BRAND_ACTIVITY, 10, null, ['i
|
||||||
<div class="swiper-wrapper">
|
<div class="swiper-wrapper">
|
||||||
{foreach $previewList as $prev}
|
{foreach $previewList as $prev}
|
||||||
<a href="/activity/{$prev.id}.html" class="preview-item swiper-slide flex">
|
<a href="/activity/{$prev.id}.html" class="preview-item swiper-slide flex">
|
||||||
<div class="img"><img src="http://zzwy2.scdxtc.cn/{$isMobile ? $prev.src_mobile : $prev.src}" alt="{$prev.title}"></div>
|
<div class="img"><img src="{$isMobile ? $prev.src_mobile : $prev.src}" alt="{$prev.title}"></div>
|
||||||
<div class="txt bg-col-white">
|
<div class="txt bg-col-white">
|
||||||
<h2 class="clips1">{$prev.title}</h2>
|
<h2 class="clips1">{$prev.title}</h2>
|
||||||
<p class="color-66 clips3">{$prev.summary}</p>
|
<p class="color-66 clips3">{$prev.summary}</p>
|
||||||
|
|
|
@ -87,7 +87,7 @@ foreach ($items as $item) {
|
||||||
{/php}
|
{/php}
|
||||||
{foreach $eventList as $k => $event}
|
{foreach $eventList as $k => $event}
|
||||||
{if ($k == 0) }
|
{if ($k == 0) }
|
||||||
<span><img id="event-img" src="http://zzwy2.scdxtc.cn/{$event.src ?? ''}" alt="{$event.title ?? ''}"></span>
|
<span><img id="event-img" src="{$event.src ?? ''}" alt="{$event.title ?? ''}"></span>
|
||||||
{php}break;{/php}
|
{php}break;{/php}
|
||||||
{/if}
|
{/if}
|
||||||
{/foreach}
|
{/foreach}
|
||||||
|
@ -99,6 +99,6 @@ foreach ($items as $item) {
|
||||||
<script>
|
<script>
|
||||||
$('body').on('click', '.show-event-img',function () {
|
$('body').on('click', '.show-event-img',function () {
|
||||||
let src = $(this).attr('data-src');
|
let src = $(this).attr('data-src');
|
||||||
$('#event-img').attr('src', 'http://zzwy2.scdxtc.cn'+src);
|
$('#event-img').attr('src', src);
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
Loading…
Reference in New Issue