...
|
...
|
@@ -57,7 +57,10 @@ exports.orderEnsure = (req, res, next) => { |
|
|
let userProfilePromise = userModel.queryProfile(uid);
|
|
|
let addressPromise = addressModel.addressData(uid);
|
|
|
|
|
|
if (req.query.activityType === 'bundle') {
|
|
|
if (req.query.cartType === 'bundle') {
|
|
|
if (!req.cookies._cartType) {
|
|
|
res.cookie('_cartType', 'bundle', actCkOpthn);
|
|
|
}
|
|
|
let activityInfo = JSON.parse(req.cookies['activity-info']);
|
|
|
|
|
|
orderPromise = cartModel.cartPay(uid, cartType, null, null, sku, skn, buyNumber, activityInfo);
|
...
|
...
|
@@ -127,7 +130,7 @@ exports.orderCompute = (req, res, next) => { |
|
|
let type = req.body.type;
|
|
|
|
|
|
if (type !== 'tickets') {
|
|
|
if (req.body.activityType === 'bundle') {
|
|
|
if (req.body.cartType === 'bundle') {
|
|
|
let activityInfo = JSON.parse(req.cookies['activity-info']);
|
|
|
|
|
|
cartModel.orderCompute(uid, cartType, deliveryId, paymentTypeId, couponCode, yohoCoin, null, activityInfo).then(result => {
|
...
|
...
|
@@ -372,7 +375,8 @@ exports.invoiceInfo = (req, res, next) => { |
|
|
res.render('select-invoice', _.assign(returnData, {
|
|
|
pageHeader: headerData,
|
|
|
module: 'cart',
|
|
|
page: 'select-invoice'
|
|
|
page: 'select-invoice',
|
|
|
addressMore: helpers.urlFormat('/cart/index/new/orderEnsure', {cartType: req.cookies._cartType})
|
|
|
}));
|
|
|
})().catch(next);
|
|
|
};
|
...
|
...
|
|