123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282 |
- <?php
- $view
- ->set('name', 'index')
- ->fetch(array('link@href', 1), Dever::assets("global.css"))
- ->fetch(array('link@href', 2), Dever::assets('<{(isset($name) ? $name : "index")}>.css', "css"))
- ->fetch(array('script@src', 1), Dever::assets('global.js'))
- ->fetch(array('script@src', 2), 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',
- array
- (
- 'a' => array
- (
- 'href' => '$v.link',
- 'title' => '$v.name',
- ),
- 'img' => array
- (
- 'src' => '$v.pic',
- 'alt' => '$v.name',
- ),
- )
- )
- # 精选
- ->loop
- (
- '#jignxuan li',
- 'main/content.getPush|key=jingxuan&name=首页精选&num=6',
- array
- (
- 'a' => array
- (
- 'href' => '$v.link',
- 'title' => '$v.name',
- ),
- 'img' => array
- (
- 'src' => '$v.pic',
- 'alt' => '$v.name',
- ),
- 'p' => array
- (
- 'html' => '$v.name',
- ),
- )
- )
- # 独家策划
- ->loop
- (
- '#dujia li',
- 'main/content.getPush|key=dujia&name=独家策划&num=6',
- array
- (
- 'self' => array
- (
- 'html' => '$v.name',
- 'class' => '<{$k == 0 ? "active" : ""}>'
- ),
- )
- )
- ->loop
- (
- '#dujia .swiper-slide',
- 'main/content.getPush|key=dujia&name=独家策划&num=6',
- array
- (
- 'a' => array
- (
- 'href' => '$v.link',
- 'title' => '$v.name',
- ),
- 'img' => array
- (
- 'src' => '$v.pic',
- 'alt' => '$v.name',
- ),
- )
- )
- # 精彩Top
- ->loop
- (
- '.top-module li',
- 'main/content.getPush|key=top&name=精彩TOP&num=7',
- array
- (
- 'em' => array
- (
- 'html' => '$k+1',
- ),
- 'a' => array
- (
- 'href' => '$v.link',
- 'title' => '$v.name',
- 'target' => '_blank',
- 'html' => '$v.name',
- ),
- )
- )
- # 时装
- ->loop
- (
- '.fashion-module li',
- 'main/content.getList|cate_id=1&num=4',
- array
- (
- 'a' => array
- (
- 'href' => '$v.link',
- 'title' => '$v.name',
- ),
- 'img' => array
- (
- 'src' => '$v.pic',
- 'alt' => '$v.name',
- ),
- 'span' => array
- (
- 'html' => '$v.name',
- ),
- )
- )
- # 美容
- ->loop
- (
- '#beauty li',
- 'main/content.getList|cate_id=2&num=6',
- array
- (
- 'a' => array
- (
- 'href' => '$v.link',
- 'title' => '$v.name',
- ),
- 'img' => array
- (
- 'src' => '$v.pic',
- 'alt' => '$v.name',
- ),
- 'p' => array
- (
- 'html' => '$v.name',
- ),
- )
- )
- # 秀场
- ->loop
- (
- '.runway-wrapper li',
- 'main/content.getPush|key=show&name=首页秀场推荐&num=6',
- array
- (
- 'a' => array
- (
- 'href' => '$v.link',
- 'title' => '$v.name',
- ),
- 'img' => array
- (
- 'src' => '$v.pic',
- 'alt' => '$v.name',
- ),
- 'span' => array
- (
- 'html' => '$v.name',
- ),
- )
- )
- # 娱乐
- ->loop
- (
- '.star-module dl',
- 'main/content.getList|cate_id=3&num=3',
- array
- (
- 'a|0' => array
- (
- 'href' => '$v.link',
- 'title' => '$v.name',
- ),
- 'a|1' => array
- (
- 'href' => '$v.link',
- 'title' => '$v.name',
- 'html' => '$v.name',
- ),
- 'img' => array
- (
- 'src' => '$v.pic',
- 'alt' => '$v.name',
- ),
- 'p' => array
- (
- 'html' => '$v.desc',
- ),
- )
- )
- # 首页杂志
- ->loop
- (
- '.recommend-module li',
- 'main/content.getPush|key=mag&name=首页杂志&num=4',
- array
- (
- 'a' => array
- (
- 'href' => '$v.link',
- 'title' => '$v.name',
- ),
- 'img' => array
- (
- 'src' => '$v.pic',
- 'alt' => '$v.name',
- ),
- 'span' => array
- (
- 'html' => '$v.name',
- ),
- )
- )
- # 首页微信
- ->loop
- (
- '.wechats dl',
- 'main/content.getPush|key=wechat&name=首页微信&num=4',
- array
- (
- 'img' => array
- (
- 'src' => '$v.pic',
- 'alt' => '$v.name',
- ),
- 'h4' => array
- (
- 'html' => '$v.name',
- ),
- )
- )
- ->fetch('.mask@style', 'display:none;')
- ->import('inc/foot')
- ->display();
|