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
Email Patches
Plain Diff
Browse Files
Authored by
郝肖肖
8 years ago
Commit
decffdcd758300066d9039ac05ecc2772a4fce71
1 parent
ebd9a325
购物车、支付成功页最近浏览、为您优选选项
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
26 additions
and
1 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
apps/shopping/controllers/pay.js
View file @
decffdc
...
...
@@ -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 @
decffdc
...
...
@@ -42,5 +42,8 @@
</p>
</div>
{{/
content
}}
<!--最近浏览-->
<div
class=
"recommend-product"
></div>
</div>
</div>
...
...
apps/shopping/views/partial/cart/empty-cart.hbs
View file @
decffdc
...
...
@@ -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 @
decffdc
...
...
@@ -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 @
decffdc
...
...
@@ -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 @
decffdc
var
recProduct
=
require
(
'../product/item/recommend-product'
);
// 为您优选、最近浏览
recProduct
.
init
({
dom
:
'.recommend-product'
});
...
...
Please
register
or
login
to post a comment