Authored by microTT

BUG 359 资讯详情页面相关推荐视频无视频标志

@@ -511,9 +511,6 @@ define('yohood', function(require, exports) { @@ -511,9 +511,6 @@ define('yohood', function(require, exports) {
511 } 511 }
512 }); 512 });
513 }); 513 });
514 -  
515 - console.log(1);  
516 -  
517 } 514 }
518 }).init(); 515 }).init();
519 516
@@ -913,10 +910,10 @@ define('yohood', function(require, exports) { @@ -913,10 +910,10 @@ define('yohood', function(require, exports) {
913 '</p>' + 910 '</p>' +
914 '</div>' + 911 '</div>' +
915 '</div>'; 912 '</div>';
916 - if (isVideo == 2) //侧边视频 913 + if (isVideo === 2) //侧边视频
917 { 914 {
918 playIcon = '<i class="play-icon small"></i>'; 915 playIcon = '<i class="play-icon small"></i>';
919 - } else if (isVideo) { 916 + } else if (isVideo === 1) {
920 playIcon = '<i class="play-icon"></i>'; 917 playIcon = '<i class="play-icon"></i>';
921 } 918 }
922 if (isTitleStyle) { 919 if (isTitleStyle) {
@@ -941,7 +938,8 @@ define('yohood', function(require, exports) { @@ -941,7 +938,8 @@ define('yohood', function(require, exports) {
941 if (data.code == 200) { 938 if (data.code == 200) {
942 //推荐资讯 939 //推荐资讯
943 $.each(data.data.recom, function(i, v) { 940 $.each(data.data.recom, function(i, v) {
944 - isVideo = (v.tag == '视频') ? 1 : 0; 941 + // isVideo = (v.tag == '视频') ? 1 : 0;
  942 + isVideo = parseInt(v.is_video);
945 isTitleStyle = (v.main_title_type == 1) ? 1 : 0; 943 isTitleStyle = (v.main_title_type == 1) ? 1 : 0;
946 recom += template(tools.limitWords(v.title, 100), common.getImages(v.thumb, '0230x0130', 'blogimg', '1'), 944 recom += template(tools.limitWords(v.title, 100), common.getImages(v.thumb, '0230x0130', 'blogimg', '1'),
947 '/news/detail/id/' + v.id, isVideo, isTitleStyle, v.title, '', v.create_time); 945 '/news/detail/id/' + v.id, isVideo, isTitleStyle, v.title, '', v.create_time);