Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
yyq
7 years ago
Commit
fd5d032d13396fd9de73d5595b5ece823986ac3b
1 parent
6d1dabf5
global detail
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
apps/product/models/global.js
apps/product/views/action/global/detail.hbs
apps/product/models/global.js
View file @
fd5d032
...
...
@@ -148,9 +148,9 @@ const _getProductSeoData = (detail) => {
bn
=
_
.
get
(
detail
,
'brand_info.brand_name'
)
||
detail
.
product_source
;
resData
=
{
title
:
`
$
{
bn
}
|
$
{
gn
}
正品
|
YOHO
!
BUY
有货`
,
keywords
:
`
$
{
bn
},
$
{
bn
}
专卖店
,
$
{
bn
}
官方授权店
,
$
{
bn
}
正品
,
$
{
bn
}
打折
,
$
{
bn
}
折扣店
,
$
{
bn
}
真品
,
$
{
bn
}
代购`
,
description
:
`
YOHO
!
BUY
有货
-
$
{
bn
}
官方授权店,
$
{
gn
}
图片、报价、介绍。
YOHO
!
BUY
有货
$
{
bn
}
专卖店提供
$
{
bn
}
正品、
$
{
bn
}
真品、
$
{
bn
}
打折、
$
{
bn
}
代购等。`
// eslint-disable-line
title
:
`【
$
{
bn
}
】
$
{
gn
}
|
YOHO
!
BUY
有货网`
,
keywords
:
`
$
{
bn
}
,
$
{
bn
}
价格,
$
{
bn
}
图片
$
{
bn
}
`
,
description
:
`
$
{
gn
}
有货网仅售
$
{
detail
.
final_price
}
元,购买正品
$
{
bn
}
,了解
$
{
bn
}
商品信息就上有货网!`
// eslint-disable-line
};
}
...
...
@@ -276,6 +276,8 @@ function getGlobalProductDetailData(skn, channelNum, channel) {
logo
:
brandInfo
.
brand_ico
};
detailInfo
.
productTitle
=
`
$
{
brandInfo
.
brand_name
||
detailInfo
.
product_source
}
|
$
{
detailInfo
.
product_name
}
`
;
resData
.
pathNav
=
_
.
concat
(
homeService
.
getHomeChannelNav
(
channel
),
[
...
...
apps/product/views/action/global/detail.hbs
View file @
fd5d032
...
...
@@ -13,7 +13,7 @@
</div>
<div
id=
"min-img"
>
<img
id=
"img-show"
class=
"img-show"
src=
"
{{
image2
mainThumb
w
=
420
h
=
560
}}
"
>
<img
id=
"img-show"
class=
"img-show"
src=
"
{{
image2
mainThumb
w
=
420
h
=
560
}}
"
alt=
"
{{
productTitle
}}
"
>
<div
class=
"magnifier move-object hide"
></div>
<div
class=
"magnifier move-over"
></div>
<div
id=
"max"
class=
"magnifier max hide"
>
...
...
@@ -32,14 +32,14 @@
{{#
images_list
}}
<img
class=
"thumb
{{#if
@first
}}
active
{{/if}}
"
src=
"
{{
image2
image_url
w
=
75
h
=
100
}}
"
data-shower=
"
{{
image2
image_url
w
=
420
h
=
560
}}
"
data-origin=
"
{{
image2
image_url
w
=
750
h
=
1000
}}
"
>
data-origin=
"
{{
image2
image_url
w
=
750
h
=
1000
}}
"
alt=
"
{{
..
/
..
/
productTitle
}}
"
>
{{/
images_list
}}
{{^}}
{{#
images_list
}}
<img
class=
"thumb lazy"
data-original=
"
{{
image2
image_url
w
=
75
h
=
100
}}
"
data-shower=
"
{{
image2
image_url
w
=
420
h
=
560
}}
"
data-origin=
"
{{
image2
image_url
w
=
750
h
=
1000
}}
"
>
data-origin=
"
{{
image2
image_url
w
=
750
h
=
1000
}}
"
alt=
"
{{
..
/
..
/
productTitle
}}
"
>
{{/
images_list
}}
{{/if}}
</div>
...
...
@@ -114,7 +114,7 @@
</div>
<div
class=
"extra-tip"
>
<a
href=
"/help/detail?id=39&contId=241"
>
全球购物须知
</a>
<a
href=
"/help/detail?id=39&contId=241"
rel=
"nofollow"
>
全球购物须知
</a>
<ul
class=
"global-buy-tips"
>
{{#
illustrate_contents
}}
...
...
Please
register
or
login
to post a comment