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
runner
9 years ago
Commit
6e26256f2581fe5d237fd60fb8878880be2a6195
1 parent
6f029639
no activity update
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
44 additions
and
17 deletions
apps/product/controllers/outlet.js
apps/product/views/action/outlet/will-end.hbs
apps/product/views/action/outlet/will-start.hbs
public/img/product/bag_moren.png
public/js/product/outlet-will-end.page.js
public/js/product/outlet-will-start.page.js
public/scss/outlet/_activity.css
apps/product/controllers/outlet.js
View file @
6e26256
...
...
@@ -56,8 +56,8 @@ exports.activityList = (req, res) => {
});
let
categoryId
=
req
.
query
.
category_id
;
let
type
=
req
.
query
.
type
||
2
;
let
template
=
type
===
2
?
'outlet/will-end'
:
'outlet/will-start'
;
let
page
=
type
===
2
?
'outlet-will-end'
:
'outlet-will-start'
;
let
template
=
parseInt
(
type
)
===
2
?
'outlet/will-end'
:
'outlet/will-start'
;
let
page
=
parseInt
(
type
)
===
2
?
'outlet-will-end'
:
'outlet-will-start'
;
if
(
!
categoryId
)
{
throw
new
Error
(
'No parent_id for OUTLET channel page!'
);
...
...
apps/product/views/action/outlet/will-end.hbs
View file @
6e26256
...
...
@@ -11,4 +11,9 @@
</div>
</a>
{{/
activity
}}
<div
class=
"empty hide"
>
<div
class=
"bag"
></div>
<p>
活动正在火热中进行,左滑切换频道,更多潮品,就在YOHO!BUY有货
</p>
</div>
</div>
...
...
apps/product/views/action/outlet/will-start.hbs
View file @
6e26256
...
...
@@ -3,5 +3,10 @@
{{#
activity
}}
{{>
resources
/
acivity-outlets
}}
{{/
activity
}}
<div
class=
"empty hide"
>
<div
class=
"bag"
></div>
<p>
活动正在火热中进行,左滑切换频道,更多潮品,就在YOHO!BUY有货
</p>
</div>
</div>
...
...
public/img/product/bag_moren.png
0 → 100755
View file @
6e26256
5.64 KB
public/js/product/outlet-will-end.page.js
View file @
6e26256
...
...
@@ -11,11 +11,11 @@ var $el = $('.cd-medium');
require
(
'../common'
);
if
(
$el
.
length
>
0
)
{
$el
.
each
(
function
(){
$el
.
each
(
function
()
{
Countdown
.
Countdown
({
el
:
$
(
this
)
})
})
});
});
}
// 导航滚动
...
...
@@ -25,10 +25,8 @@ if ($('#index_nav').length > 0) {
}).
goto
(
$
(
'#index_nav'
).
find
(
'.active'
).
index
());
}
if
(
$
(
'#list-nav'
).
length
>
0
)
{
iscroll
({
el
:
'#list-nav'
}).
goto
(
0
);
if
(
$
(
'.will-end-back'
).
length
<
1
)
{
$
(
'.empty'
).
show
();
}
$
(
'.will-end-back'
).
on
(
'click'
,
function
()
{
...
...
public/js/product/outlet-will-start.page.js
View file @
6e26256
...
...
@@ -11,11 +11,11 @@ var $el = $('.cd-lite');
require
(
'../common'
);
if
(
$el
.
length
>
0
)
{
$el
.
each
(
function
(){
$el
.
each
(
function
()
{
Countdown
.
Countdown
({
el
:
$
(
this
)
})
})
});
});
}
// 导航滚动
...
...
@@ -25,10 +25,8 @@ if ($('#index_nav').length > 0) {
}).
goto
(
$
(
'#index_nav'
).
find
(
'.active'
).
index
());
}
if
(
$
(
'#list-nav'
).
length
>
0
)
{
iscroll
({
el
:
'#list-nav'
}).
goto
(
0
);
if
(
$
(
'.back-ground-white'
).
length
<
1
)
{
$
(
'.empty'
).
show
();
}
$
(
'.back-ground-white'
).
on
(
'click'
,
function
()
{
...
...
public/scss/outlet/_activity.css
View file @
6e26256
...
...
@@ -153,7 +153,6 @@
.time
{
font-size
:
22px
;
}
}
.outlet-discount
{
...
...
@@ -184,4 +183,26 @@
.hidden
{
display
:
none
;
}
.empty
{
position
:
absolute
;
width
:
330px
;
left
:
50%
;
top
:
300px
;
margin-left
:
-150px
;
font-size
:
24px
;
color
:
#444
;
font-family
:
STHeitiSC
Mdedi
;
.bag
{
display
:
block
;
width
:
200px
;
height
:
200px
;
margin-left
:
65px
;
margin-bottom
:
30px
;
background-image
:
resolve
(
"product/bag_moren.png"
);
background-repeat
:
no-repeat
;
background-size
:
100%
100%
;
}
}
}
...
...
Please
register
or
login
to post a comment