123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- <?php
- use wechat\assets\AppAsset;
- use yii\helpers\Html;
- use yii\helpers\Url;
- AppAsset::addCss($this,Yii::$app->request->baseUrl."/js/index/swiper-3.4.2.min.css");
- AppAsset::addScript($this,Yii::$app->request->baseUrl.'/js/index/swiper-3.4.2.min.js');
- // AppAsset::addScript($this,Yii::$app->request->baseUrl.'/js/news/js.js');
- AppAsset::addCss($this,Yii::$app->request->baseUrl."/css/news.css");
- AppAsset::addScript($this,Yii::$app->request->baseUrl."/js/album_menu/iscroll.js");
- AppAsset::addScript($this,Yii::$app->request->baseUrl."/js/album_menu/navbarscroll.js");
- AppAsset::addScript($this,Yii::$app->request->baseUrl."/js/homelist/dropload.min.js");
- AppAsset::addScript($this,Yii::$app->request->baseUrl.'/js/homelist/main.js');
- AppAsset::addScript($this,Yii::$app->request->baseUrl."/js/news_ajax.js");
- AppAsset::addScript($this,Yii::$app->request->baseUrl."/js/news/home.js");
- $this->title = '资讯首页-易购房';
- ?>
- <!-- 侧边栏 -->
- <?php $this->beginContent('@app/views/public/navsidebar.php'); ?>
- <?php $this->endContent(); ?>
- <!-- <div class="y_homelist_head wm-top">
- <div class="w_wek_box" >
- <div class="header_back"><a href="/"><img src="/image/v2/search1.png"></a></div>
- <div class="w_a"><a class="m_lplist_inp" href="javascript:void(0)">搜索你感兴趣的内容</a><i><img src="/image/search/w_sek.png" alt=""></i></div>
- <div class="header_menu"><a></a></div>
- </div>
- </div>
- -->
- <!-- <div style="height:55px;"></div> -->
- <div class="Home-header c">
- <div class="Home-header-box houselist-header y_header">
- <div class="header_back"><a href="<?php if($this->params['referer'] == '/'){ echo $this->params['referer'];}else{ echo 'javascript:history.back(-1)';} ?>"><img src="/image/v2/dh1.png"></a></div>
- <div class="header_logo2"><a href="/"><img src="/image/v2/index01.png"></a></div>
- <div class="header_menu"><a></a></div>
- </div>
- <!-- 导航 -->
- <div class="news_nav find_nav Home-header-nav c y_qylist">
- <div class="find_nav_left" id="demo05">
- <div class="find_nav_list scroller siwh">
- <ul class="clearfix">
- <?php foreach ($lei as $val){
- ?>
- <li <?php $a = Yii::$app->request->get('cid'); if(isset($a) && $a == $val['id'] ){echo 'class="on"';}?>
- data-id="<?= $val['id'] ?>">
- <a href="javascript:;">
- <?= $val['news_name'] ?>
- </a>
- </li>
- <?php } ?>
- </ul>
- </div>
- </div>
- </div>
- </div>
- <div class="navsidebar" style="height:55px;"></div>
- <!-- 轮播图 -->
- <div class="m_swiper_box">
- <div class="news_banner swiper-container2" style="<?php modules_show(52) ?>">
- <ul class="y_lphomepc_swip_main swiper-wrapper">
- <?php if(!empty($top)){
- foreach ($top as $val){
- ?>
- <li class="y_neirongpc swiper-slide">
- <a href="/news/details/<?= $val['id'] ?>/">
- <div class="baner">
- <img src="<?= Yii::$app->params['httpImg']['host'],Yii::$app->params['httpImg']['pushnews'],$val['img'] ?>" alt="">
- <div class="font_box"><?= $val['subject'] ?></div>
- </div>
- </a>
- </li>
- <?php } } ?>
- </ul>
- <div class="y_longhr">
- <div class="swiper-pagination"></div>
- </div>
- </div>
- </div>
- <div class="m_albumtnav_box news_nav">
- <div class="wrapper02_box">
- <div class="wrapper02 siwh" id="demo06">
- <div class="scroller">
- <ul class="clearfix">
- <?php foreach ($lei as $val){
- ?>
- <li data-id="<?= $val['id'] ?>"
- <?php $a = Yii::$app->request->get('cid'); if(isset($a) && $a == $val['id'] ){echo 'class="cur"';}?>
- ><img src="<?= $val['img'] ?>" alt=""><p><?= $val['news_name'] ?></p></li>
- <?php } ?>
- </ul>
- </div>
- </div>
- </div>
- </div>
-
- <!-- 列表 -->
- <div class="news_list y_homelist_list">
- <div class="ns"></div>
- </div>
- <!-- 侧边栏 -->
- <?php $this->beginContent('@app/views/news/news_search.php'); ?>
- <?php $this->endContent(); ?>
|