Authored by whb

bug

... ... @@ -113,7 +113,7 @@ class Config_Defines
// 静态资源目录
define('SITE_RES', 'http://res.yohood.test.yoho.cn');
// 主站
define('SITE_MAIN', 'http://yohood.test.yoho.cn');
define('SITE_MAIN', 'http://yohood.dev.test.yoho.cn');
define('QINIU_UPLOAD_STATE', true);
define('QINIU_UPLOAD_CLASS', 'Lib_Utils_QiniuUpload');
define('QINIU_UPLOAD_ACCESSKEY', 'cY9B5ZgON_7McTS5zV5nTeRyQ98MOcVD7W4eGVbE');
... ...
[mysql]
yohood.username = yohodb
yohood.password = yohonj_9646_mysql
yohood.writers = 127.0.0.1:3310
yohood.readers = 127.0.0.1:3310
pre_yohood.username = yohodb
pre_yohood.password = yohonj_9646_mysql
pre_yohood.writers = 10.170.183.158:5510
pre_yohood.readers = 10.170.183.158:5510
... ...
... ... @@ -43,7 +43,9 @@
$action_name = $_ctx->action_name;
?>
<div class="header">
<a href="<?php echo SITE_MAIN;?>">
<h1 class="logo"></h1>
</a>
<div class="nav">
<ul class="clearfix">
<li <?php echo ($controller_name == 'default') ? 'class="current"':''; ?>>
... ...
... ... @@ -14,7 +14,7 @@
<ul>
<?php foreach($this->view->news as $val):?>
<li>
<a class="clearfix" href="<?php echo url('news/detail',array('id' => $val['id']))?>" target="_blank">
<a class="clearfix" href="<?php echo url('news/detail',array('id' => $val['id']))?>">
<div class="image-box">
<img src="<?php echo Lib_Images::getImageUrl($val['thumb'],'source','fragmentimg');?>" alt="">
</div>
... ...
... ... @@ -55,7 +55,7 @@
<ul>
<?php foreach($this->view->news as $news):?>
<li>
<a class="clearfix" href="/news/detail/id/<?php echo $news['id'];?>" target="_blank">
<a class="clearfix" href="/news/detail/id/<?php echo $news['id'];?>">
<div class="image-box">
<img src="<?php echo Lib_Images::getImageUrl($news['thumb'], 'source','fragmentimg');?>" alt="">
</div>
... ...
... ... @@ -17,7 +17,7 @@
</ul>
</div>
<div class="news-main">
<div class="news-content content-main">
<div class="news-content content-main <?php echo $this->view->current_tag == '视频' ? 'video-wrap':'';?>">
<div class="main-layout fluid-list-inner clearfix" id="img_flow">
<?php $this->_widget('news_list', array('list'=> $this->view->list));?>
</div>
... ...
... ... @@ -21,7 +21,7 @@ else
?>
<div class="layout-item tiled">
<div class="image-box">
<a href="<?php echo url('news/detail' ,array('id' => $news['id']))?>" title="<?php echo $news['title'];?>" target="_blank">
<a href="<?php echo url('news/detail' ,array('id' => $news['id']))?>" title="<?php echo $news['title'];?>">
<img src="<?php echo $thumb;?>" alt="" style="">
<?php if(trim($news['tag']) == '视频'):?>
<i class="play-icon"></i>
... ...