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
5264468b84b29a3c29b42e3d8d1c8fb2df4ccda6
1 parent
d03c6819
add title for new arrivals
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
apps/channel/models/index.js
apps/channel/views/partial/new-arrival.hbs
apps/channel/models/index.js
View file @
5264468
...
...
@@ -43,7 +43,6 @@ const _getBrandAdFloor = d => {
* @return {Object} 处理之后的数据
*/
const
_getNewArrivals
=
d
=>
{
console
.
log
(
d
);
_
.
forEach
(
d
,
(
data
,
index
)
=>
{
if
(
index
===
0
||
index
===
d
.
length
-
1
)
{
data
.
smallImg
=
true
;
...
...
apps/channel/views/partial/new-arrival.hbs
View file @
5264468
...
...
@@ -5,21 +5,21 @@
<div
class=
"arrival-item
{{#if
smallImg
}}
small-img
{{/if}}
{{#if
@last
}}
last
{{^}}
normal
{{/if}}
"
>
{{#if
even
}}
<a
href=
"
{{
url
}}
"
>
<img
class=
"lazy-img"
data-original=
"
{{#if
smallImg
}}{{
image
src
223
490
}}{{^}}{{
image
src
325
490
}}{{/if}}
"
alt=
""
>
<img
class=
"lazy-img"
data-original=
"
{{#if
smallImg
}}{{
image
src
223
490
}}{{^}}{{
image
src
325
490
}}{{/if}}
"
alt=
"
{{
alt
}}
"
>
</a>
<div
class=
"brand-name"
>
<a
href=
"
{{
url
}}
"
>
<span
class=
"bottom"
>
{{
nam
e
}}
</span>
<span
class=
"bottom"
>
{{
titl
e
}}
</span>
</a>
</div>
{{^}}
<div
class=
"brand-name"
>
<a
href=
"
{{
url
}}
"
>
<span
class=
"top"
>
{{
nam
e
}}
</span>
<span
class=
"top"
>
{{
titl
e
}}
</span>
</a>
</div>
<a
href=
"
{{
url
}}
"
>
<img
class=
"lazy-img"
data-original=
"
{{#if
smallImg
}}{{
image
src
223
490
}}{{^}}{{
image
src
325
490
}}{{/if}}
"
alt=
""
>
<img
class=
"lazy-img"
data-original=
"
{{#if
smallImg
}}{{
image
src
223
490
}}{{^}}{{
image
src
325
490
}}{{/if}}
"
alt=
"
{{
alt
}}
"
>
</a>
{{/if}}
</div>
...
...
Please
register
or
login
to post a comment