123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321 |
- <?php
- /**
- * Created by PhpStorm.
- * User: xiaofeng
- * Date: 2018/4/20
- * Time: 上午12:51
- */
- use frontend\assets\AppAsset;
- use yii\widgets\LinkPager;
- use yii\helpers\Url;
- use common\fm\Opencc;
- AppAsset::addCss($this, Yii::$app->request->baseUrl . "/assets/614deafb/css/bootstrap.css");
- AppAsset::addScript($this, Yii::$app->request->baseUrl . '/overseas/js/lunbo/jquery.SuperSlide.2.1.3.js');
- AppAsset::addScript($this, Yii::$app->request->baseUrl . '/overseas/js/scrollfix.min.js');
- AppAsset::addScript($this, Yii::$app->request->baseUrl . '/overseas/js/newslist.js');
- AppAsset::addScript($this, Yii::$app->request->baseUrl . "/overseas/js/applyVerify.js");
- AppAsset::addCss($this, Yii::$app->request->baseUrl . "/overseas/css/newslist.css");
- $this->title = '海南房产新闻_最新海南房产政策_海南房产信息网-品房海外';
- $this->metaTags[] = '<meta name="keywords" content="海南热点房产新闻,海南最新房产市场,海南楼市热点资讯,海南最新楼市政策,海南房产楼市政策,海南房产资讯,楼市行情,房产新闻" />';
- $this->metaTags[] = '<meta name="description" content="海南房产资讯为您提供2020海南楼盘的新动态,您可以查询海南新的楼市行情和楼市新闻,了解海南楼市政策,帮您快速解决房产相关问题。"/>';
- ?>
- <div class="y_newslsit">
- <div class="y_newslsit_main puic_wid">
- <div class="y_newslist_modtop puic_color c">
- <div class="y_newslist_tu fl c">
- <?php if (!empty($one)) { ?>
- <div class="y_newslist_tu1">
- <a target="_blank" href="<?= '/news/details/', $one[0]['id'] ?>">
- <p class="y_tu"><img
- src="<?php echo Yii::$app->params['httpImg']['host'], Yii::$app->params['httpImg']['pushnews'], $one[0]['img'] ?>"
- alt=""></p>
- <p class="y_text"><?php echo Opencc::ConvertHn($one[0]['subject']) ?></p>
- </a>
- </div>
- <!-- <div class="y_newslist_tu1">
- <a target="_blank" href="/zt/sykf_zt.php">
- <p class="y_tu"><img src="/zt/sykf_zt/overseas/img/icozxsy.png" alt=""></p>
- <p class="y_text">暖冬三亚看房团赚的就是优惠 多盘联动团购</p>
- </a>
- </div> -->
- <?php } ?>
- <div class="y_newslist_txtli_main" style="float:right">
- <div class="y_newslist_txtli_h">
- <span><?= Opencc::ConvertHn('热门资讯') ?></span>
- <i></i>
- </div>
- <div class="y_newslist_txtmain">
- <ul>
- <?php if (!empty($two)) {
- foreach ($two as $key => $val) {
- ?>
- <li class="on c">
- <span><?= '0', ++$key ?></span>
- <a target="_blank"
- href="<?= '/news/details/', $val['id'] ?>"><?= Opencc::ConvertHn($val['subject']) ?></a>
- </li>
- <?php }
- } ?>
- </ul>
- </div>
- <i class="ico_ic"></i>
- </div>
- </div>
- <div class="y_newslist_txtli fr">
- <div class="y_newslist_tu2">
- <?php if (!empty($one[1])) {
- foreach ($one as $key => $val) {
- if ($key == 0) {
- continue;
- }
- ?>
- <div class="y_newslist_tu2_i">
- <a target="_blank" href="<?= '/news/details/', $val['id'] ?>">
- <p class="y_tu"><img
- src="<?= Yii::$app->params['httpImg']['host'], Yii::$app->params['httpImg']['pushnews'], $val['img'] ?>"
- alt=""></p>
- <p class="y_text"><?= Opencc::ConvertHn($val['subject']) ?></p>
- </a>
- </div>
- <?php }
- } ?>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="y_newslist_nr">
- <div class="y_news_maintop"></div>
- <div class="y_newslist_nrmain puic_wid c">
- <div class="y_newslist_left fl c">
- <div class="y_newslist_nav puic_color fl">
- <div id="y_newslist_nav">
- <ul>
- <li <?php if (empty(Yii::$app->request->get('cid'))) echo 'class="on"' ?>><a
- href="<?= '/news/home' ?>"><?= Opencc::ConvertHn('所有资讯') ?></a></li>
- <?php if (!empty($column)) {
- $name = '所有资讯';
- foreach ($column as $val) { ?>
- <li
- <?php
- if (Yii::$app->request->get('cid') == $val['id']) {
- $name = $val['news_name'];
- echo 'class="on"';
- }
- ?> >
- <a href="<?= '/news/', $val['id'] ?>"><?= Opencc::ConvertHn($val['news_name']) ?></a>
- </li>
- <?php }
- } ?>
- </ul>
- </div>
- </div>
- <div class="y_newslist_list fr">
- <div class="m_p_title2">
- <i class="m_p_title2_left"></i>
- <div class="m_p_title2_text">
- <em>
- <?php echo Opencc::ConvertHn($name);
- ?>
- </em>
- </div>
- <i class="m_p_title2_right"></i>
- </div>
- <div class="y_newslist_listh"></div>
- <ul>
- <?php foreach ($all['data'] as $val) {
- ?>
- <?php
- $img = json_decode($val['thumb'], true);
- if (isset($img[2]) || isset($img[1])) {
- ?>
- <li class="y_newslist_class2 puic_color">
- <div class="y_padd c">
- <div class="y_text">
- <p class="y_h"><a target="_blank"
- href="<?= '/news/details/', $val['id'] ?>"><?= Opencc::ConvertHn($val['subject']) ?></a>
- </p>
- <p class="y_cent"><?= Opencc::ConvertHn($val['abstract']) ?></p>
- <p class="y_sj"><?= $val['open_time'] ?></p>
- </div>
- <div class="y_tu c">
- <a target="_blank"
- href="<?= '/news/details/', $val['id'] ?>">
- <?php foreach ($img as $v) { ?>
- <img src="<?= Yii::$app->params['httpImg']['host'], Yii::$app->params['httpImg']['newsthumb'], $v ?>"
- alt="">
- <?php } ?>
- </a>
- </div>
- </div>
- </li>
- <?php } else { ?>
- <li class="y_newslist_class1 puic_color">
- <div class="y_padd c">
- <div class="y_tu"><a target="_blank"
- href="<?= '/news/details/', $val['id'] ?>"><img
- src="<?php if (isset($img[0])) echo Yii::$app->params['httpImg']['host'], Yii::$app->params['httpImg']['newsthumb'], $img[0] ?>"
- alt=""></a></div>
- <div class="y_text">
- <p class="y_h"><a target="_blank"
- href="<?= '/news/details/', $val['id'] ?>"><?= Opencc::ConvertHn($val['subject']) ?></a>
- </p>
- <p class="y_cent"><?= Opencc::ConvertHn(mb_substr($val['abstract'], 0, 80, 'utf-8')) ?>
- ...</p>
- <p class="y_sj"><?= $val['open_time'] ?></p>
- </div>
- </div>
- </li>
- <?php }
- } ?>
- </ul>
- <div class="" style="width:880px;height:80px;text-align:center;">
- <?= LinkPager::widget([
- 'pagination' => $page,
- 'nextPageLabel' => Opencc::ConvertHn('下一页'),
- 'prevPageLabel' => Opencc::ConvertHn('上一页'),
- ]); ?>
- </div>
- </div>
- </div>
- <div>
- </div>
- <div class="y_newslist_right fr">
- <?php if (!empty($h)) { ?>
- <!-- 楼盘推荐 -->
- <div class="w_recommend">
- <div class="y_newshot_h">
- <h2><span><?= Opencc::ConvertHn('楼盘推荐') ?></span></h2>
- </div>
- <div class="w_recommend_cont slideBox">
- <div class="bd">
- <ul>
- <?php foreach ($h as $val) { ?>
- <li>
- <a href="<?= '/house/', $val['id'] ?>">
- <div class="w_list_img"><img
- src="<?= Yii::$app->params['httpImg']['hosts'], Yii::$app->params['httpImg']['houses'], $val['thumb'], '/same' ?>"
- alt=""></div>
- <div class="w_list_font c">
- <span><?= Opencc::ConvertHn($val['name']) ?></span>
- </div>
- </a>
- </li>
- <?php } ?>
- </ul>
- </div>
- <div class="hd">
- <ul></ul>
- </div>
- </div>
- </div>
- <?php } ?>
- <?php if (!empty($click)) { ?>
- <div class="y_newshot puic_color">
- <div class="y_newshot_center">
- <div class="y_newshot_h">
- <h2><span><?= Opencc::ConvertHn('48小时热文排行') ?></span></h2>
- </div>
- <div class="y_newshot_main">
- <ul>
- <?php foreach ($click as $key => $val) {
- ?>
- <li class="<?php if ($key < 3) echo 'on'; ?> c">
- <em><?= ++$key ?></em>
- <a target="_blank"
- href="<?= '/news/details/', $val['id'] ?>"><?= Opencc::ConvertHn($val['subject']) ?></a>
- <!-- <i><?= $val['clicks'] ?></i> -->
- </li>
- <?php } ?>
- </ul>
- </div>
- </div>
- </div>
- <?php } ?>
- <?php if (!empty($three)) { ?>
- <!-- <div class="y_newzt puic_color">
- <div class="y_newztmain">
- <div class="y_newshot_h">
- <h2><span>热门专题</span></h2>
- </div>
- <div class="y_newshot_ceng">
- <ul>
- <?php foreach ($three as $val) { ?>
- <li>
- <a target="_blank" href="<?= '/news/details/', $val['id'] ?>">
- <p class="y_tu">
- <img src="<?= Yii::$app->params['httpImg']['host'], Yii::$app->params['httpImg']['pushnews'], $val['img'] ?>" alt="">
- </p>
- <p class="y_text"><?= $val['subject'] ?></p>
- </a>
- </li>
- <?php } ?>
- </ul>
- </div>
- </div>
- </div> -->
- <?php } ?>
- <!-- 订阅资讯 -->
- <div class="subscribe_box">
- <div class="wadlabel"><?= Opencc::ConvertHn('广告') ?></div>
- <img src="/overseas/img/news/news_top1.png" alt="">
- <!-- <div class="subscribe_font"> -->
- <!-- <p>订阅资讯</p>
- <p>获取楼盘实时动态信息</p> -->
- <!-- </div> -->
- <!-- 报名窗口 -->
- <div class="m_bm_box">
- <form class="m_bm_form submit_area">
- <input type="hidden" name="hid" value="0"> <!-- 0 为公共报名,其它为楼盘ID-->
- <input type="hidden" name="source" value="84">
- <!--报名来源 具体查看applyVerify.js文件中SourceModule 标识说明-->
- <input type="hidden" name="equipment" value="2"> <!--来源设备 ( PC端 2,手机端 1 )-->
- <div class="m_bm_form_xm">
- <!-- <span>手机号码:</span> -->
- <input name="mobile" type="text" placeholder="<?= Opencc::ConvertHn('请输入您的手机号') ?>">
- </div>
- <input type="button" value="<?= Opencc::ConvertHn('一键订阅') ?>"
- class="m_bm_form_submit apply_submit">
- </form>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="y_newslist_bottom_m"></div>
|