Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
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
姜枫
2016-12-08 14:39:14 +0800
Commit
2345129d5e2b81ca6ad457768ddb42935fa2463d
1 parent
45de7ffa
处理优化lazyload加载, 处理首页直出的部分去掉lazyload
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
doraemon/views/partial/resources/hot-brands-list.hbs
doraemon/views/partial/resources/hot-category.hbs
package.json
public/hbs/resources/hot-category.hbs
doraemon/views/partial/resources/hot-brands-list.hbs
View file @
2345129
...
...
@@ -15,7 +15,7 @@
<li
class=
"more"
>
<a
class=
"
{{#
unless
image
.
src
}}
default
{{/
unless
}}
"
href=
"
{{
image
.
url
}}
"
>
<img
class=
"lazy"
data-original
=
"
{{
image2
image
.
src
w
=
320
h
=
172
q
=
60
}}
"
>
<img
src
=
"
{{
image2
image
.
src
w
=
320
h
=
172
q
=
60
}}
"
>
</a>
</li>
</ul>
...
...
doraemon/views/partial/resources/hot-category.hbs
View file @
2345129
...
...
@@ -4,7 +4,7 @@
{{#
banner
}}
<a
class=
"category-banner"
href=
"
{{
url
}}
"
>
<img
class=
"lazy"
data-original
=
"
{{
image2
src
q
=
60
}}
"
>
<img
src
=
"
{{
image2
src
q
=
60
}}
"
>
</a>
{{/
banner
}}
<ul
class=
"category-list clearfix"
>
...
...
@@ -12,7 +12,7 @@
<li>
<a
href=
"
{{
url
}}
"
>
<div
class=
"img-box"
>
<img
class=
"lazy"
data-original
=
"
{{
image2
src
w
=
140
h
=
140
q
=
60
}}
"
alt=
""
>
<img
src
=
"
{{
image2
src
w
=
140
h
=
140
q
=
60
}}
"
alt=
""
>
</div>
</a>
</li>
...
...
package.json
View file @
2345129
...
...
@@ -95,7 +95,7 @@
"yoho-handlebars"
:
"^4.0.5"
,
"yoho-iscroll"
:
"^5.2.0"
,
"yoho-jquery"
:
"^2.2.4"
,
"yoho-jquery-lazyload"
:
"^1.9.
9
"
,
"yoho-jquery-lazyload"
:
"^1.9.
10
"
,
"yoho-jquery-qrcode"
:
"^0.14.0"
,
"yoho-mlellipsis"
:
"0.0.3"
,
"yoho-qs"
:
"^1.0.1"
,
...
...
public/hbs/resources/hot-category.hbs
View file @
2345129
...
...
@@ -4,7 +4,7 @@
{{#
banner
}}
<a
class=
"category-banner"
href=
"
{{
url
}}
"
>
<img
class=
"lazy"
data-original
=
"
{{
image2
src
q
=
60
}}
"
>
<img
src
=
"
{{
image2
src
q
=
60
}}
"
>
</a>
{{/
banner
}}
<ul
class=
"category-list clearfix"
>
...
...
@@ -12,7 +12,7 @@
<li>
<a
href=
"
{{
url
}}
"
>
<div
class=
"img-box"
>
<img
class=
"lazy"
data-original
=
"
{{
image2
src
w
=
140
h
=
140
q
=
60
}}
"
alt=
""
>
<img
src
=
"
{{
image2
src
w
=
140
h
=
140
q
=
60
}}
"
alt=
""
>
</div>
</a>
</li>
...
...
Please
register
or
login
to post a comment