Commit eb259922 by hxx

支付有礼优化

parent 5b065bcf
...@@ -20,5 +20,9 @@ export default { ...@@ -20,5 +20,9 @@ export default {
// 获取订单是否参加支付有礼 // 获取订单是否参加支付有礼
getPayWithCourtesyInfoForShop(data) { getPayWithCourtesyInfoForShop(data) {
return requestPOST(`${process.env.OLSHOP_URL}/payWithCourtesy/getPayWithCourtesyInfoForShop`, data); return requestPOST(`${process.env.OLSHOP_URL}/payWithCourtesy/getPayWithCourtesyInfoForShop`, data);
} },
// 保存支付有礼积分
save_pay_with_courtesy_integral(data) {
return requestPOST(`${process.env.OLSHOP_URL}/order/save_pay_with_courtesy_integral`, data)
},
} }
...@@ -133,9 +133,18 @@ ...@@ -133,9 +133,18 @@
const info = this.giftsInfo.getPayWithCourtesyInfoForShopRespDTO; const info = this.giftsInfo.getPayWithCourtesyInfoForShopRespDTO;
if (info && (info.payWithCourtesyIntegralRedemptionPageRespDTO || info.detailCouponInfoResponseDTO)) { if (info && (info.payWithCourtesyIntegralRedemptionPageRespDTO || info.detailCouponInfoResponseDTO)) {
this.isShowGifts = true; this.isShowGifts = true;
this.savePayWithCourtesyIntegral();
} }
} }
}, },
// 支付有礼保存积分
async savePayWithCourtesyIntegral() {
const data = {
orderSn: this._orderDetail.orderSn, // 订单编号
payWithCourtesyId: this.giftsInfo.getPayWithCourtesyInfoForShopRespDTO.activityid, // 支付有礼 id
}
await order.save_pay_with_courtesy_integral(data);
}
}, },
} }
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment