123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- <?php
- /**
- * Created by PhpStorm.
- * User: xiaofeng
- * Date: 2018/4/20
- * Time: 上午12:44
- */
- use mobile\assets\AppAsset;
- use yii\helpers\Html;
- use yii\helpers\Url;
- AppAsset::addCss($this,Yii::$app->request->baseUrl."/overseas/js/index/swiper-3.4.2.min.css");
- AppAsset::addScript($this,Yii::$app->request->baseUrl.'/overseas/js/index/swiper-3.4.2.min.js');
- AppAsset::addScript($this,Yii::$app->request->baseUrl.'/overseas/js/news/js.js');
- AppAsset::addCss($this,Yii::$app->request->baseUrl."/overseas/css/news.css");
- AppAsset::addScript($this,Yii::$app->request->baseUrl."/overseas/js/news/home.js");
- AppAsset::addScript($this,Yii::$app->request->baseUrl."/overseas/js/homelist/dropload.min.js");
- AppAsset::addScript($this,Yii::$app->request->baseUrl.'/overseas/js/search_public.js');
- $this->title = '资讯首页';
- ?>
- <div id="serachBox2">
- <?php $this->beginContent('@app/views/public/nav.php'); ?>
- <?php $this->endContent(); ?>
- <!-- 轮播图 -->
- <div class="news_banner swiper-container2">
- <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 class="news_nav find_nav">
- <div class="find_nav_left">
- <div class="find_nav_list">
- <ul>
- <li class="find_nav_cur"><a data-id="0" class="on" href="javascript:;">全部</a></li>
- <?php foreach ($lei as $val){
- ?>
- <li class="find_nav_cur"><a href="javascript:;" <?php
- $a = Yii::$app->request->get('cid');
- if(isset($a) && $a == $val['id'] )
- {
- echo 'class="on"';
- }
- ?> data-id="<?= $val['id'] ?>"><?= $val['news_name'] ?></a></li>
- <?php } ?>
- </ul>
- </div>
- </div>
- </div>
- <!-- 列表 -->
- <div class="news_list">
- </div>
- </div>
|