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
郭成尧
8 years ago
Commit
c06ccb7a5dd3850eaea2c507ab64588fa5c4d43b
1 parent
64287d15
buynow
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
9 deletions
apps/cart/controllers/BuyNowController.js
apps/cart/router.js
public/js/easypay/order-ensure.page.js → public/js/buynow/order-ensure.page.js
public/js/cart/order-ensure.page.js
public/scss/easypay/order-ensure.page.css → public/scss/buynow/order-ensure.page.css
apps/cart/controllers/BuyNowController.js
View file @
c06ccb7
...
...
@@ -2,11 +2,13 @@
* @Author: Targaryen
* @Date: 2017-06-21 10:15:38
* @Last Modified by: Targaryen
* @Last Modified time: 2017-06-21 1
5:57:27
* @Last Modified time: 2017-06-21 1
6:20:42
*/
const
co
=
require
(
'bluebird'
).
coroutine
;
const
headerModel
=
require
(
'../../../doraemon/models/header'
);
const
BuyNowModel
=
require
(
'../models/BuyNowModel'
);
const
utils
=
'../../../utils'
;
const
paymentProcess
=
require
(
`
$
{
utils
}
/payment-process`
)
;
class
BuyNowController
{
/**
...
...
@@ -29,10 +31,10 @@ class BuyNowController {
return
res
.
render
(
'order-ensure'
,
{
pageHeader
:
headerData
,
module
:
'
easypay
'
,
module
:
'
buynow
'
,
page
:
'order-ensure'
,
title
:
'确认订单'
,
orderEnsure
:
result
.
data
orderEnsure
:
paymentProcess
.
tranformPayment
(
result
.
data
)
});
})().
catch
(
next
);
...
...
apps/cart/router.js
View file @
c06ccb7
...
...
@@ -62,9 +62,9 @@ router.post('/index/new/giftinfo', indexController.giftinfo); // 获取购物车
router
.
post
(
'/index/new/incrbundle'
,
indexController
.
incrBundle
);
// 购物车增加套餐数量
router
.
post
(
'/index/new/decrbundle'
,
indexController
.
decrBundle
);
// 购物车减少加套餐数量
router
.
get
(
'/easypay/orderensure'
,
authMW
,
BuyNowController
.
orderEnsure
);
// 立即购买订单确认页面
router
.
post
(
'/easypay/ordercompute'
,
authMW
,
BuyNowController
.
orderCompute
);
// 立即购买订单重新计算
router
.
post
(
'/easypay/ordersub'
,
authMW
,
BuyNowController
.
orderSub
);
// 立即购买订单提交
router
.
get
(
'/buynow/orderensure'
,
authMW
,
BuyNowController
.
orderEnsure
);
// 立即购买订单确认页面
router
.
post
(
'/buynow/ordercompute'
,
authMW
,
BuyNowController
.
orderCompute
);
// 立即购买订单重新计算
router
.
post
(
'/buynow/ordersub'
,
authMW
,
BuyNowController
.
orderSub
);
// 立即购买订单提交
// 支付中心 URL,由于微信安全限制,在现有 URL 后追加 new ,通过 subDomain 中间件转发到此
router
.
get
(
'/home/orders/paynew'
,
authMW
,
payController
.
payCenter
);
...
...
public/js/
easypay
/order-ensure.page.js → public/js/
buynow
/order-ensure.page.js
View file @
c06ccb7
...
...
@@ -2,6 +2,9 @@
* @Author: Targaryen
* @Date: 2017-06-21 10:30:21
* @Last Modified by: Targaryen
* @Last Modified time: 2017-06-21 1
0:33:20
* @Last Modified time: 2017-06-21 1
6:32:13
*/
require
(
'easypay/order-ensure.page.css'
);
require
(
'buynow/order-ensure.page.css'
);
const
lazyLoad
=
require
(
'yoho-jquery-lazyload'
);
lazyLoad
(
$
(
'img.lazy'
));
...
...
public/js/cart/order-ensure.page.js
View file @
c06ccb7
require
(
'./order-ensure'
);
...
...
public/scss/
easypay
/order-ensure.page.css → public/scss/
buynow
/order-ensure.page.css
View file @
c06ccb7
Please
register
or
login
to post a comment