...
|
...
|
@@ -420,10 +420,14 @@ define('yohood', function(require, exports) { |
|
|
'</h2>' +
|
|
|
'</div>' +
|
|
|
'</div>';
|
|
|
if(isVideo)
|
|
|
if(isVideo == 2)//侧边视频
|
|
|
{
|
|
|
playIcon = '<i class="play-icon small"></i>';
|
|
|
}
|
|
|
else if(isVideo)
|
|
|
{
|
|
|
playIcon = '<i class="play-icon"></i>';
|
|
|
}
|
|
|
if(isTitleStyle)
|
|
|
{
|
|
|
titleStyle = 'class="volupia"';
|
...
|
...
|
@@ -442,21 +446,25 @@ define('yohood', function(require, exports) { |
|
|
var isVideo, isTitleStyle;
|
|
|
if(data.code == 200)
|
|
|
{
|
|
|
//推荐咨询
|
|
|
$.each(data.data.recom, function(i,v)
|
|
|
{
|
|
|
isVideo = (v.tag == '视频') ? 1 : 0 ;
|
|
|
isTitleStyle = ( v.main_title_type == 1) ? 1 : 0;
|
|
|
recom += template(v.id, v.title, common.getImages(v.thumb, '0230x0230', 'blogimg', 'primary'), '/news/detail/id/'+v.id, isVideo, isTitleStyle);
|
|
|
});
|
|
|
|
|
|
//热门视频
|
|
|
$.each(data.data.hotVideo, function(i,v)
|
|
|
{
|
|
|
isTitleStyle = ( v.main_title_type == 1) ? 1 : 0;
|
|
|
hotVideo += template(v.id, v.title, common.getImages(v.thumb, '0230x0230', 'blogimg', 'primary'), '/news/detail/id/'+v.id, true, isTitleStyle);
|
|
|
hotVideo += template(v.id, v.title, common.getImages(v.thumb, '0230x0230', 'blogimg', 'primary'), '/news/detail/id/'+v.id, 2, isTitleStyle);
|
|
|
});
|
|
|
//最新视频
|
|
|
$.each(data.data.lastVideo, function(i,v)
|
|
|
{
|
|
|
isTitleStyle = ( v.main_title_type == 1) ? 1 : 0;
|
|
|
lastVideo += template(v.id, v.title, common.getImages(v.thumb, '0230x0230', 'blogimg', 'primary'), '/news/detail/id/'+v.id, true, isTitleStyle);
|
|
|
lastVideo += template(v.id, v.title, common.getImages(v.thumb, '0230x0230', 'blogimg', 'primary'), '/news/detail/id/'+v.id, 2, isTitleStyle);
|
|
|
});
|
|
|
$(".post-list").html(recom);
|
|
|
$(".side-related-list").eq(0).html(hotVideo);
|
...
|
...
|
|