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
htoooth
8 years ago
Commit
72672f726401c9d8d8f4f6fa2dc9c07a2de3ca68
1 parent
1a14731f
fix status
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
apps/product/models/detail-service.js
apps/product/models/detail-service.js
View file @
72672f7
...
...
@@ -373,7 +373,7 @@ const _getFashionTopGoodsStatus = (uid, showStatus, isBeginSale) => {
// dis //失效
// buyNow //是否立即购买
let
result
=
{
getLimitedCode
:
tru
e
,
getLimitedCode
:
fals
e
,
hadLimitedCode
:
false
,
limitedCodeSoldOut
:
false
,
openSoon
:
false
,
...
...
@@ -393,17 +393,16 @@ const _getFashionTopGoodsStatus = (uid, showStatus, isBeginSale) => {
result
.
openSoon
=
true
;
result
.
hadLimitedCode
=
false
;
}
result
.
getLimitedCode
=
true
;
break
;
case
2
:
// 开售后,限购码已抢光(用户未领取限购码)
result
.
buyNow
=
true
;
result
.
dis
=
true
;
result
.
limitedCodeSoldOut
=
true
;
result
.
getLimitedCode
=
false
;
result
.
hadLimitedCode
=
false
;
break
;
case
3
:
// 开售后,商品已经售罄
result
.
soldOut
=
true
;
result
.
getLimitedCode
=
false
;
break
;
case
4
:
// 开售后,立即购买(用户已领取限购码)
result
.
buyNow
=
true
;
...
...
@@ -417,7 +416,6 @@ const _getFashionTopGoodsStatus = (uid, showStatus, isBeginSale) => {
result
.
openSoon
=
true
;
result
.
hadLimitedCode
=
true
;
result
.
limitedCodeSoldOut
=
true
;
result
.
getLimitedCode
=
false
;
break
;
case
6
:
// 开售前,即将开售(用户已领取限购码)
result
.
openSoon
=
true
;
...
...
Please
register
or
login
to post a comment