set('name', 'news') ->set('title', '资讯') /* ->fetch(array('link@href', 2), Dever::assets("global.css")) ->fetch(array('link@href', 3), Dever::assets('<{(isset($name) ? $name : "news")}>.css', "css")) ->fetch(array('script@src', 2), Dever::assets('global.js')) ->fetch(array('script@src', 3), Dever::assets('<{(isset($name) ? $name : "news")}>.js', 'js')) */ ->import('inc/head') # 焦点图 ->loop ( '.index-slide .swiper-slide', 'main/content.focus|key=news_focus&name=资讯焦点图', array ( 'a' => array ( 'href' => '$v.link', 'title' => '$v.name', ), 'img' => array ( 'src' => '$v.pic', 'alt' => '$v.name', ), 'span' => array ( 'html' => '$v.name ."
". $v.desc', ), ) ) ->fetch('.index-slide@style', 'main/content.focus?key=news_focus&name=资讯焦点图', 'none') # 广告 ->loop ( '.ad-swiper .swiper-slide', 'main/content.ad|key=news_ad&name=资讯广告', array ( 'a' => array ( 'href' => '$v.link', 'title' => '$v.name', ), 'img' => array ( 'src' => '$v.pic', 'alt' => '$v.name', ), ) ) ->fetch('.ad-swiper@style', 'main/content.ad?key=home_ad&name=首页广告', 'none') ->loop ( '#mobile_tuijian dl', 'main/content.focus|key=news_focus&name=资讯焦点图&num=1', array ( 'a|0' => array ( 'href' => '$v.link', 'title' => '$v.name', 'img' => array ( 'src' => '$v.pic', 'alt' => '$v.name', ), ), 'a|1' => array ( 'href' => '$v.link', 'title' => '$v.name', 'html' => '$v.name ."
". $v.desc', ), 'p' => array ( 'html' => '$v.info', ), 'span' => array ( 'html' => '$v.pdate_string', ), ) ) ->loop ( '#news dl', 'main/content.news|type=1', array ( 'a|0' => array ( 'href' => '$v.link', 'title' => '$v.name', 'img' => array ( 'src' => '$v.pic', 'alt' => '$v.name', ), ), 'a|1' => array ( 'href' => '$v.link', 'title' => '$v.name', 'html' => '$v.name ."
". $v.desc', ), 'p' => array ( 'html' => '$v.info', ), 'span' => array ( 'html' => '$v.pdate_string', ), ) ) ->fetch('.more@href', 'javascript:;') ->fetch('.more@dever-show', 'Dever::pageInfo()["link"] ? "1" : "2"') ->fetch('.more@style', 'Dever::pageInfo()["link"] ? "" : "display:none"') ->append('body', '
" dever-page-list=".dever-page">
') ->import('inc/foot') ->display();