diff --git a/src/api/member/active/index.js b/src/api/member/active/index.js index e99bbd8..3598460 100644 --- a/src/api/member/active/index.js +++ b/src/api/member/active/index.js @@ -18,6 +18,24 @@ export function attendActive(data) { }) } +// 参加营销活动 +export function attendActiveOrder(data) { + return request({ + url: '/base/customer-active/attendActiveOrder', + method: 'post', + data: data + }) +} + +// 充值 +export function recharge(data) { + return request({ + url: '/base/customer-active/recharge', + method: 'post', + data: data + }) +} + // 获得营销活动分页 export function joinActive(params) { return request({ diff --git a/src/views/base/customer/ReceiveCouponForm.vue b/src/views/base/customer/ReceiveCouponForm.vue index 83d160b..4cff336 100644 --- a/src/views/base/customer/ReceiveCouponForm.vue +++ b/src/views/base/customer/ReceiveCouponForm.vue @@ -202,7 +202,7 @@ export default { selectCoupon:this.multipleSelection, accountType: this.accountType } - await ActiveMainApi.attendActive(data); + await ActiveMainApi.attendActiveOrder(data); if (this.formData.isPack == '0'){ this.$modal.msgSuccess("已生成订单,请客户尽快支付"); } else { diff --git a/src/views/base/customer/RuchForm.vue b/src/views/base/customer/RuchForm.vue index 0b1953d..48329cc 100644 --- a/src/views/base/customer/RuchForm.vue +++ b/src/views/base/customer/RuchForm.vue @@ -141,7 +141,7 @@ export default { topUpAmount: this.topUpAmount, accountType: this.accountType } - await ActiveMainApi.attendActive(data); + await ActiveMainApi.attendActiveOrder(data); this.$modal.msgSuccess("已生成订单,请客户尽快支付"); this.dialogVisible = false this.$emit('success');