123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297 |
- <?php
- $view
- ->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 ."<br/>". $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 ."<br/>". $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.home_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 ."<br/>". $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 ."<br/>". $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 ."<br/>". $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();
|