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
Plain Diff
Browse Files
Authored by
徐炜
9 years ago
Commit
6e7fe478e404ff6b02cb1b16f6bfc67df782e7bf
2 parents
c61b28aa
2ba6c43e
Merge remote-tracking branch 'origin/feature/goodsDetail'
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
apps/product/models/item-handler.js
apps/product/models/item-handler.js
View file @
6e7fe47
...
...
@@ -361,7 +361,7 @@ const setProductData = base => {
// 有颜色图片时显示颜色图片,无颜色图片时显示rgb值
// 都没有则显示商品图
if
(
value
.
colorValue
)
{
group
.
bgImg
=
value
.
colorValue
;
group
.
bgImg
=
helpers
.
image
(
value
.
colorValue
,
30
,
30
)
;
}
else
if
(
value
.
colorCode
)
{
group
.
rgb
=
`#
$
{
value
.
colorCode
}
`
;
}
else
{
...
...
@@ -439,7 +439,7 @@ const setProductData = base => {
}
// 限购商品
if
(
base
.
isLimitBuy
===
'Y'
)
{
if
(
base
.
isLimitBuy
===
true
)
{
let
isBeginSale
=
(
base
.
saleStatus
&&
+
base
.
saleStatus
)
===
1
;
// 是否开售
let
showStatus
=
1
;
// 限购商品有关的展示状态
...
...
Please
register
or
login
to post a comment