dever 6 years ago
parent
commit
2604bf7523

+ 24 - 16
tm/template_dir/ajax_index.html

@@ -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}>

+ 2 - 1
tm/template_dir/ajax_list.html

@@ -9,7 +9,8 @@
         <span class="time">
         <em class="icon-time"></em>剩余<{$events.rday}>天</span>
         <{elseif $events.type != 9}>
-        <span class="time">已结束</span>
+        <span class="time">
+        <em class="icon-time"></em>已结束</span>
         <{/if}>
 
         <{if $events.type == 9}>

+ 2 - 1
tm/template_dir/index.html

@@ -57,7 +57,8 @@
         <span class="time">
         <em class="icon-time"></em>剩余<{$events.rday}>天</span>
         <{elseif $events.type != 9}>
-        <span class="time">已结束</span>
+        <span class="time">
+        <em class="icon-time"></em>已结束</span>
         <{/if}>
 
         <{if $events.type == 9}>

+ 2 - 1
tm/template_dir/list.html

@@ -18,7 +18,8 @@
         <span class="time">
         <em class="icon-time"></em>剩余<{$events.rday}>天</span>
         <{elseif $events.type != 9}>
-        <span class="time">已结束</span>
+        <span class="time">
+        <em class="icon-time"></em>已结束</span>
         <{/if}>
 
         <{if $events.type == 9}>