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
Plain Diff
Browse Files
Authored by
yyq
2017-09-21 14:07:58 +0800
Commit
0d4a8823af92e3e3c98f19d4ca4769282f160662
2 parents
f0b640ff
e68e94b9
Merge branch 'feature/homeInvoice' into release/6.1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
5 deletions
apps/home/controllers/invoice.js
apps/home/models/orders-service.js
apps/home/views/action/invoice.hbs
public/img/home/empty-content.jpg
public/scss/home/_invoice.css
apps/home/controllers/invoice.js
View file @
0d4a882
...
...
@@ -9,7 +9,6 @@ const index = (req, res, next) => {
return
req
.
ctx
(
ordersService
).
index
(
req
.
user
.
uid
,
page
,
limit
,
8
).
then
(
result
=>
{
res
.
render
(
'invoice'
,
{
// meOrdersPage: true,
meOrders
:
result
});
}).
catch
(
next
);
...
...
apps/home/models/orders-service.js
View file @
0d4a882
...
...
@@ -26,7 +26,8 @@ module.exports = class extends global.yoho.BaseModel {
this
.
ORDER_EMPTY_DESC
=
{
1
:
'您还没有任何订单'
,
5
:
'您目前还没有成功的订单'
,
7
:
'您还没有任何取消的订单'
7
:
'您还没有任何取消的订单'
,
8
:
'您还没有相关订单'
};
this
.
TABS
=
[
...
...
apps/home/views/action/invoice.hbs
View file @
0d4a882
...
...
@@ -18,9 +18,7 @@
</p>
{{#if
orders
.
empty
}}
{{#
with
orders
}}
{{>
empty
}}
{{/
with
}}
<p
class=
"empty-tip"
>
您还没有相关订单
<br><span>
未开票的订单可以在这里补开发票
</span></p>
{{^}}
{{#
orders
.
list
}}
<div
class=
"order"
data-id=
"
{{
orderNum
}}
"
data-time=
"
{{
time
}}
"
data-paytype=
"
{{
payType
}}
"
>
...
...
public/img/home/empty-content.jpg
0 → 100644
View file @
0d4a882
2.52 KB
public/scss/home/_invoice.css
View file @
0d4a882
...
...
@@ -24,6 +24,26 @@
}
}
.empty-tip
{
font-size
:
16px
;
line-height
:
1.5
;
padding
:
10px
0
300px
;
&:before
{
content
:
""
;
display
:
block
;
width
:
70px
;
height
:
90px
;
background
:
resolve
(
"home/empty-content.jpg"
);
margin
:
30px
auto
;
}
>
span
{
font-size
:
14px
;
color
:
#ccc
;
}
}
&
.invoice-detail-dialog
{
background
:
#fff
;
...
...
Please
register
or
login
to post a comment