diff --git a/manager/src/api/promotion.js b/manager/src/api/promotion.js index 4e180cb3..fca59f8a 100644 --- a/manager/src/api/promotion.js +++ b/manager/src/api/promotion.js @@ -19,7 +19,7 @@ export const whetherStar = params => { // 添加优惠券活动 export const addCouponActivity = params => { - return postRequest(`/promotion/couponActivity/addCouponActivity`,params); + return postRequest(`/promotion/couponActivity/addCouponActivity`, params); }; @@ -103,6 +103,34 @@ export const deleteMemberReceiveCoupon = id => { return putRequest(`/promotion/coupon/member/cancellation/${id}`); }; + +// 保存平台优惠券 +export const saveActivityCoupon = params => { + return postRequest("/promotion/couponActivity", params, { + "Content-type": "application/json" + }); +}; +// 获取活动优惠券列表 +export const getActivityCouponList = params => { + return getRequest("/promotion/couponActivity/activityCoupons", params); +}; +// 获取平台优惠券活动 +export const getCouponActivityList = params => { + return getRequest("/promotion/couponActivity", params); +}; +// 作废优惠券 +export const deleteCouponActivity = ids => { + return deleteRequest(`/promotion/couponActivity/${ids}`); +}; +// 更新优惠券活动 +export const updateCouponActivity = params => { + return putRequest(`/promotion/couponActivity/status`, params); +}; +// 获取单个优惠券活动 +export const getCouponActivity = id => { + return getRequest(`/promotion/couponActivity/${id}`); +}; + // 获取限时抢购数据 export const getSeckillList = params => { return getRequest("/promotion/seckill", params); diff --git a/manager/src/config/index.js b/manager/src/config/index.js index 8b6b162f..1a28698c 100644 --- a/manager/src/config/index.js +++ b/manager/src/config/index.js @@ -21,10 +21,10 @@ export default { // buyer: "https://buyer-api.pickmall.cn", // seller: "https://store-api.pickmall.cn", // manager: "https://admin-api.pickmall.cn" - common: 'http://192.168.0.109:8890', - buyer: 'http://192.168.0.109:8888', - seller: 'http://192.168.0.109:8889', - manager: 'http://192.168.0.109:8887' + common: 'http://192.168.0.100:8890', + buyer: 'http://192.168.0.100:8888', + seller: 'http://192.168.0.100:8889', + manager: 'http://192.168.0.100:8887' }, api_prod: { common: "https://common-api.pickmall.cn", diff --git a/manager/src/router/router.js b/manager/src/router/router.js index 6f2dfdb3..bdc3d361 100644 --- a/manager/src/router/router.js +++ b/manager/src/router/router.js @@ -224,12 +224,6 @@ export const otherRouter = { name: "add-platform-coupon", component: () => import("@/views/promotion/coupon/couponPublish.vue") }, - { - path: "promotion/add-coupon-specify", - title: "精准发劵", - name: "add-coupon-specify", - component: () => import("@/views/promotion/coupon/couponSpecify.vue") - }, { path: "promotion/edit-platform-coupon", title: "编辑平台优惠券", @@ -249,6 +243,37 @@ export const otherRouter = { name: "platform-coupon-info", component: () => import("@/views/promotion/coupon/couponInfo.vue") }, + { + path: "coupon-activity/add", + title: "添加优惠券活动", + name: "add-coupon-activity", + component: () => import("@/views/promotion/couponActivity/couponPublish.vue") + }, + { + path: "coupon-activity/edit", + title: "编辑平台优惠券", + name: "edit-coupon-activity", + component: () => import("@/views/promotion/couponActivity/couponPublish.vue") + }, + { + path: "promotion/member-receive-coupon", + title: "领取详情", + name: "member-coupon-activity", + component: () => + import("@/views/promotion/coupon/memberReceiveCoupon.vue") + }, + { + path: "promotion/platform-coupon-info", + title: "详情", + name: "platform-coupon-activity", + component: () => import("@/views/promotion/coupon/couponInfo.vue") + }, + { + path: "promotion/add-coupon-specify", + title: "精准发劵", + name: "add-coupon-specify", + component: () => import("@/views/promotion/coupon/couponSpecify.vue") + }, { path: "promotion/manager-pintuan", title: "平台拼团", diff --git a/manager/src/views/lili-dialog/coupon-dialog.vue b/manager/src/views/lili-dialog/coupon-dialog.vue new file mode 100644 index 00000000..fb7f0be3 --- /dev/null +++ b/manager/src/views/lili-dialog/coupon-dialog.vue @@ -0,0 +1,246 @@ + + + diff --git a/manager/src/views/lili-dialog/index.vue b/manager/src/views/lili-dialog/index.vue index 49b3b1c1..bc5a47d8 100644 --- a/manager/src/views/lili-dialog/index.vue +++ b/manager/src/views/lili-dialog/index.vue @@ -1,7 +1,7 @@