From 7de01626b810110747f214d3dd3cf70bb3831483 Mon Sep 17 00:00:00 2001 From: Chopper Date: Tue, 15 Jun 2021 18:09:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=AE=B6=E7=AB=AF=E4=BC=98=E6=83=A0?= =?UTF-8?q?=E5=88=B8=E6=B4=BB=E5=8A=A8=E8=81=94=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manager/src/api/promotion.js | 30 +- manager/src/config/index.js | 8 +- manager/src/router/router.js | 37 +- .../src/views/lili-dialog/coupon-dialog.vue | 246 ++++++++++++ manager/src/views/lili-dialog/index.vue | 6 +- .../my-components/lili/coupon-choose.vue | 346 +++++++++++++++++ manager/src/views/promotion/coupon/coupon.vue | 73 ++-- .../views/promotion/coupon/couponPublish.vue | 90 +++-- .../views/promotion/couponActivity/coupon.vue | 360 ++++++++++++++++++ .../promotion/couponActivity/couponInfo.vue | 240 ++++++++++++ .../couponActivity/couponPublish.scss | 257 +++++++++++++ .../couponActivity/couponPublish.vue | 354 +++++++++++++++++ .../couponActivity/couponSpecify.vue | 172 +++++++++ .../couponActivity/memberReceiveCoupon.vue | 250 ++++++++++++ .../src/views/sys/menu-manage/menuManage.vue | 11 +- seller/src/libs/routerJson.js | 10 - 16 files changed, 2392 insertions(+), 98 deletions(-) create mode 100644 manager/src/views/lili-dialog/coupon-dialog.vue create mode 100644 manager/src/views/my-components/lili/coupon-choose.vue create mode 100644 manager/src/views/promotion/couponActivity/coupon.vue create mode 100644 manager/src/views/promotion/couponActivity/couponInfo.vue create mode 100644 manager/src/views/promotion/couponActivity/couponPublish.scss create mode 100644 manager/src/views/promotion/couponActivity/couponPublish.vue create mode 100644 manager/src/views/promotion/couponActivity/couponSpecify.vue create mode 100644 manager/src/views/promotion/couponActivity/memberReceiveCoupon.vue 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 @@