...
|
...
|
@@ -600,7 +600,9 @@ define('yohood', function(require, exports) { |
|
|
});
|
|
|
}
|
|
|
//现场计划活动
|
|
|
exports.activityPlan = function() {
|
|
|
exports.activityPlan = function()
|
|
|
{
|
|
|
var timestamp = new Date().getTime() / 1000;
|
|
|
$('.site-activity-content').find('.layout-item').each(function() {
|
|
|
$(this).imgZoom({
|
|
|
imgTag: 'pic-tip'
|
...
|
...
|
@@ -625,15 +627,12 @@ define('yohood', function(require, exports) { |
|
|
"marginLeft": "356px",
|
|
|
"marginTop": "10px"
|
|
|
})
|
|
|
|
|
|
|
|
|
mainBodyOffsetTop = $('.bd').offset().top;
|
|
|
mainBodyHeight = $('.bd').outerHeight();
|
|
|
tabOffsetHeightTop = oTab.offset().top + oTab.outerHeight();
|
|
|
distance = mainBodyHeight + mainBodyOffsetTop;
|
|
|
eleTop = distance - oTab.outerHeight();
|
|
|
tabPositionTop = 10;
|
|
|
|
|
|
if (tabOffsetHeightTop >= distance) {
|
|
|
oTab.css({
|
|
|
'position': 'absolute',
|
...
|
...
|
@@ -650,8 +649,16 @@ define('yohood', function(require, exports) { |
|
|
$('.site-activity-tab').removeAttr('style');
|
|
|
};
|
|
|
});
|
|
|
//日期自动定位
|
|
|
$(".site-activity-time").each(function()
|
|
|
{
|
|
|
if(timestamp >= $(this).attr("start_time") && timestamp <= $(this).attr("end_time"))
|
|
|
{
|
|
|
$("body").animate({"scrollTop": $(this).offset().top - 50 }, 1000);
|
|
|
return;
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
|
|
|
//视频
|
|
|
exports.video = function() {
|
|
|
//图片转换
|
...
|
...
|
|