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
lijing
8 years ago
Commit
f64b1a7c93b8a3294320f4b59847c5e94215b689
1 parent
6faf3aba
新增预售标签
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
1 deletions
apps/product/models/search.js
apps/product/views/action/detail/detail.hbs
public/js/product/tick.js
public/scss/product/detail/_detail.css
apps/product/models/search.js
View file @
f64b1a7
...
...
@@ -276,7 +276,7 @@ const searchKeyActivity = (params) => {
cache
:
true
,
code
:
200
}).
then
(
result
=>
{
if
(
result
.
data
)
{
if
(
result
&&
result
.
data
)
{
return
result
.
data
;
}
else
{
return
{};
...
...
apps/product/views/action/detail/detail.hbs
View file @
f64b1a7
...
...
@@ -21,6 +21,9 @@
{{#
is_soon_sold_out
}}
<p
class=
"good-tag soon-sold-out-tag"
>
即将售罄
</p>
{{/
is_soon_sold_out
}}
{{#
is_presell
}}
<p
class=
"good-tag is_presell"
>
预售
</p>
{{/
is_presell
}}
{{/
tags
}}
</div>
{{#
bannerTop
}}
...
...
public/js/product/tick.js
View file @
f64b1a7
...
...
@@ -207,6 +207,9 @@ $(
newDay
=
newDate
.
getDate
();
newHour
=
newDate
.
getHours
();
newMinus
=
newDate
.
getMinutes
();
if
(
newMinus
===
0
)
{
newMinus
=
'00'
;
}
$
(
'.notStart'
).
find
(
'.seckill-time-c'
).
text
(
newMonth
+
'月'
+
newDay
+
'日'
+
newHour
+
':'
+
newMinus
);
seckillObj
.
startTick
(
timeObj
,
offsetTime
);
}
...
...
public/scss/product/detail/_detail.css
View file @
f64b1a7
...
...
@@ -185,6 +185,11 @@ $basicBtnC: #eb0313;
background-color
:
#ffac5b
;
color
:
#fff
;
}
.is_presell
{
background-color
:
#000
;
color
:
#fff
;
}
}
.banner-container
{
...
...
Please
register
or
login
to post a comment