Authored by microTT

Merge branch 'develop' of http://git.dev.yoho.cn/web/yohood into develop

@@ -1599,7 +1599,7 @@ define('yohood', function(require, exports) { @@ -1599,7 +1599,7 @@ define('yohood', function(require, exports) {
1599 setTimeout(function() { 1599 setTimeout(function() {
1600 $('.dialog-w').fadeOut(); 1600 $('.dialog-w').fadeOut();
1601 window.location.reload(); 1601 window.location.reload();
1602 - }, 2000); 1602 + }, 5000);
1603 } else { 1603 } else {
1604 alert(d.message); 1604 alert(d.message);
1605 } 1605 }
No preview for this file type
@@ -232,6 +232,7 @@ EOT; @@ -232,6 +232,7 @@ EOT;
232 $info['thumb'] = Lib_Images::getImageUrl($info['thumb'], 'source','fragmentimg'); 232 $info['thumb'] = Lib_Images::getImageUrl($info['thumb'], 'source','fragmentimg');
233 //增加浏览量 233 //增加浏览量
234 Facade_News::updateHits($id); 234 Facade_News::updateHits($id);
  235 + $info = str_replace('<embed align="middle"','<embed align="middle" allowfullscreen="true" ' , $info);
235 $this->_view['info'] = $info; 236 $this->_view['info'] = $info;
236 $this->_view['banners'] = Facade_Index::getIndex(4); 237 $this->_view['banners'] = Facade_Index::getIndex(4);
237 $this->_view['news'] = $news; 238 $this->_view['news'] = $news;
1 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <sqlMap namespace="news"> 2 <sqlMap namespace="news">
3 <select id="getList"> 3 <select id="getList">
4 - SELECT * FROM `tbl_news` #where# order by `sort` DESC , create_time desc limit :offset, :limit 4 + SELECT * FROM `tbl_news` #where# order by create_time desc limit :offset, :limit
5 </select> 5 </select>
6 <select id="getOneById"> 6 <select id="getOneById">
7 SELECT * FROM `tbl_news` where `id`=:id 7 SELECT * FROM `tbl_news` where `id`=:id
@@ -30,20 +30,20 @@ $width = 342; @@ -30,20 +30,20 @@ $width = 342;
30 </div> 30 </div>
31 <div class="item-info"> 31 <div class="item-info">
32 <a class="fluid-tag item-tag <?php 32 <a class="fluid-tag item-tag <?php
33 - switch($news['tag']){  
34 - case "品牌资讯":  
35 - echo "brand-info";  
36 - break;  
37 - case "活动介绍":  
38 - echo "activity-intro";  
39 - break;  
40 - case "亮点活动":  
41 - echo "spotlight-activity";  
42 - break;  
43 - case "限量商品":  
44 - echo "limited-edition";  
45 - break;  
46 - } 33 + if($news['tag']=="品牌资讯"){
  34 + echo "brand-info";
  35 + }
  36 + elseif($news['tag']=="活动介绍"){
  37 + echo "activity-intro";
  38 + }
  39 + elseif($news['tag']=="亮点活动"){
  40 + echo "spotlight-activity";
  41 + }
  42 + elseif($news['tag']=="限量商品"){
  43 + echo "limited-edition";
  44 + }else{
  45 + echo "brand-info";
  46 + }
47 ?>" href="/news/index/tag/<?php echo $news['tag']?>"> 47 ?>" href="/news/index/tag/<?php echo $news['tag']?>">
48 <?php 48 <?php
49 $newtag=array("品牌资讯","活动介绍","亮点活动","限量商品"); 49 $newtag=array("品牌资讯","活动介绍","亮点活动","限量商品");