...
|
...
|
@@ -120,16 +120,7 @@ exports.cartPay = (params) => { |
|
|
* @return array 接口返回的数据
|
|
|
*/
|
|
|
exports.orderCompute = (params) => {
|
|
|
return shoppingAPI.orderComputeAPI({
|
|
|
uid: params.uid,
|
|
|
cart_type: params.cartType,
|
|
|
delivery_way: params.deliveryWay,
|
|
|
payment_type: params.paymentType,
|
|
|
coupon_code: params.couponCode,
|
|
|
use_yoho_coin: params.yohoCoin,
|
|
|
product_sku_list: params.skuList,
|
|
|
activityInfo: params.activityInfo
|
|
|
}).then(result => {
|
|
|
return shoppingAPI.orderComputeAPI(params).then(result => {
|
|
|
if (result && result.data) {
|
|
|
result.data.use_yoho_coin = paymentProcess.transPrice(result.data.use_yoho_coin);
|
|
|
result.data.yohoCoinCompute = paymentProcess.yohoCoinCompute(result.data);
|
...
|
...
|
|