Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-blk
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
1
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
biao
9 years ago
Commit
6d7eb86ea3840578bb2d907817144ab64566ee28
1 parent
f80bb96c
update for lazy class
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
10 additions
and
10 deletions
apps/channel/views/partial/ad-banner.hbs
apps/channel/views/partial/ad.hbs
apps/channel/views/partial/brand-img-box.hbs
apps/channel/views/partial/editorial.hbs
apps/channel/views/partial/new-arrival.hbs
apps/channel/views/partial/slider.hbs
public/js/channel/home.page.js
apps/channel/views/partial/ad-banner.hbs
View file @
6d7eb86
<div
class=
"ad-banner"
>
{{#
adBanner
}}
<img
class=
"lazy"
data-original=
"
{{
image
img
864
120
}}
"
alt=
""
>
<img
class=
"lazy
-img
"
data-original=
"
{{
image
img
864
120
}}
"
alt=
""
>
{{/
adBanner
}}
</div>
...
...
apps/channel/views/partial/ad.hbs
View file @
6d7eb86
<div
class=
"ad-container clearfix"
>
{{#
brandsAd
}}
<div
class=
"ad
{{#if
@first
}}
first
{{/if}}
"
>
<img
class=
"lazy"
data-original=
"
{{
image
img
165
165
}}
"
alt=
""
>
<img
class=
"lazy
-img
"
data-original=
"
{{
image
img
165
165
}}
"
alt=
""
>
{{>
brand-text-box
}}
</div>
{{/
brandsAd
}}
...
...
apps/channel/views/partial/brand-img-box.hbs
View file @
6d7eb86
{{#
classicBrands
}}
<div
class=
"brand-img-box
{{#if
right
}}
right
{{/if}}
{{#if
bottomSpace
}}
mb10
{{/if}}
"
>
{{#
big
}}
<img
class=
"big-img lazy"
data-original=
"
{{
image
img
426
250
}}
"
alt=
"big-img"
>
<img
class=
"big-img lazy
-img
"
data-original=
"
{{
image
img
426
250
}}
"
alt=
"big-img"
>
{{/
big
}}
{{#
small
}}
<img
class=
"small-img lazy
{{#if
@first
}}
first
{{/if}}
"
data-original=
"
{{
image
img
213
213
}}
"
alt=
"big-img"
>
<img
class=
"small-img lazy
-img
{{#if
@first
}}
first
{{/if}}
"
data-original=
"
{{
image
img
213
213
}}
"
alt=
"big-img"
>
{{/
small
}}
</div>
{{/
classicBrands
}}
...
...
apps/channel/views/partial/editorial.hbs
View file @
6d7eb86
...
...
@@ -4,12 +4,12 @@
{{#
editorial
}}
<div
class=
"news left"
>
{{#
big
}}
<img
class=
"lazy"
data-original=
"
{{
image
img
288
375
}}
"
alt=
""
>
<img
class=
"lazy
-img
"
data-original=
"
{{
image
img
288
375
}}
"
alt=
""
>
{{/
big
}}
</div>
<div
class=
"news right"
>
{{#
small
}}
<img
class=
"lazy
{{#if
bottomSpace
}}
bottom-space
{{/if}}
{{#if
rightSpace
}}
right-space
{{/if}}
"
data-original=
"
{{
image
img
260
176
}}
"
alt=
""
>
<img
class=
"lazy
-img
{{#if
bottomSpace
}}
bottom-space
{{/if}}
{{#if
rightSpace
}}
right-space
{{/if}}
"
data-original=
"
{{
image
img
260
176
}}
"
alt=
""
>
{{/
small
}}
</div>
{{/
editorial
}}
...
...
apps/channel/views/partial/new-arrival.hbs
View file @
6d7eb86
...
...
@@ -4,7 +4,7 @@
{{#
newArrivals
}}
<div
class=
"arrival-item
{{#if
smallImg
}}
small-img
{{/if}}
{{#if
@last
}}
last
{{^}}
normal
{{/if}}
"
>
{{#if
even
}}
<img
class=
"lazy"
data-original=
"
{{
image
img
245
370
}}
"
alt=
""
>
<img
class=
"lazy
-img
"
data-original=
"
{{
image
img
245
370
}}
"
alt=
""
>
<div
class=
"brand-name"
>
<span
class=
"bottom"
>
{{
name
}}
</span>
</div>
...
...
@@ -12,7 +12,7 @@
<div
class=
"brand-name"
>
<span
class=
"top"
>
{{
name
}}
</span>
</div>
<img
class=
"lazy"
data-original=
"
{{
image
img
245
370
}}
"
alt=
""
>
<img
class=
"lazy
-img
"
data-original=
"
{{
image
img
245
370
}}
"
alt=
""
>
{{/if}}
</div>
{{/
newArrivals
}}
...
...
apps/channel/views/partial/slider.hbs
View file @
6d7eb86
...
...
@@ -7,7 +7,7 @@
{{#if
@first
}}
<img
src=
"
{{
image
img
1150
450
}}
"
>
{{^}}
<img
class=
"lazy"
data-original=
"
{{
image
img
1150
450
}}
"
alt=
""
>
<img
class=
"lazy
-img
"
data-original=
"
{{
image
img
1150
450
}}
"
alt=
""
>
{{/if}}
</a>
{{#
tips
}}
...
...
public/js/channel/home.page.js
View file @
6d7eb86
...
...
@@ -8,7 +8,7 @@ var lazyLoad = require('yoho-jquery-lazyload');
require
(
'../plugins/slider'
);
lazyLoad
(
$
(
'img.lazy'
));
lazyLoad
(
$
(
'img.lazy
-img
'
));
$
(
'.slide-container'
).
slider
();
...
...
Please
register
or
login
to post a comment