...
|
...
|
@@ -603,7 +603,7 @@ define('yohood', function(require, exports) { |
|
|
exports.detailNews = function(id) {
|
|
|
var recom = '';
|
|
|
var hotVideo = '';
|
|
|
var lastVideo = '';
|
|
|
var lastNews = '';
|
|
|
var template = function(topic, img, url, isVideo, isTitleStyle, title, imgStyle) {
|
|
|
var playIcon = '';
|
|
|
var titleStyle = '';
|
...
|
...
|
@@ -661,15 +661,15 @@ define('yohood', function(require, exports) { |
|
|
hotVideo += template(tools.limitWords(v.title, 52), common.getImages(v.thumb, '0230x0230', 'blogimg', '1'),
|
|
|
'/news/detail/id/' + v.id, 2, isTitleStyle, v.title, '');
|
|
|
});
|
|
|
//最新视频
|
|
|
$.each(data.data.lastVideo, function(i, v) {
|
|
|
//最新资讯
|
|
|
$.each(data.data.lastNews, function(i, v) {
|
|
|
isTitleStyle = (v.main_title_type == 1) ? 1 : 0;
|
|
|
lastVideo += template(tools.limitWords(v.title, 52), common.getImages(v.thumb, '0230x0230', 'blogimg', '1'),
|
|
|
lastNews += template(tools.limitWords(v.title, 52), common.getImages(v.thumb, '0230x0230', 'blogimg', '1'),
|
|
|
'/news/detail/id/' + v.id, 2, isTitleStyle, v.title, '');
|
|
|
});
|
|
|
$(".post-list").html(recom);
|
|
|
$(".side-related-list").eq(0).html(hotVideo);
|
|
|
$(".side-related-list").eq(1).html(lastVideo);
|
|
|
$(".side-related-list").eq(1).html(lastNews);
|
|
|
|
|
|
if ($('.detail-body').outerHeight() > $('.detail-side').outerHeight() && navigator.userAgent.indexOf('iPad') === -1) {
|
|
|
//右侧相关文章定位
|
...
|
...
|
|