...
|
...
|
@@ -719,6 +719,7 @@ require("js/guang/detail"); |
|
|
require("js/guang/star-classroom");
|
|
|
require("js/guang/calendar");
|
|
|
require("js/guang/collocation-list");
|
|
|
require("js/guang/check-top");
|
|
|
});
|
|
|
define("js/guang/plus-star/list", ["jquery","lazyload","swiper","index"], function(require, exports, module){
|
|
|
/**
|
...
|
...
|
@@ -2242,6 +2243,39 @@ $(document).on('touchstart', '.collection', function(event) { |
|
|
});
|
|
|
|
|
|
});
|
|
|
define("js/guang/check-top", ["jquery"], function(require, exports, module){
|
|
|
/**
|
|
|
* 星潮教室-top100
|
|
|
* @author: wsl<shuiling.wang@yoho.cn>
|
|
|
* @date: 2016/4/12
|
|
|
*/
|
|
|
|
|
|
var $ = require("jquery");
|
|
|
|
|
|
$('body').addClass('star-class-body');
|
|
|
|
|
|
function setAvatar($userAvatar) {
|
|
|
var myImage = new Image(),
|
|
|
avatar;
|
|
|
|
|
|
// 部分老用户没有头像,显示默认头像
|
|
|
avatar = $userAvatar.data('avatar');
|
|
|
myImage.src = avatar;
|
|
|
myImage.onload = function() {
|
|
|
$userAvatar.css('background-image', 'url(' + avatar + ')');
|
|
|
};
|
|
|
}
|
|
|
|
|
|
if ($('.ranking-area li').length > 0) {
|
|
|
$.each($('.ranking-area li'), function(key, item) {
|
|
|
setAvatar($(item).find('.rank-avatar'));
|
|
|
});
|
|
|
}
|
|
|
|
|
|
if ($('.user-avatar').attr('data-avatar') !== '') {
|
|
|
setAvatar($('.user-avatar'));
|
|
|
}
|
|
|
});
|
|
|
define("js/home/entry", ["jquery","swiper","lazyload","hammer","index"], function(require, exports, module){
|
|
|
/**
|
|
|
* 首页打包入口
|
...
|
...
|
|