pc_list2.htm 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. {extend name="$index_style_layout" /}
  2. <!--SEO相关-->
  3. {block name="head_title"}{$fid?($info['seo_title']?:$info['name']):$m_info['title']}{/block}
  4. {block name="head_keword"}{$fid?($info['seo_keywords']?:$info['name']):$m_info['title']}{/block}
  5. {block name="head_description"}{$info.seo_description}{/block}
  6. {block name="body_AllScorllSlide"}
  7. <!--通栏横幅图片__STATIC__/css/qb_ui.css中控制图片宽度百分百高度行内样式设置,如不设置不小于100px---->
  8. <div class="qb_ui_AllscrollBanner" style="height:300px;">
  9. <a href="#1"><img src="__STATIC__/images/s0.jpg"></a>
  10. </div>
  11. {/block}
  12. {block name="body_content"}
  13. <link rel="stylesheet" href="__STATIC__/index/default/pclist.css">
  14. <div class="ArticlMainContainer">
  15. <div class="LeftsCnt">
  16. {include file="content/left" /}
  17. </div>
  18. <div class="RightCnt">
  19. <div class="ListInfoBox">
  20. <!--name是标签名,跟通用标签不能重名,rows取几条数据,order按什么方式排序,list代表可控排序,id即时间,view代表浏览量-->
  21. {qb:listpage name="news_listimg_page_listdata002" rows="5" order="list"}
  22. <ul class="qb_ui_ListInfo_date_title_pics">
  23. <ol>
  24. <dl>
  25. <dt><span>{:date("m-d",$rs['create_time'])}</span><em>{:date("Y",$rs['create_time'])}</em></dt>
  26. <dd>
  27. <h3><a href="{$rs.url}">{$rs.title|get_word=100}</a></h3>
  28. <p>{$rs.content|get_word=200}</p>
  29. </dd>
  30. </dl>
  31. </ol>
  32. <li>
  33. {volist name="rs.picurls" id="pic"}
  34. {if ($key<5)}<div><a href="{$rs.url}"><img src="{$pic}" onmouseover='thisimg_over($(this))' onmouseout='thisimg_out($(this))'/></a></div>{/if}
  35. {/volist}
  36. </li>
  37. </ul>
  38. {/qb:listpage}
  39. </div>
  40. <!---异步显示更多调用一个显示更多的碎片模块[shop@content/showmore],需要预设置如下参数[listurl:访问地址][thispage:开始页][TheListObj:插入对象][ThisRows:条数][listshops:子对象条数]--->
  41. <script>
  42. var listurl='{qb:list_url name="news_listimg_page_listdata002"/}'; //news_listimg_page_listdata002 跟上面的标签名要一到致
  43. var thispage=1;
  44. var TheListObj=$('.ListInfoBox');
  45. var ThisRows={$news_listimg_page_listdata002.rows}; //每页显示几条 $news_listimg_page_listdata002 跟上面的标签名要一到致,但是这里多了一个$
  46. var listshops=$('.ListInfoBox').children().length; //当前页面显示了几条内容
  47. </script>
  48. {include file="shop@content/showmore" /}
  49. <!--{$pages} 这是传统分页-->
  50. </div>
  51. </div>
  52. <script>
  53. function thisimg_over(imgobjs){
  54. imgobjs.animate({"max-width":"150%"},300);
  55. }
  56. function thisimg_out(imgobjs){
  57. imgobjs.animate({"max-width":"100%"},300);
  58. }
  59. </script>
  60. {/block}