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
Plain Diff
Browse Files
Authored by
ccbikai(👎🏻🍜)
2016-10-09 18:09:11 +0800
Commit
9c654fb4057bf8f731bafecd461042043fd46775
2 parents
cdae87ae
1e3dda8d
Merge remote-tracking branch 'origin/feature/13418'
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
apps/product/models/detail.js
apps/product/views/action/detail/detail.hbs
public/scss/product/detail/_detail.css
apps/product/models/detail.js
View file @
9c654fb
...
...
@@ -90,7 +90,7 @@ const _procShowStatus = (data, showStatus, isBeginSale) => {
break
;
case
4
:
// 开售后,立即购买(用户已领取限购码)
data
.
gotCode
=
true
;
data
.
cartInfo
.
can
BuyLimit
=
true
;
data
.
cartInfo
.
can
NotBuy
=
true
;
break
;
case
5
:
// 开售前,限购码已被抢光(用户未领取限购码)
data
.
codeEmpty
=
true
;
...
...
apps/product/views/action/detail/detail.hbs
View file @
9c654fb
...
...
@@ -179,8 +179,8 @@
<a
href=
"javascript:;"
class=
"sold-out limit"
>
即将发售
</a>
{{/if}}
{{#if
canBuyLimit
}}
<a
href=
"javascript:;"
id=
"addtoCart"
class=
"addto-cart"
>
立即购买
</a>
{{#if
canNotBuy
}}
<a
href=
"javascript:;"
class=
"addto-cart can-not-buy"
>
立即购买
</a>
{{/if}}
{{#if
noLimitCode
}}
...
...
public/scss/product/detail/_detail.css
View file @
9c654fb
...
...
@@ -768,6 +768,10 @@ $basicBtnC: #eb0313;
line-height
:
80px
;
}
.can-not-buy
{
background-color
:
#ccc
;
}
.sold-out
{
background-color
:
#ccc
;
}
...
...
Please
register
or
login
to post a comment