diff --git a/manager/src/api/promotion.js b/manager/src/api/promotion.js index 2dd8ffab..8823d99a 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 0f86c1c9..548235a5 100644 --- a/manager/src/router/router.js +++ b/manager/src/router/router.js @@ -174,6 +174,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 new file mode 100644 index 00000000..4e37f672 --- /dev/null +++ b/manager/src/views/promotion/kanjia/kanjiaActivityAddGoods.vue @@ -0,0 +1,415 @@ + + + + + + + 商品信息 + + + 选择商品 + 批量删除 + + + + + + + {{ row.skuId }} + + + + + + + + + + + + + + + + + + + + + + + + + + 返回 + 提交 + + + + + + + + + + + + + diff --git a/manager/src/views/promotion/kanjia/kanjiaActivityEditGoods.vue b/manager/src/views/promotion/kanjia/kanjiaActivityEditGoods.vue new file mode 100644 index 00000000..2444c560 --- /dev/null +++ b/manager/src/views/promotion/kanjia/kanjiaActivityEditGoods.vue @@ -0,0 +1,325 @@ + + + + + + + 商品信息 + + {{ form.goodsName }} + + + {{ form.skuId }} + + + {{ form.goodsSku.storeName }} + + + {{ form.goodsSku.price | unitPrice('¥') }} + + + {{ form.goodsSku.quantity }} + + + + + + + + + + + + + + + + + + + + + + + + 返回 + 提交 + + + + + + + + + + + + + diff --git a/manager/src/views/promotion/kanjia/kanjiaActivityGoods.vue b/manager/src/views/promotion/kanjia/kanjiaActivityGoods.vue new file mode 100644 index 00000000..a2c2db2e --- /dev/null +++ b/manager/src/views/promotion/kanjia/kanjiaActivityGoods.vue @@ -0,0 +1,326 @@ + + + + + + + + + + + 未开始 + 已开始/上架 + 已结束/下架 + 紧急关闭/作废 + + + + + + 搜索 + + + + 添加砍价 + + + + + {{row.goodsName}} + + + + + + + + + + + {{ row.startTime }} + {{ row.endTime }} + + + {{ row.goodsSku.quantity }} + + + 编辑 + + 删除 + + + + + + + + + + + +