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
张孝茹
7 years ago
Commit
21b7bf7be9ed2eb01f56af1cedd6e1f94c6992e8
1 parent
792677fc
sale alt
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
doraemon/views/partial/common/goods.hbs
utils/product-process.js
doraemon/views/partial/common/goods.hbs
View file @
21b7bf7
...
...
@@ -34,9 +34,9 @@
<div
class=
"good-detail-img"
>
<a
class=
"good-thumb"
href=
"
{{
url
}}
"
>
{{#if
@root
.
_noLazy
}}
<img
src=
"
{{
image2
default_images
w
=
235
h
=
314
q
=
60
}}
"
/>
<img
src=
"
{{
image2
default_images
w
=
235
h
=
314
q
=
60
}}
"
alt=
"
{{
imgAlt
}}
"
/>
{{else}}
<img
class=
"lazy"
data-original=
"
{{
image2
default_images
w
=
235
h
=
314
q
=
60
}}
"
/>
<img
class=
"lazy"
data-original=
"
{{
image2
default_images
w
=
235
h
=
314
q
=
60
}}
"
alt=
"
{{
imgAlt
}}
"
/>
{{/if}}
</a>
{{#
is_soon_sold_out
}}
...
...
utils/product-process.js
View file @
21b7bf7
...
...
@@ -237,6 +237,8 @@ exports.processProductList = (list, options) => {
product
.
seoTitle
=
`
$
{
product
.
brand_name
}
|
$
{
seoGender
}
$
{
product
.
small_sort_name
}
|
$
{
product
.
product_name
}
|
YOHO
!
BUY
有货`
;
// eslint-disable-line
product
.
imgAlt
=
`
$
{
product
.
brand_name
}
|
$
{
seoGender
}
$
{
product
.
small_sort_name
}
|
$
{
product
.
product_name
}
`
;
pruductList
.
push
(
product
);
});
...
...
Please
register
or
login
to post a comment