反馈修改完成-1114

master
Lee 2022-11-14 15:09:55 +08:00
parent 46002fb8f2
commit 25c0818531
2 changed files with 3 additions and 3 deletions

View File

@ -49,7 +49,7 @@ $previewList = Article::getList(Category::CATEGORY_BRAND_ACTIVITY, 10, null, ['i
<div class="swiper-wrapper">
{foreach $previewList as $prev}
<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">
<h2 class="clips1">{$prev.title}</h2>
<p class="color-66 clips3">{$prev.summary}</p>

View File

@ -87,7 +87,7 @@ foreach ($items as $item) {
{/php}
{foreach $eventList as $k => $event}
{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}
{/if}
{/foreach}
@ -99,6 +99,6 @@ foreach ($items as $item) {
<script>
$('body').on('click', '.show-event-img',function () {
let src = $(this).attr('data-src');
$('#event-img').attr('src', 'http://zzwy2.scdxtc.cn'+src);
$('#event-img').attr('src', src);
})
</script>