作者 景龙
1 个管道 的构建 通过 耗费 1 秒

修改首页加载速度问题

@@ -27,30 +27,40 @@ class IndexController extends HomeBaseController @@ -27,30 +27,40 @@ class IndexController extends HomeBaseController
27 $this->assign('coverImg',$coverImg); 27 $this->assign('coverImg',$coverImg);
28 28
29 //星球奇境,城市分类 29 //星球奇境,城市分类
30 - $res['asia'] = $this->getCity(CityCategoryModel::asia);  
31 - $res['europe'] = $this->getCity(CityCategoryModel::europe);  
32 - $res['africa'] = $this->getCity(CityCategoryModel::africa);  
33 - $res['oceania'] = $this->getCity(CityCategoryModel::oceania);  
34 - $res['north'] = $this->getCity(CityCategoryModel::north);  
35 - $res['south'] = $this->getCity(CityCategoryModel::south);  
36 - $res['antarctica'] = $this->getCity(CityCategoryModel::antarctica);  
37 - $res['arctic'] = $this->getCity(CityCategoryModel::arctic);  
38 - $this->assign('res_city',$res); 30 + $city[1]['id'] = CityCategoryModel::asia;
  31 + $city[2]['id'] = CityCategoryModel::europe;
  32 + $city[3]['id'] = CityCategoryModel::africa;
  33 + $city[4]['id'] = CityCategoryModel::oceania;
  34 + $city[5]['id'] = CityCategoryModel::north;
  35 + $city[6]['id'] = CityCategoryModel::south;
  36 + $city[20]['id'] = CityCategoryModel::antarctica;
  37 + $city[43]['id'] = CityCategoryModel::arctic;
  38 + $city_name = $this->getCity(array_column($city,'id'));
  39 + foreach($city as &$value){
  40 + $k = 0;
  41 + foreach($city_name as $value1){
  42 + $k += 0;
  43 + if($value['id'] == $value1['pid']){
  44 + $value['name'][$k]['name'] = $value1['name'];
  45 + $value['name'][$k]['id'] = $value1['id'];
  46 + $k++;
  47 + }
  48 + }
  49 + }
  50 + $this->assign('res_city',$city);
39 51
40 //星享体验 52 //星享体验
41 - $res_month['January'] = $this->getMonthArticle(CityCategoryModel::January);  
42 - $res_month['February'] = $this->getMonthArticle(CityCategoryModel::February);  
43 - $res_month['March'] = $this->getMonthArticle(CityCategoryModel::March);  
44 - $res_month['April'] = $this->getMonthArticle(CityCategoryModel::April);  
45 - $res_month['May'] = $this->getMonthArticle(CityCategoryModel::May);  
46 - $res_month['June'] = $this->getMonthArticle(CityCategoryModel::June);  
47 - $res_month['July'] = $this->getMonthArticle(CityCategoryModel::July);  
48 - $res_month['August'] = $this->getMonthArticle(CityCategoryModel::August);  
49 - $res_month['September'] = $this->getMonthArticle(CityCategoryModel::September);  
50 - $res_month['October'] = $this->getMonthArticle(CityCategoryModel::October);  
51 - $res_month['November'] = $this->getMonthArticle(CityCategoryModel::November);  
52 - $res_month['December'] = $this->getMonthArticle(CityCategoryModel::December);  
53 - $this->assign('res_month',$res_month); 53 + $res_month = $this->getMonthArticle();
  54 + foreach($res_month['data'] as &$value){
  55 + foreach($res_month['category_name'] as $value1){
  56 + if($value['id'] == $value1['post_id']){
  57 + $value['category_name'] = $value1['name'];
  58 + }
  59 + }
  60 + }
  61 + $last_names = array_column($res_month['data'],'month');
  62 + array_multisort($last_names,SORT_ASC,$res_month['data']);
  63 + $this->assign('res_month',$res_month['data']);
54 64
55 //星域秀场->星球影院 65 //星域秀场->星球影院
56 $position = CityCategoryModel::xqyy; 66 $position = CityCategoryModel::xqyy;
@@ -186,10 +196,10 @@ class IndexController extends HomeBaseController @@ -186,10 +196,10 @@ class IndexController extends HomeBaseController
186 } 196 }
187 197
188 //获取各洲对应的城市 198 //获取各洲对应的城市
189 - private function getCity($pid){ 199 + private function getCity($city_ids){
190 $pre = CityCategoryModel::pre; 200 $pre = CityCategoryModel::pre;
191 $res = Db::table($pre.'city_category') 201 $res = Db::table($pre.'city_category')
192 - ->where('pid',$pid) 202 + ->whereIn('pid',$city_ids)
193 ->where('is_show',1) 203 ->where('is_show',1)
194 ->where('delete_time', 0) 204 ->where('delete_time', 0)
195 ->field('id,pid,name') 205 ->field('id,pid,name')
@@ -212,7 +222,7 @@ class IndexController extends HomeBaseController @@ -212,7 +222,7 @@ class IndexController extends HomeBaseController
212 } 222 }
213 223
214 //根据月份查询文章(星享体验) 224 //根据月份查询文章(星享体验)
215 - private function getMonthArticle($month){ 225 + private function getMonthArticle(){
216 $position = CityCategoryModel::xxty; 226 $position = CityCategoryModel::xxty;
217 $pre = CityCategoryModel::pre; 227 $pre = CityCategoryModel::pre;
218 $category_id = Db::table($pre.'portal_category') 228 $category_id = Db::table($pre.'portal_category')
@@ -231,24 +241,26 @@ class IndexController extends HomeBaseController @@ -231,24 +241,26 @@ class IndexController extends HomeBaseController
231 //查询文章 241 //查询文章
232 $res = Db::table($pre.'portal_post') 242 $res = Db::table($pre.'portal_post')
233 ->whereIn('id',$post_id) 243 ->whereIn('id',$post_id)
234 - ->where('month', $month)  
235 ->where('delete_time', 0) 244 ->where('delete_time', 0)
236 - ->field('id,month,post_title,index_thumbnail,thumbnail,post_excerpt')  
237 - ->limit(1) 245 + ->field('id,month,post_title,index_thumbnail')
238 ->order('weigh desc') 246 ->order('weigh desc')
239 - ->find(); 247 + ->group('month')
  248 + ->select()
  249 + ->toArray();
  250 + $arr = [];
240 if($res){ 251 if($res){
241 - $category_id = Db::table($pre.'portal_category_post')  
242 - ->where('post_id', $res['id'])  
243 - ->field('category_id')  
244 - ->find();  
245 - $category_name = Db::table($pre.'portal_category')  
246 - ->where('id', $category_id['category_id'])  
247 - ->field('name')  
248 - ->find();  
249 - $res['category_name'] = $category_name['name']; 252 + $post_ids = array_column($res,'id');
  253 + $category_name = Db::name('portal_category_post')
  254 + ->alias('c')
  255 + ->join('portal_category p','c.category_id = p.id','LEFT')
  256 + ->whereIn('post_id', $post_ids)
  257 + ->field('c.post_id,p.name')
  258 + ->select()
  259 + ->toArray();
  260 + $arr['data'] = $res;
  261 + $arr['category_name'] = $category_name;
250 } 262 }
251 - return $res; 263 + return $arr;
252 } 264 }
253 265
254 //关于我们 266 //关于我们
@@ -62,7 +62,7 @@ class CityCategoryModel extends Model @@ -62,7 +62,7 @@ class CityCategoryModel extends Model
62 const africa = 3;//非洲 62 const africa = 3;//非洲
63 const oceania = 4;//大洋洲 63 const oceania = 4;//大洋洲
64 const north = 5;//北美洲 64 const north = 5;//北美洲
65 - const south = 6;//美洲 65 + const south = 6;//拉丁美洲
66 const antarctica = 20;//南极洲 66 const antarctica = 20;//南极洲
67 const arctic = 43;//北极 67 const arctic = 43;//北极
68 68
@@ -34,7 +34,7 @@ @@ -34,7 +34,7 @@
34 <div class="show_2"> 34 <div class="show_2">
35 <!--banner--> 35 <!--banner-->
36 <div class="show_banner"> 36 <div class="show_banner">
37 - <notempty name="res.image_url"> 37 + <notempty name="res.thumbnail">
38 <img src="{:cmf_get_image_url($res.thumbnail)}" alt=""> 38 <img src="{:cmf_get_image_url($res.thumbnail)}" alt="">
39 <else/> 39 <else/>
40 <img src="__TMPL__/public/assets/starImg/aicon_80.png" alt=""> 40 <img src="__TMPL__/public/assets/starImg/aicon_80.png" alt="">
@@ -104,72 +104,94 @@ @@ -104,72 +104,94 @@
104 <img src="__TMPL__/public/assets/starImg/aicon_41.png" alt=""> 104 <img src="__TMPL__/public/assets/starImg/aicon_41.png" alt="">
105 <p>北美洲</p> 105 <p>北美洲</p>
106 <ul class="star_happy_box"> 106 <ul class="star_happy_box">
107 - <volist name="res_city.north" id="vo">  
108 - <li><a href="/portal/star/index?city_id={$vo.id}">{$vo.name}</a></li>  
109 - </volist> 107 + <notempty name="res_city.5.name">
  108 + <volist name="res_city.5.name" id="vo">
  109 + <li><a href="/portal/star/index?city_id={$vo.id}">{$vo.name}</a></li>
  110 + </volist>
  111 + </notempty>
110 </ul> 112 </ul>
111 </em> 113 </em>
112 <em class="beiji clearfix"> 114 <em class="beiji clearfix">
113 <img src="__TMPL__/public/assets/starImg/aicon_41.png" alt=""> 115 <img src="__TMPL__/public/assets/starImg/aicon_41.png" alt="">
114 <p>北极</p> 116 <p>北极</p>
115 <ul class="star_happy_box"> 117 <ul class="star_happy_box">
116 - <volist name="res_city.arctic" id="vo">  
117 - <li><a href="/portal/star/index?city_id={$vo.id}">{$vo.name}</a></li>  
118 - </volist> 118 + <notempty name="res_city.43.name">
  119 + <volist name="res_city.43.name" id="vo">
  120 + <li><a href="/portal/star/index?city_id={$vo.id}">{$vo.name}</a></li>
  121 + </volist>
  122 + </notempty>
119 </ul> 123 </ul>
120 </em> 124 </em>
121 <em class="south clearfix"> 125 <em class="south clearfix">
122 <img src="__TMPL__/public/assets/starImg/aicon_41.png" alt=""> 126 <img src="__TMPL__/public/assets/starImg/aicon_41.png" alt="">
123 <p>拉丁美洲</p> 127 <p>拉丁美洲</p>
124 <ul class="star_happy_box"> 128 <ul class="star_happy_box">
125 - <volist name="res_city.south" id="vo">  
126 - <li><a href="/portal/star/index?city_id={$vo.id}">{$vo.name}</a></li>  
127 - </volist> 129 + <notempty name="res_city.6.name">
  130 + <volist name="res_city.6.name" id="vo">
  131 + <li><a href="/portal/star/index?city_id={$vo.id}">{$vo.name}</a></li>
  132 + </volist>
  133 + </notempty>
  134 +
128 </ul> 135 </ul>
129 </em> 136 </em>
130 <em class="antarctica clearfix"> 137 <em class="antarctica clearfix">
131 <img src="__TMPL__/public/assets/starImg/aicon_41.png" alt=""> 138 <img src="__TMPL__/public/assets/starImg/aicon_41.png" alt="">
132 <p>南极洲</p> 139 <p>南极洲</p>
133 <ul class="star_happy_box"> 140 <ul class="star_happy_box">
134 - <volist name="res_city.antarctica" id="vo">  
135 - <li><a href="/portal/star/index?city_id={$vo.id}">{$vo.name}</a></li>  
136 - </volist> 141 + <notempty name="res_city.20.name">
  142 + <volist name="res_city.20.name" id="vo">
  143 + <li><a href="/portal/star/index?city_id={$vo.id}">{$vo.name}</a></li>
  144 + </volist>
  145 + </notempty>
  146 +
137 </ul> 147 </ul>
138 </em> 148 </em>
139 <em class="europe clearfix"> 149 <em class="europe clearfix">
140 <img src="__TMPL__/public/assets/starImg/aicon_41.png" alt=""> 150 <img src="__TMPL__/public/assets/starImg/aicon_41.png" alt="">
141 <p>欧洲</p> 151 <p>欧洲</p>
142 <ul class="star_happy_box"> 152 <ul class="star_happy_box">
143 - <volist name="res_city.europe" id="vo">  
144 - <li><a href="/portal/star/index?city_id={$vo.id}">{$vo.name}</a></li>  
145 - </volist> 153 + <notempty name="res_city.2.name">
  154 + <volist name="res_city.2.name" id="vo">
  155 + <li><a href="/portal/star/index?city_id={$vo.id}">{$vo.name}</a></li>
  156 + </volist>
  157 + </notempty>
  158 +
146 </ul> 159 </ul>
147 </em> 160 </em>
148 <em class="africa clearfix"> 161 <em class="africa clearfix">
149 <img src="__TMPL__/public/assets/starImg/aicon_41.png" alt=""> 162 <img src="__TMPL__/public/assets/starImg/aicon_41.png" alt="">
150 <p>非洲</p> 163 <p>非洲</p>
151 <ul class="star_happy_box"> 164 <ul class="star_happy_box">
152 - <volist name="res_city.africa" id="vo">  
153 - <li><a href="/portal/star/index?city_id={$vo.id}">{$vo.name}</a></li>  
154 - </volist> 165 + <notempty name="res_city.3.name">
  166 + <volist name="res_city.3.name" id="vo">
  167 + <li><a href="/portal/star/index?city_id={$vo.id}">{$vo.name}</a></li>
  168 + </volist>
  169 + </notempty>
  170 +
155 </ul> 171 </ul>
156 </em> 172 </em>
157 <em class="asia clearfix"> 173 <em class="asia clearfix">
158 <img src="__TMPL__/public/assets/starImg/aicon_41.png" alt=""> 174 <img src="__TMPL__/public/assets/starImg/aicon_41.png" alt="">
159 <p>亚洲</p> 175 <p>亚洲</p>
160 <ul class="star_happy_box"> 176 <ul class="star_happy_box">
161 - <volist name="res_city.asia" id="vo">  
162 - <li><a href="/portal/star/index?city_id={$vo.id}">{$vo.name}</a></li>  
163 - </volist> 177 + <notempty name="res_city.1.name">
  178 + <volist name="res_city.1.name" id="vo">
  179 + <li><a href="/portal/star/index?city_id={$vo.id}">{$vo.name}</a></li>
  180 + </volist>
  181 + </notempty>
  182 +
164 </ul> 183 </ul>
165 </em> 184 </em>
166 <em class="oceania clearfix"> 185 <em class="oceania clearfix">
167 <img src="__TMPL__/public/assets/starImg/aicon_41.png" alt=""> 186 <img src="__TMPL__/public/assets/starImg/aicon_41.png" alt="">
168 <p>大洋洲</p> 187 <p>大洋洲</p>
169 <ul class="star_happy_box"> 188 <ul class="star_happy_box">
170 - <volist name="res_city.oceania" id="vo">  
171 - <li><a href="/portal/star/index?city_id={$vo.id}">{$vo.name}</a></li>  
172 - </volist> 189 + <notempty name="res_city.4.name">
  190 + <volist name="res_city.4.name" id="vo">
  191 + <li><a href="/portal/star/index?city_id={$vo.id}">{$vo.name}</a></li>
  192 + </volist>
  193 + </notempty>
  194 +
173 </ul> 195 </ul>
174 </em> 196 </em>
175 </div> 197 </div>
@@ -201,15 +223,15 @@ @@ -201,15 +223,15 @@
201 <p>January</p> 223 <p>January</p>
202 </div> 224 </div>
203 <!-- 图片 --> 225 <!-- 图片 -->
204 - <notempty name="res_month.January"> 226 + <notempty name="res_month.0">
205 <div class="reverse_Imgs"> 227 <div class="reverse_Imgs">
206 - <img src="{:cmf_get_image_url($res_month.January.index_thumbnail)}"/> 228 + <img src="{:cmf_get_image_url($res_month.0.index_thumbnail)}"/>
207 </div> 229 </div>
208 <!-- 图片下方文字 --> 230 <!-- 图片下方文字 -->
209 - <a href="/portal/enjoy/getEnjoyDetail?id={$res_month.January.id}"> 231 + <a href="/portal/enjoy/getEnjoyDetail?id={$res_month.0.id}">
210 <div class="img_bottom"> 232 <div class="img_bottom">
211 - <p>{$res_month.January.post_title}</p>  
212 - <p>{$res_month.January.category_name}</p> 233 + <p>{$res_month.0.post_title}</p>
  234 + <p>{$res_month.0.category_name}</p>
213 </div> 235 </div>
214 </a> 236 </a>
215 <else/> 237 <else/>
@@ -238,15 +260,15 @@ @@ -238,15 +260,15 @@
238 <p>February</p> 260 <p>February</p>
239 </div> 261 </div>
240 <!-- 图片 --> 262 <!-- 图片 -->
241 - <notempty name="res_month.February"> 263 + <notempty name="res_month.1">
242 <div class="reverse_Imgs"> 264 <div class="reverse_Imgs">
243 - <img src="{:cmf_get_image_url($res_month.February.index_thumbnail)}"/> 265 + <img src="{:cmf_get_image_url($res_month.1.index_thumbnail)}"/>
244 </div> 266 </div>
245 <!-- 图片下方文字 --> 267 <!-- 图片下方文字 -->
246 - <a href="/portal/enjoy/getEnjoyDetail?id={$res_month.February.id}"> 268 + <a href="/portal/enjoy/getEnjoyDetail?id={$res_month.1.id}">
247 <div class="img_bottom"> 269 <div class="img_bottom">
248 - <p>{$res_month.February.post_title}</p>  
249 - <p>{$res_month.February.category_name}</p> 270 + <p>{$res_month.1.post_title}</p>
  271 + <p>{$res_month.1.category_name}</p>
250 </div> 272 </div>
251 </a> 273 </a>
252 <else/> 274 <else/>
@@ -276,15 +298,15 @@ @@ -276,15 +298,15 @@
276 <p>March</p> 298 <p>March</p>
277 </div> 299 </div>
278 <!-- 图片 --> 300 <!-- 图片 -->
279 - <notempty name="res_month.March"> 301 + <notempty name="res_month.2">
280 <div class="reverse_Imgs"> 302 <div class="reverse_Imgs">
281 - <img src="{:cmf_get_image_url($res_month.March.index_thumbnail)}"/> 303 + <img src="{:cmf_get_image_url($res_month.2.index_thumbnail)}"/>
282 </div> 304 </div>
283 <!-- 图片下方文字 --> 305 <!-- 图片下方文字 -->
284 - <a href="/portal/enjoy/getEnjoyDetail?id={$res_month.March.id}"> 306 + <a href="/portal/enjoy/getEnjoyDetail?id={$res_month.2.id}">
285 <div class="img_bottom"> 307 <div class="img_bottom">
286 - <p>{$res_month.March.post_title}</p>  
287 - <p>{$res_month.March.category_name}</p> 308 + <p>{$res_month.2.post_title}</p>
  309 + <p>{$res_month.2.category_name}</p>
288 </div> 310 </div>
289 </a> 311 </a>
290 <else/> 312 <else/>
@@ -315,15 +337,15 @@ @@ -315,15 +337,15 @@
315 <p>April</p> 337 <p>April</p>
316 </div> 338 </div>
317 <!-- 图片 --> 339 <!-- 图片 -->
318 - <notempty name="res_month.April"> 340 + <notempty name="res_month.3">
319 <div class="reverse_Imgs"> 341 <div class="reverse_Imgs">
320 - <img src="{:cmf_get_image_url($res_month.April.index_thumbnail)}"/> 342 + <img src="{:cmf_get_image_url($res_month.3.index_thumbnail)}"/>
321 </div> 343 </div>
322 <!-- 图片下方文字 --> 344 <!-- 图片下方文字 -->
323 - <a href="/portal/enjoy/getEnjoyDetail?id={$res_month.April.id}"> 345 + <a href="/portal/enjoy/getEnjoyDetail?id={$res_month.3.id}">
324 <div class="img_bottom"> 346 <div class="img_bottom">
325 - <p>{$res_month.April.post_title}</p>  
326 - <p>{$res_month.April.category_name}</p> 347 + <p>{$res_month.3.post_title}</p>
  348 + <p>{$res_month.3.category_name}</p>
327 </div> 349 </div>
328 </a> 350 </a>
329 <else/> 351 <else/>
@@ -353,15 +375,15 @@ @@ -353,15 +375,15 @@
353 <p>May</p> 375 <p>May</p>
354 </div> 376 </div>
355 <!-- 图片 --> 377 <!-- 图片 -->
356 - <notempty name="res_month.May"> 378 + <notempty name="res_month.4">
357 <div class="reverse_Imgs"> 379 <div class="reverse_Imgs">
358 - <img src="{:cmf_get_image_url($res_month.May.index_thumbnail)}"/> 380 + <img src="{:cmf_get_image_url($res_month.4.index_thumbnail)}"/>
359 </div> 381 </div>
360 <!-- 图片下方文字 --> 382 <!-- 图片下方文字 -->
361 - <a href="/portal/enjoy/getEnjoyDetail?id={$res_month.May.id}"> 383 + <a href="/portal/enjoy/getEnjoyDetail?id={$res_month.4.id}">
362 <div class="img_bottom"> 384 <div class="img_bottom">
363 - <p>{$res_month.May.post_title}</p>  
364 - <p>{$res_month.May.category_name}</p> 385 + <p>{$res_month.4.post_title}</p>
  386 + <p>{$res_month.4.category_name}</p>
365 </div> 387 </div>
366 </a> 388 </a>
367 <else/> 389 <else/>
@@ -390,15 +412,15 @@ @@ -390,15 +412,15 @@
390 <p>June</p> 412 <p>June</p>
391 </div> 413 </div>
392 <!-- 图片 --> 414 <!-- 图片 -->
393 - <notempty name="res_month.June"> 415 + <notempty name="res_month.5">
394 <div class="reverse_Imgs"> 416 <div class="reverse_Imgs">
395 - <img src="{:cmf_get_image_url($res_month.June.index_thumbnail)}"/> 417 + <img src="{:cmf_get_image_url($res_month.5.index_thumbnail)}"/>
396 </div> 418 </div>
397 <!-- 图片下方文字 --> 419 <!-- 图片下方文字 -->
398 - <a href="/portal/enjoy/getEnjoyDetail?id={$res_month.June.id}"> 420 + <a href="/portal/enjoy/getEnjoyDetail?id={$res_month.5.id}">
399 <div class="img_bottom"> 421 <div class="img_bottom">
400 - <p>{$res_month.June.post_title}</p>  
401 - <p>{$res_month.June.category_name}</p> 422 + <p>{$res_month.5.post_title}</p>
  423 + <p>{$res_month.5.category_name}</p>
402 </div> 424 </div>
403 </a> 425 </a>
404 <else/> 426 <else/>
@@ -429,15 +451,15 @@ @@ -429,15 +451,15 @@
429 <p>July</p> 451 <p>July</p>
430 </div> 452 </div>
431 <!-- 图片 --> 453 <!-- 图片 -->
432 - <notempty name="res_month.July"> 454 + <notempty name="res_month.6">
433 <div class="reverse_Imgs"> 455 <div class="reverse_Imgs">
434 - <img src="{:cmf_get_image_url($res_month.July.index_thumbnail)}"/> 456 + <img src="{:cmf_get_image_url($res_month.6.index_thumbnail)}"/>
435 </div> 457 </div>
436 <!-- 图片下方文字 --> 458 <!-- 图片下方文字 -->
437 - <a href="/portal/enjoy/getEnjoyDetail?id={$res_month.July.id}"> 459 + <a href="/portal/enjoy/getEnjoyDetail?id={$res_month.6.id}">
438 <div class="img_bottom"> 460 <div class="img_bottom">
439 - <p>{$res_month.July.post_title}</p>  
440 - <p>{$res_month.July.category_name}</p> 461 + <p>{$res_month.6.post_title}</p>
  462 + <p>{$res_month.6.category_name}</p>
441 </div> 463 </div>
442 </a> 464 </a>
443 <else/> 465 <else/>
@@ -468,15 +490,15 @@ @@ -468,15 +490,15 @@
468 <p>August</p> 490 <p>August</p>
469 </div> 491 </div>
470 <!-- 图片 --> 492 <!-- 图片 -->
471 - <notempty name="res_month.August"> 493 + <notempty name="res_month.7">
472 <div class="reverse_Imgs"> 494 <div class="reverse_Imgs">
473 - <img src="{:cmf_get_image_url($res_month.August.index_thumbnail)}"/> 495 + <img src="{:cmf_get_image_url($res_month.7.index_thumbnail)}"/>
474 </div> 496 </div>
475 <!-- 图片下方文字 --> 497 <!-- 图片下方文字 -->
476 - <a href="/portal/enjoy/getEnjoyDetail?id={$res_month.August.id}"> 498 + <a href="/portal/enjoy/getEnjoyDetail?id={$res_month.7.id}">
477 <div class="img_bottom"> 499 <div class="img_bottom">
478 - <p>{$res_month.August.post_title}</p>  
479 - <p>{$res_month.August.category_name}</p> 500 + <p>{$res_month.7.post_title}</p>
  501 + <p>{$res_month.7.category_name}</p>
480 </div> 502 </div>
481 </a> 503 </a>
482 <else/> 504 <else/>
@@ -507,15 +529,15 @@ @@ -507,15 +529,15 @@
507 <p>September</p> 529 <p>September</p>
508 </div> 530 </div>
509 <!-- 图片 --> 531 <!-- 图片 -->
510 - <notempty name="res_month.September"> 532 + <notempty name="res_month.8">
511 <div class="reverse_Imgs"> 533 <div class="reverse_Imgs">
512 - <img src="{:cmf_get_image_url($res_month.September.index_thumbnail)}"/> 534 + <img src="{:cmf_get_image_url($res_month.8.index_thumbnail)}"/>
513 </div> 535 </div>
514 <!-- 图片下方文字 --> 536 <!-- 图片下方文字 -->
515 - <a href="/portal/enjoy/getEnjoyDetail?id={$res_month.September.id}"> 537 + <a href="/portal/enjoy/getEnjoyDetail?id={$res_month.8.id}">
516 <div class="img_bottom"> 538 <div class="img_bottom">
517 - <p>{$res_month.September.post_title}</p>  
518 - <p>{$res_month.September.category_name}</p> 539 + <p>{$res_month.8.post_title}</p>
  540 + <p>{$res_month.8.category_name}</p>
519 </div> 541 </div>
520 </a> 542 </a>
521 <else/> 543 <else/>
@@ -544,15 +566,15 @@ @@ -544,15 +566,15 @@
544 <p>October</p> 566 <p>October</p>
545 </div> 567 </div>
546 <!-- 图片 --> 568 <!-- 图片 -->
547 - <notempty name="res_month.October"> 569 + <notempty name="res_month.9">
548 <div class="reverse_Imgs"> 570 <div class="reverse_Imgs">
549 - <img src="{:cmf_get_image_url($res_month.October.index_thumbnail)}"/> 571 + <img src="{:cmf_get_image_url($res_month.9.index_thumbnail)}"/>
550 </div> 572 </div>
551 <!-- 图片下方文字 --> 573 <!-- 图片下方文字 -->
552 - <a href="/portal/enjoy/getEnjoyDetail?id={$res_month.October.id}"> 574 + <a href="/portal/enjoy/getEnjoyDetail?id={$res_month.9.id}">
553 <div class="img_bottom"> 575 <div class="img_bottom">
554 - <p>{$res_month.October.post_title}</p>  
555 - <p>{$res_month.October.category_name}</p> 576 + <p>{$res_month.9.post_title}</p>
  577 + <p>{$res_month.9.category_name}</p>
556 </div> 578 </div>
557 </a> 579 </a>
558 <else/> 580 <else/>
@@ -583,15 +605,15 @@ @@ -583,15 +605,15 @@
583 <p>November</p> 605 <p>November</p>
584 </div> 606 </div>
585 <!-- 图片 --> 607 <!-- 图片 -->
586 - <notempty name="res_month.November"> 608 + <notempty name="res_month.10">
587 <div class="reverse_Imgs"> 609 <div class="reverse_Imgs">
588 - <img src="{:cmf_get_image_url($res_month.November.index_thumbnail)}"/> 610 + <img src="{:cmf_get_image_url($res_month.10.index_thumbnail)}"/>
589 </div> 611 </div>
590 <!-- 图片下方文字 --> 612 <!-- 图片下方文字 -->
591 - <a href="/portal/enjoy/getEnjoyDetail?id={$res_month.November.id}"> 613 + <a href="/portal/enjoy/getEnjoyDetail?id={$res_month.10.id}">
592 <div class="img_bottom"> 614 <div class="img_bottom">
593 - <p>{$res_month.November.post_title}</p>  
594 - <p>{$res_month.November.category_name}</p> 615 + <p>{$res_month.10.post_title}</p>
  616 + <p>{$res_month.10.category_name}</p>
595 </div> 617 </div>
596 </a> 618 </a>
597 <else/> 619 <else/>
@@ -622,15 +644,15 @@ @@ -622,15 +644,15 @@
622 <p>December</p> 644 <p>December</p>
623 </div> 645 </div>
624 <!-- 图片 --> 646 <!-- 图片 -->
625 - <notempty name="res_month.December"> 647 + <notempty name="res_month.11">
626 <div class="reverse_Imgs"> 648 <div class="reverse_Imgs">
627 - <img src="{:cmf_get_image_url($res_month.December.index_thumbnail)}"/> 649 + <img src="{:cmf_get_image_url($res_month.11.index_thumbnail)}"/>
628 </div> 650 </div>
629 <!-- 图片下方文字 --> 651 <!-- 图片下方文字 -->
630 - <a href="/portal/enjoy/getEnjoyDetail?id={$res_month.December.id}"> 652 + <a href="/portal/enjoy/getEnjoyDetail?id={$res_month.11.id}">
631 <div class="img_bottom"> 653 <div class="img_bottom">
632 - <p>{$res_month.December.post_title}</p>  
633 - <p>{$res_month.December.category_name}</p> 654 + <p>{$res_month.11.post_title}</p>
  655 + <p>{$res_month.11.category_name}</p>
634 </div> 656 </div>
635 </a> 657 </a>
636 <else/> 658 <else/>