Toggle navigation
Toggle navigation
This project
Loading...
Sign in
chenchao
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
unknown
9 years ago
Commit
10b53f5b1a8c23d603f94436d198e6edb77f71ac
1 parent
c1aad771
男首优选品牌js修改
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
web-static/js/common/logo-brand.js
web-static/js/common/logo-brand.js
View file @
10b53f5
...
...
@@ -18,6 +18,7 @@ var $ = require('yoho.jquery'),
LogoBrand
.
prototype
=
{
init
:
function
()
{
this
.
$element
.
addClass
(
'logos-'
+
this
.
options
.
showNum
);
this
.
_sendRequest
();
},
_createHelper
:
function
()
{
...
...
@@ -72,8 +73,8 @@ var $ = require('yoho.jquery'),
'<a href="\{{href}}"><img class="lazy" data-original="\{{img}}" alt=""></a>'
+
'\{{/brandList}}'
;
brandTpl
=
Handlebars
.
compile
(
brandHtml
);
$
(
'.logo-brand'
).
addClass
(
'logos-'
+
that
.
options
.
showNum
).
html
(
brandTpl
(
data
));
lazyLoad
(
$
(
'.logo-brand'
).
find
(
'img.lazy'
));
that
.
$element
.
html
(
brandTpl
(
data
));
lazyLoad
(
that
.
$element
.
find
(
'img.lazy'
));
that
.
_bindEvent
();
}
});
...
...
Please
register
or
login
to post a comment