|
@@ -1,17 +1,25 @@
|
|
|
- <{foreach from=$eventsData item=events}>
|
|
|
-<dl class="new_dl">
|
|
|
- <a href="<{$events.url}>">
|
|
|
- <dt><img src="<{$events.img_url}>" ></dt>
|
|
|
- <dd>
|
|
|
- <p><{$events.events_name}></p>
|
|
|
- <p class="v_time">
|
|
|
- <{if $events.rday>=1}>
|
|
|
- <em class="time_icon"></em><span>剩余<{$events.rday}>天</span>
|
|
|
- <{else}>
|
|
|
- 已结束
|
|
|
- <{/if}>
|
|
|
- </p>
|
|
|
+<{if $eventsData}>
|
|
|
+ <{foreach from=$eventsData item=events}>
|
|
|
+ <dl>
|
|
|
+ <dt><a href="<{$events.url}>"><img src="<{$web_cfg.cdn}>/public/static/img/bg_alpha.png" data-ks-lazyload="<{$events.img_url}>"></a></dt>
|
|
|
+ <dd><h5><{$events.events_name}></h5></dd>
|
|
|
+ <dd>
|
|
|
+ <{if $events.rday>=1}>
|
|
|
+ <span class="time">
|
|
|
+ <em class="icon-time"></em>剩余<{$events.rday}>天</span>
|
|
|
+ <{elseif $events.type != 9}>
|
|
|
+ <span class="time">
|
|
|
+ <em class="icon-time"></em>已结束</span>
|
|
|
+ <{/if}>
|
|
|
+
|
|
|
+ <{if $events.type == 9}>
|
|
|
+ <span>阅读 <{$events.click_num}></span>
|
|
|
+ <span>点赞 <{$events.likes}></span>
|
|
|
+ <{else}>
|
|
|
+ <span>参与<{$events.user_total}>人</span>
|
|
|
+ <{/if}>
|
|
|
+
|
|
|
</dd>
|
|
|
- </a>
|
|
|
-</dl>
|
|
|
-<{/foreach}>
|
|
|
+ </dl>
|
|
|
+ <{/foreach}>
|
|
|
+<{/if}>
|