|
@@ -5,6 +5,7 @@ const helpers = global.yoho.helpers; |
|
@@ -5,6 +5,7 @@ const helpers = global.yoho.helpers; |
5
|
const paymentProcess = require(global.utils + '/payment-process');
|
5
|
const paymentProcess = require(global.utils + '/payment-process');
|
6
|
const shoppingAPI = require('./shopping');
|
6
|
const shoppingAPI = require('./shopping');
|
7
|
const logger = global.yoho.logger;
|
7
|
const logger = global.yoho.logger;
|
|
|
8
|
+const payModel = require('../models/pay');
|
8
|
|
9
|
|
9
|
/**
|
10
|
/**
|
10
|
* 转换价格
|
11
|
* 转换价格
|
|
@@ -326,6 +327,19 @@ exports.searchCoupon = (uid, couponCode) => { |
|
@@ -326,6 +327,19 @@ exports.searchCoupon = (uid, couponCode) => { |
326
|
*/
|
327
|
*/
|
327
|
exports.jitDetailData = (uid, cartType, skuList, orderCode, sessionKey,
|
328
|
exports.jitDetailData = (uid, cartType, skuList, orderCode, sessionKey,
|
328
|
deliveryId, paymentType, couponCode, yohoCoin) => {
|
329
|
deliveryId, paymentType, couponCode, yohoCoin) => {
|
|
|
330
|
+
|
|
|
331
|
+ // 订单详情页拆单
|
|
|
332
|
+ if (orderCode) {
|
|
|
333
|
+ return payModel.getOtherDetail({
|
|
|
334
|
+ uid: uid,
|
|
|
335
|
+ orderCode: orderCode,
|
|
|
336
|
+ sessionKey: sessionKey
|
|
|
337
|
+ }).then(result => {
|
|
|
338
|
+ return paymentProcess.transformJit(_.get(result, 'data.package_list', []));
|
|
|
339
|
+ });
|
|
|
340
|
+ }
|
|
|
341
|
+
|
|
|
342
|
+ // 购物车拆单
|
329
|
if (deliveryId) {
|
343
|
if (deliveryId) {
|
330
|
|
344
|
|
331
|
// 购物车选择改变字段,重新运算订单数据
|
345
|
// 购物车选择改变字段,重新运算订单数据
|