Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-blk
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
1
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
王水玲
8 years ago
Commit
ba3147c88dd55354f9d16161b873e515a4754128
2 parents
3713d7ef
9a991823
Merge branch 'feature/wsl5.3' of git.yoho.cn:fe/yoho-blk into feature/wsl5.3
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
30 additions
and
2 deletions
apps/shopping/controllers/pay.js
apps/shopping/views/action/pay-success.hbs
apps/shopping/views/partial/cart/empty-cart.hbs
apps/shopping/views/partial/cart/statement.hbs
public/js/shopping/cart.page.js
public/js/shopping/pay-over.page.js
public/scss/shopping/_cart-header.css
public/scss/shopping/_cart-products.css
apps/shopping/controllers/pay.js
View file @
ba3147c
...
...
@@ -52,6 +52,8 @@ const online = (req, res, next) => {
}
else
{
res
.
display
(
'pay-success'
,
{
defaultHeader
:
false
,
module
:
'shopping'
,
page
:
'pay-over'
,
content
:
{
cost
:
order
.
paymentAmount
,
orderNum
:
order
.
orderCode
,
...
...
@@ -123,6 +125,8 @@ const callback = (req, res) => {
res
.
display
(
'pay-success'
,
{
defaultHeader
:
false
,
module
:
'shopping'
,
page
:
'pay-over'
,
content
:
{
cost
:
order
.
paymentAmount
,
orderNum
:
order
.
orderCode
,
...
...
apps/shopping/views/action/pay-success.hbs
View file @
ba3147c
...
...
@@ -42,5 +42,8 @@
</p>
</div>
{{/
content
}}
<!--最近浏览-->
<div
class=
"recommend-product"
></div>
</div>
</div>
...
...
apps/shopping/views/partial/cart/empty-cart.hbs
View file @
ba3147c
...
...
@@ -5,4 +5,7 @@
<a
href=
"/"
class=
"go-to-shop"
>
<span
class=
"btn white"
>
去购物
</span>
</a>
</div>
\ No newline at end of file
</div>
<!--最近浏览-->
<div
class=
"recommend-product"
></div>
\ No newline at end of file
...
...
apps/shopping/views/partial/cart/statement.hbs
View file @
ba3147c
...
...
@@ -31,3 +31,6 @@
<span
class=
"btn
{{#
unless
selectedNum
}}
disable
{{/
unless
}}
"
id=
"checkout_btn"
>
去结算
</span>
</div>
</div>
<!--最近浏览-->
<div
class=
"recommend-product"
></div>
...
...
public/js/shopping/cart.page.js
View file @
ba3147c
...
...
@@ -7,6 +7,7 @@
var
$
=
require
(
'yoho-jquery'
);
var
Cart
=
require
(
'./cart/cart'
);
var
Stepper
=
require
(
'./cart/stepper'
);
var
recProduct
=
require
(
'../product/item/recommend-product'
);
require
(
'../common/return-top'
);
...
...
@@ -142,4 +143,9 @@ $(function() {
// 变动商品数量
Stepper
.
init
();
// 为您优选、最近浏览
recProduct
.
init
({
dom
:
'.recommend-product'
});
});
...
...
public/js/shopping/pay-over.page.js
0 → 100644
View file @
ba3147c
var
recProduct
=
require
(
'../product/item/recommend-product'
);
// 为您优选、最近浏览
recProduct
.
init
({
dom
:
'.recommend-product'
});
...
...
public/scss/shopping/_cart-header.css
View file @
ba3147c
...
...
@@ -4,7 +4,7 @@
}
.cart-header
{
margin
:
12px
auto
48px
;
margin
:
12px
auto
0
;
width
:
100%
;
padding
:
30px
;
border-bottom
:
1px
solid
#eee
;
...
...
@@ -18,6 +18,7 @@
span
{
font-weight
:
normal
;
}
.not-checked
{
color
:
#999
;
}
...
...
public/scss/shopping/_cart-products.css
View file @
ba3147c
...
...
@@ -29,6 +29,8 @@ $hoverColor: #379ed6;
}
.cart-pro-list
{
margin-top
:
48px
;
.title
{
border-bottom
:
1px
solid
#eee
;
font-size
:
16px
;
...
...
Please
register
or
login
to post a comment