...
|
...
|
@@ -237,14 +237,17 @@ define('yohood', function(require, exports) { |
|
|
});
|
|
|
//标签设置
|
|
|
if (/(iPad)/i.test(navigator.userAgent)) { //ipad处理
|
|
|
$(".show-wrap .image-box").bind("click", function() {
|
|
|
var timer = setInterval(function() {
|
|
|
if ($(".show").size() > 0) {
|
|
|
showLabel($(".show"), 480, 480, 0, 0);
|
|
|
clearInterval(timer);
|
|
|
return true;
|
|
|
}
|
|
|
}, 1);
|
|
|
$("#bigpic").live("click", function() {
|
|
|
if($(this).attr("isopen") == 1){
|
|
|
showNone($(this).parent());
|
|
|
$(this).attr("isopen",0);
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
showLabel($(this).parent(), 480, 480, 0, 0);
|
|
|
$(this).attr("isopen", 1);
|
|
|
}
|
|
|
|
|
|
});
|
|
|
} else {
|
|
|
$(".show-wrap .image-box").bind("click", function() {
|
...
|
...
|
@@ -631,13 +634,13 @@ define('yohood', function(require, exports) { |
|
|
//热门视频
|
|
|
$.each(data.data.hotVideo, function(i, v) {
|
|
|
isTitleStyle = (v.main_title_type == 1) ? 1 : 0;
|
|
|
hotVideo += template(v.title, common.getImages(v.thumb, '0230x0230', 'blogimg', '1'),
|
|
|
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) {
|
|
|
isTitleStyle = (v.main_title_type == 1) ? 1 : 0;
|
|
|
lastVideo += template(v.title, common.getImages(v.thumb, '0230x0230', 'blogimg', '1'),
|
|
|
lastVideo += 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);
|
...
|
...
|
|