|
@@ -7,7 +7,6 @@ |
|
@@ -7,7 +7,6 @@ |
7
|
var $ = require('yoho-jquery'),
|
7
|
var $ = require('yoho-jquery'),
|
8
|
Swiper = require('yoho-swiper'),
|
8
|
Swiper = require('yoho-swiper'),
|
9
|
tip = require('../plugin/tip'),
|
9
|
tip = require('../plugin/tip'),
|
10
|
- lazyLoad = require('yoho-jquery-lazyload'),
|
|
|
11
|
loading = require('../plugin/loading'),
|
10
|
loading = require('../plugin/loading'),
|
12
|
PullRefresh = require('../plugin/pull-refresh');
|
11
|
PullRefresh = require('../plugin/pull-refresh');
|
13
|
|
12
|
|
|
@@ -41,13 +40,14 @@ if ($window.width() === 375 && isiOS) { |
|
@@ -41,13 +40,14 @@ if ($window.width() === 375 && isiOS) { |
41
|
}
|
40
|
}
|
42
|
|
41
|
|
43
|
require('../common');
|
42
|
require('../common');
|
|
|
43
|
+require('yoho-jquery-lazyload');
|
44
|
|
44
|
|
45
|
$window.on('mousewheel', false);
|
45
|
$window.on('mousewheel', false);
|
46
|
|
46
|
|
47
|
// 限制标题字数
|
47
|
// 限制标题字数
|
48
|
-function txtLimit() {
|
|
|
49
|
-
|
|
|
50
|
-}
|
48
|
+// function txtLimit() {
|
|
|
49
|
+//
|
|
|
50
|
+// }
|
51
|
|
51
|
|
52
|
// 设置默认头像
|
52
|
// 设置默认头像
|
53
|
function setAvatar($userAvatar) {
|
53
|
function setAvatar($userAvatar) {
|
|
@@ -140,13 +140,13 @@ function setIndexAction() { |
|
@@ -140,13 +140,13 @@ function setIndexAction() { |
140
|
});
|
140
|
});
|
141
|
}
|
141
|
}
|
142
|
|
142
|
|
143
|
- if ($('.star-info').find('li').length > 0) {
|
|
|
144
|
- $starArticle.each(function(key, item) {
|
|
|
145
|
- txtLimit($(item), '.article-title', 'p');
|
|
|
146
|
-
|
|
|
147
|
- // articleImgAction($(item), key);
|
|
|
148
|
- });
|
|
|
149
|
- }
|
143
|
+ // if ($('.star-info').find('li').length > 0) {
|
|
|
144
|
+ // $starArticle.each(function(key, item) {
|
|
|
145
|
+ // txtLimit($(item), '.article-title', 'p');
|
|
|
146
|
+ //
|
|
|
147
|
+ // // articleImgAction($(item), key);
|
|
|
148
|
+ // });
|
|
|
149
|
+ // }
|
150
|
|
150
|
|
151
|
$('.rank-avatar').each(function(key, item) {
|
151
|
$('.rank-avatar').each(function(key, item) {
|
152
|
setAvatar($(item));
|
152
|
setAvatar($(item));
|
|
@@ -170,11 +170,6 @@ function initAction() { |
|
@@ -170,11 +170,6 @@ function initAction() { |
170
|
|
170
|
|
171
|
$avatarClone = $('.avatar-clone');
|
171
|
$avatarClone = $('.avatar-clone');
|
172
|
|
172
|
|
173
|
- // 限制标题字数
|
|
|
174
|
- $('.cont-area').each(function() {
|
|
|
175
|
- txtLimit($(this), '.title', '.cont-txt');
|
|
|
176
|
- });
|
|
|
177
|
-
|
|
|
178
|
$('img.lazy').lazyload({
|
173
|
$('img.lazy').lazyload({
|
179
|
effect: 'fadeIn'
|
174
|
effect: 'fadeIn'
|
180
|
});
|
175
|
});
|