diff --git a/manager/src/api/promotion.js b/manager/src/api/promotion.js
index 67ae6e13..28de8cc2 100644
--- a/manager/src/api/promotion.js
+++ b/manager/src/api/promotion.js
@@ -283,6 +283,12 @@ export const getCouponReceiveList = (params) => {
return getRequest("/promotion/coupon/received", params);
};
+export const getFlashDiscountList = (params) => getRequest("/promotion/flashDiscount", params);
+export const getFlashDiscountDetail = (id) => getRequest(`/promotion/flashDiscount/${id}`);
+export const updateFlashDiscountStatus = (id, params) => putRequest(`/promotion/flashDiscount/status/${id}`, params);
+export const deleteFlashDiscount = (id) => deleteRequest(`/promotion/flashDiscount/${id}`);
+export const getNthItemDiscountList = (params) => getRequest("/promotion/nthItemDiscount", params);
+
// 现金礼品卡活动分页
export const getGiftCardCashActivityPage = (params) => {
return getRequest("/promotion/giftCardCash/activity", params);
diff --git a/manager/src/router/router.js b/manager/src/router/router.js
index 589e178d..b11c032f 100644
--- a/manager/src/router/router.js
+++ b/manager/src/router/router.js
@@ -313,6 +313,18 @@ export const otherRouter = {
name: "full-discount-detail",
component: () => import("@/views/promotions/full-discount/full-discount-detail.vue")
},
+ {
+ path: "promotions/flash-discount",
+ title: "限时直降",
+ name: "flash-discount",
+ component: () => import("@/views/promotions/flash-discount/flash-discount.vue")
+ },
+ {
+ path: "promotions/nth-item-discount",
+ title: "第N件优惠",
+ name: "nth-item-discount",
+ component: () => import("@/views/promotions/nth-item-discount/nth-item-discount.vue")
+ },
{
path: "promotions/seckill/manager-seckill-add",
title: "编辑秒杀活动",
diff --git a/manager/src/views/promotions/flash-discount/flash-discount.vue b/manager/src/views/promotions/flash-discount/flash-discount.vue
new file mode 100644
index 00000000..b7391dbe
--- /dev/null
+++ b/manager/src/views/promotions/flash-discount/flash-discount.vue
@@ -0,0 +1,36 @@
+
+
+
+
+
+ 搜索
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/manager/src/views/promotions/nth-item-discount/nth-item-discount.vue b/manager/src/views/promotions/nth-item-discount/nth-item-discount.vue
new file mode 100644
index 00000000..a72c1ba0
--- /dev/null
+++ b/manager/src/views/promotions/nth-item-discount/nth-item-discount.vue
@@ -0,0 +1,38 @@
+
+
+
+
+
+ 搜索
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/seller/src/api/promotion.js b/seller/src/api/promotion.js
index 0c6c6976..d7a67a56 100644
--- a/seller/src/api/promotion.js
+++ b/seller/src/api/promotion.js
@@ -182,3 +182,18 @@ export const updateFullDiscount = (id, params) => {
export const getCouponReceiveList = (params) => {
return getRequest("/promotion/coupon/received", params);
};
+
+// ========== 限时直降 ==========
+export const getFlashDiscountList = (params) => getRequest('/promotion/flashDiscount', params)
+export const getFlashDiscountDetail = (id) => getRequest(`/promotion/flashDiscount/${id}`)
+export const saveFlashDiscount = (params) => postRequest('/promotion/flashDiscount', params, { 'Content-type': 'application/json' })
+export const editFlashDiscount = (params) => putRequest('/promotion/flashDiscount', params, { 'Content-type': 'application/json' })
+export const deleteFlashDiscount = (id) => deleteRequest(`/promotion/flashDiscount/${id}`)
+export const updateFlashDiscountStatus = (id, params) => putRequest(`/promotion/flashDiscount/status/${id}`, params)
+
+// ========== 第N件优惠 ==========
+export const getNthItemDiscountList = (params) => getRequest('/promotion/nthItemDiscount', params)
+export const getNthItemDiscountDetail = (id) => getRequest(`/promotion/nthItemDiscount/${id}`)
+export const saveNthItemDiscount = (params) => postRequest('/promotion/nthItemDiscount', params, { 'Content-type': 'application/json' })
+export const editNthItemDiscount = (params) => putRequest('/promotion/nthItemDiscount', params, { 'Content-type': 'application/json' })
+export const updateNthItemDiscountStatus = (id, params) => putRequest(`/promotion/nthItemDiscount/status/${id}`, params)
diff --git a/seller/src/router/router.js b/seller/src/router/router.js
index b8c60175..06ff0ad4 100644
--- a/seller/src/router/router.js
+++ b/seller/src/router/router.js
@@ -139,6 +139,18 @@ export const otherRouter = {
name: "full-discount-detail",
component: () => import("@/views/promotion/full-discount/full-discount-add.vue")
},
+ {
+ path: "flash-discount-add",
+ title: "限时直降",
+ name: "flash-discount-add",
+ component: () => import("@/views/promotion/flash-discount/flash-discount-add.vue")
+ },
+ {
+ path: "nth-item-discount-add",
+ title: "第N件优惠",
+ name: "nth-item-discount-add",
+ component: () => import("@/views/promotion/nth-item-discount/nth-item-discount-add.vue")
+ },
{
path: "export-order-deliver",
title: "发货",
diff --git a/seller/src/views/promotion/flash-discount/flash-discount-add.vue b/seller/src/views/promotion/flash-discount/flash-discount-add.vue
new file mode 100644
index 00000000..6eb37899
--- /dev/null
+++ b/seller/src/views/promotion/flash-discount/flash-discount-add.vue
@@ -0,0 +1,104 @@
+
+
+
+
+
+
+
+
+
+
+
+ 0 表示不限
+
+
+
+
+
+ 选择商品
+
+
+
+
+
+
+
+
+
+
+
+ 保存
+ 返回
+
+
+
+
+
+
+
+
+
+
diff --git a/seller/src/views/promotion/flash-discount/flash-discount.vue b/seller/src/views/promotion/flash-discount/flash-discount.vue
new file mode 100644
index 00000000..307839ce
--- /dev/null
+++ b/seller/src/views/promotion/flash-discount/flash-discount.vue
@@ -0,0 +1,111 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 新建活动
+
+
+
+
+
+
+
+
+
+
+ {{ statusText(row.promotionStatus) }}
+
+
+
+
+ 编辑
+ |
+ 关闭
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/seller/src/views/promotion/nth-item-discount/nth-item-discount-add.vue b/seller/src/views/promotion/nth-item-discount/nth-item-discount-add.vue
new file mode 100644
index 00000000..d4c7b0aa
--- /dev/null
+++ b/seller/src/views/promotion/nth-item-discount/nth-item-discount-add.vue
@@ -0,0 +1,113 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 例如 2 表示第 2 件享受优惠
+
+
+
+
+
+
+
+
+
+
+ 如 8 表示 8 折
+
+
+
+
+
+ 选择商品
+
+
+
+
+
+
+ 保存
+ 返回
+
+
+
+
+
+
+
+
+
+
diff --git a/seller/src/views/promotion/nth-item-discount/nth-item-discount.vue b/seller/src/views/promotion/nth-item-discount/nth-item-discount.vue
new file mode 100644
index 00000000..623e78ee
--- /dev/null
+++ b/seller/src/views/promotion/nth-item-discount/nth-item-discount.vue
@@ -0,0 +1,118 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 新建活动
+
+
+
+
+
+
+
+
+ {{ discountTypeText(row.discountType) }}
+
+
+
+
+
+ {{ statusText(row.promotionStatus) }}
+
+
+
+
+ 编辑
+ |
+ 关闭
+
+
+
+
+
+
+
+
+
+
+
+
+