set('name', 'index')
/*
->fetch(array('link@href', 2), Dever::assets("global.css"))
->fetch(array('link@href', 3), Dever::assets('<{(isset($name) ? $name : "index")}>.css', "css"))
->fetch(array('script@src', 2), Dever::assets('global.js'))
->fetch(array('script@src', 3), Dever::assets('<{(isset($name) ? $name : "index")}>.js', 'js'))
*/
->import('inc/head')
//->fetch(array('.ad', 0), '<{Dever::load("main/content.getAd", "首页精选下侧广告位1200X180")}>')
//->fetch(array('.ad', 1), '<{Dever::load("main/content.getAd", "首页时装右侧广告位380X458")}>')
# 焦点图
->loop
(
'.index-slide .swiper-slide',
'main/content.focus|key=home_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=home_focus&name=首页焦点图', 'none')
# 广告
->loop
(
'.ad-swiper .swiper-slide',
'main/content.ad|key=home_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
(
'.news-module dl',
'main/content.home_news',
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(array('.common-tit@style', 0), 'main/content.home_news', 'none')
->fetch('.news-module@style', 'main/content.home_news', 'none')
->fetch('.news-module .more@href', 'Dever::url("news")')
# 虚拟人
->loop
(
'.character-module li',
'main/content.home_xnr',
array
(
'a' => array
(
'href' => '$v.link',
'title' => '$v.name',
'img' => array
(
'src' => '$v.pic',
'alt' => '$v.name',
),
'h5' => array
(
'html' => '$v.name',
),
'p' => array
(
'html' => '$v.info',
),
),
)
)
->fetch(array('.common-tit@style', 1), 'main/content.home_xnr', 'none')
->fetch('.character-module@style', 'main/content.home_xnr', 'none')
->fetch('.character-module .more@href', 'Dever::url("xnr")')
# 专题
->loop
(
'.features-module .swiper-slide',
'main/content.home_feature',
array
(
'a|0' => array
(
'href' => '$v.link',
'title' => '$v.name',
'img' => array
(
'src' => '$v.small_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(array('.common-tit@style', 2), 'main/content.home_feature', 'none')
->fetch('.features-module@style', 'main/content.home_feature', 'none')
->fetch('.features-module .more@href', 'Dever::url("feature")')
# 视频
->fetch('.videoposter img@src', 'main/content.home_video_first#pic')
->fetch('.videoplayer img@src', 'main/content.home_video_first#pic')
->fetch(array('.icon-play@data-url', 0), 'main/content.home_video_first#video_link')
->fetch(array('.topic-video h3@html', 0), 'main/content.home_video_first#sname')
->fetch(array('.topic-video p@html', 0), 'main/content.home_video_first#info')
->fetch(array('.topic-video span@html', 0), 'main/content.home_video_first#pdate_string')
->fetch('.topic-video@style', 'main/content.home_video_first', 'none')
->loop
(
'.video-module dl',
'main/content.home_video_other',
array
(
'a|1' => array
(
'href' => '$v.link',
'title' => '$v.name',
'img' => array
(
'src' => '$v.pic',
'alt' => '$v.name',
),
'em' => array
(
'class' => 'a iconfont icon-play',
'data-title' => '$v.name',
'data-subtitle' => '$v.desc',
'data-desc' => '$v.info',
'data-by' => '$v.pdate_string',
'data-url' => '$v.video_link',
),
),
'a|0' => array
(
'href' => '$v.link',
'title' => '$v.name',
'html' => '$v.name ."
". $v.desc',
),
'p' => array
(
'html' => '$v.info',
),
'span' => array
(
'html' => '$v.pdate_string',
),
)
)
->fetch(array('.common-tit@style', 3), 'main/content.home_video_first', 'none')
->fetch('.video-module@style', 'main/content.home_video_first', 'none')
# 活动
->loop
(
'.activity-recs li',
'main/content.home_act',
array
(
'img' => array
(
'src' => '$v.small_pic',
'alt' => '$v.name',
),
'a' => array
(
'href' => '$v.link',
'title' => '$v.name',
'h3' => array
(
'html' => '$v.name ."
". $v.desc',
),
'p' => array
(
'html' => '$v.info',
),
'span' => array
(
'html' => '$v.pdate_s',
),
),
)
)
->fetch(array('.common-tit@style', 4), 'main/content.home_act', 'none')
->fetch('.activity-recs@style', 'main/content.home_act', 'none')
->import('inc/foot')
->display();