...
|
...
|
@@ -511,9 +511,6 @@ define('yohood', function(require, exports) { |
|
|
}
|
|
|
});
|
|
|
});
|
|
|
|
|
|
console.log(1);
|
|
|
|
|
|
}
|
|
|
}).init();
|
|
|
|
...
|
...
|
@@ -913,10 +910,10 @@ define('yohood', function(require, exports) { |
|
|
'</p>' +
|
|
|
'</div>' +
|
|
|
'</div>';
|
|
|
if (isVideo == 2) //侧边视频
|
|
|
if (isVideo === 2) //侧边视频
|
|
|
{
|
|
|
playIcon = '<i class="play-icon small"></i>';
|
|
|
} else if (isVideo) {
|
|
|
} else if (isVideo === 1) {
|
|
|
playIcon = '<i class="play-icon"></i>';
|
|
|
}
|
|
|
if (isTitleStyle) {
|
...
|
...
|
@@ -941,7 +938,8 @@ define('yohood', function(require, exports) { |
|
|
if (data.code == 200) {
|
|
|
//推荐资讯
|
|
|
$.each(data.data.recom, function(i, v) {
|
|
|
isVideo = (v.tag == '视频') ? 1 : 0;
|
|
|
// isVideo = (v.tag == '视频') ? 1 : 0;
|
|
|
isVideo = parseInt(v.is_video);
|
|
|
isTitleStyle = (v.main_title_type == 1) ? 1 : 0;
|
|
|
recom += template(tools.limitWords(v.title, 100), common.getImages(v.thumb, '0230x0130', 'blogimg', '1'),
|
|
|
'/news/detail/id/' + v.id, isVideo, isTitleStyle, v.title, '', v.create_time);
|
...
|
...
|
|