From 726b11eb821bcd279700633fa2a3fb98f26361fe Mon Sep 17 00:00:00 2001 From: pikachu <1321288662@qq.com> Date: Mon, 12 Jul 2021 23:42:59 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E7=A0=8D=E4=BB=B7=E7=AC=AC=E4=B8=80?= =?UTF-8?q?=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kanjia/kanjiaActivityAddGoods.vue | 437 +++++++++++++++++ .../kanjia/kanjiaActivityEditGoods.vue | 437 +++++++++++++++++ .../promotion/kanjia/kanjiaActivityGoods.vue | 449 ++++++++++++++++++ 3 files changed, 1323 insertions(+) create mode 100644 manager/src/views/promotion/kanjia/kanjiaActivityAddGoods.vue create mode 100644 manager/src/views/promotion/kanjia/kanjiaActivityEditGoods.vue create mode 100644 manager/src/views/promotion/kanjia/kanjiaActivityGoods.vue diff --git a/manager/src/views/promotion/kanjia/kanjiaActivityAddGoods.vue b/manager/src/views/promotion/kanjia/kanjiaActivityAddGoods.vue new file mode 100644 index 00000000..8f570141 --- /dev/null +++ b/manager/src/views/promotion/kanjia/kanjiaActivityAddGoods.vue @@ -0,0 +1,437 @@ + + + + + + diff --git a/manager/src/views/promotion/kanjia/kanjiaActivityEditGoods.vue b/manager/src/views/promotion/kanjia/kanjiaActivityEditGoods.vue new file mode 100644 index 00000000..8f570141 --- /dev/null +++ b/manager/src/views/promotion/kanjia/kanjiaActivityEditGoods.vue @@ -0,0 +1,437 @@ + + + + + + diff --git a/manager/src/views/promotion/kanjia/kanjiaActivityGoods.vue b/manager/src/views/promotion/kanjia/kanjiaActivityGoods.vue new file mode 100644 index 00000000..19d8e8e5 --- /dev/null +++ b/manager/src/views/promotion/kanjia/kanjiaActivityGoods.vue @@ -0,0 +1,449 @@ + + + + From 953320526e44cb5d7d0d7fb81e8bc322023bdc3c Mon Sep 17 00:00:00 2001 From: pikachu <1321288662@qq.com> Date: Mon, 12 Jul 2021 23:43:59 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E7=A0=8D=E4=BB=B7=E7=AC=AC=E4=B8=80?= =?UTF-8?q?=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manager/src/api/promotion.js | 29 +- manager/src/router/router.js | 12 + .../kanjia/kanjiaActivityAddGoods.vue | 44 +- .../kanjia/kanjiaActivityEditGoods.vue | 478 +++++++----------- .../promotion/kanjia/kanjiaActivityGoods.vue | 311 ++++-------- 5 files changed, 328 insertions(+), 546 deletions(-) diff --git a/manager/src/api/promotion.js b/manager/src/api/promotion.js index 0c7c6113..0acdb444 100644 --- a/manager/src/api/promotion.js +++ b/manager/src/api/promotion.js @@ -14,7 +14,7 @@ export const getPromotionSeckill = params => { // 是否推荐直播间 export const whetherStar = params => { - return putRequest(`/broadcast/studio/recommend/${params.id}`,params); + return putRequest(`/broadcast/studio/recommend/${params.id}`, params); }; // 添加优惠券活动 @@ -64,6 +64,33 @@ export const closePintuan = pintuanId => { return putRequest(`/promotion/pintuan/close/${pintuanId}`); }; +// 修改砍价活动商品 +export const saveKanJiaActivityGoods = params => { + return postRequest("/promotion/kan-jia-goods", params, { + "Content-type": "application/json" + }); +}; +// 修改砍价活动商品 +export const editKanJiaActivityGoods = params => { + return putRequest("/promotion/kan-jia-goods", params, { + "Content-type": "application/json" + }); +}; +// 获取砍价活动商品 +export const getKanJiaGoodsList = params => { + return getRequest(`/promotion/kan-jia-goods`, params); +}; + +//删除砍价活动商品 +export const delKanJiaGoods = ids => { + return deleteRequest(`/promotion/kan-jia-goods/${ids}`); +}; + +// 砍价活动商品详情 +export const getKanJiaActivityGoodsById = id => { + return getRequest(`/promotion/kan-jia-goods/${id}`); +}; + // 保存平台优惠券 export const savePlatformCoupon = params => { return postRequest("/promotion/coupon", params, { diff --git a/manager/src/router/router.js b/manager/src/router/router.js index d60e240f..17649475 100644 --- a/manager/src/router/router.js +++ b/manager/src/router/router.js @@ -212,6 +212,18 @@ export const otherRouter = { component: () => import("@/views/promotion/pointsGoodsCategory/pointsGoodsCategory.vue") }, + { + path: "promotion/add-kanJia-activity-goods", + title: "添加砍价活动", + name: "add-kanJia-activity-goods", + component: () => import("@/views/promotion/kanjia/kanjiaActivityAddGoods.vue") + }, + { + path: "promotion/edit-kanJia-activity-goods", + title: "修改砍价活动", + name: "edit-kanJia-activity-goods", + component: () => import("@/views/promotion/kanjia/kanjiaActivityEditGoods.vue") + }, { path: "promotion/manager-coupon", title: "平台优惠券", diff --git a/manager/src/views/promotion/kanjia/kanjiaActivityAddGoods.vue b/manager/src/views/promotion/kanjia/kanjiaActivityAddGoods.vue index 8f570141..4e37f672 100644 --- a/manager/src/views/promotion/kanjia/kanjiaActivityAddGoods.vue +++ b/manager/src/views/promotion/kanjia/kanjiaActivityAddGoods.vue @@ -90,15 +90,14 @@ diff --git a/manager/src/views/promotion/kanjia/kanjiaActivityGoods.vue b/manager/src/views/promotion/kanjia/kanjiaActivityGoods.vue index 19d8e8e5..a2c2db2e 100644 --- a/manager/src/views/promotion/kanjia/kanjiaActivityGoods.vue +++ b/manager/src/views/promotion/kanjia/kanjiaActivityGoods.vue @@ -3,8 +3,8 @@
- - + + - +
- - - +
+ + +
-
@@ -43,8 +67,8 @@