From be2f92754b8d7201074f8d8d09813a6b9add650c Mon Sep 17 00:00:00 2001 From: YunaiV Date: Thu, 5 Oct 2023 12:42:00 +0800 Subject: [PATCH] =?UTF-8?q?promotion=EF=BC=9A=E6=96=B0=E5=A2=9E=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E8=AE=B0=E5=BD=95=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit cf7ac2cb10f2cf6196c8fb4a2a7aaf3db7b98f1c) --- .../mall/promotion/bargain/bargainActivity.ts | 5 +- src/api/mall/promotion/bargain/bargainHelp.ts | 14 +++ .../record/BargainRecordListDialog.vue | 90 +++++++++++++++++++ .../mall/promotion/bargain/record/index.vue | 20 ++--- 4 files changed, 116 insertions(+), 13 deletions(-) create mode 100644 src/api/mall/promotion/bargain/bargainHelp.ts create mode 100644 src/views/mall/promotion/bargain/record/BargainRecordListDialog.vue diff --git a/src/api/mall/promotion/bargain/bargainActivity.ts b/src/api/mall/promotion/bargain/bargainActivity.ts index 1e5d5f78..a4b543a6 100644 --- a/src/api/mall/promotion/bargain/bargainActivity.ts +++ b/src/api/mall/promotion/bargain/bargainActivity.ts @@ -7,17 +7,16 @@ export interface BargainActivityVO { startTime?: Date endTime?: Date status?: number - userSize?: number // 达到该人数,才能砍到低价 + helpMaxCount?: number // 达到该人数,才能砍到低价 bargainCount?: number // 最大帮砍次数 totalLimitCount?: number // 最大购买次数 spuId: number skuId: number bargainFirstPrice: number // 砍价起始价格,单位分 - bargainPrice: number // 砍价底价 + bargainMinPrice: number // 砍价底价 stock: number // 活动库存 randomMinPrice?: number // 用户每次砍价的最小金额,单位:分 randomMaxPrice?: number // 用户每次砍价的最大金额,单位:分 - successCount?: number // 砍价成功数量 } // 砍价活动所需属性。选择的商品和属性的时候使用方便使用活动的通用封装 diff --git a/src/api/mall/promotion/bargain/bargainHelp.ts b/src/api/mall/promotion/bargain/bargainHelp.ts new file mode 100644 index 00000000..4308ae66 --- /dev/null +++ b/src/api/mall/promotion/bargain/bargainHelp.ts @@ -0,0 +1,14 @@ +import request from '@/config/axios' + +export interface BargainHelpVO { + id: number + record: number + userId: number + reducePrice: number + endTime: Date +} + +// 查询砍价记录列表 +export const getBargainHelpPage = async (params) => { + return await request.get({ url: `/promotion/bargain-help/page`, params }) +} diff --git a/src/views/mall/promotion/bargain/record/BargainRecordListDialog.vue b/src/views/mall/promotion/bargain/record/BargainRecordListDialog.vue new file mode 100644 index 00000000..9637ac88 --- /dev/null +++ b/src/views/mall/promotion/bargain/record/BargainRecordListDialog.vue @@ -0,0 +1,90 @@ + + + diff --git a/src/views/mall/promotion/bargain/record/index.vue b/src/views/mall/promotion/bargain/record/index.vue index e3f284d2..80d5ce40 100644 --- a/src/views/mall/promotion/bargain/record/index.vue +++ b/src/views/mall/promotion/bargain/record/index.vue @@ -113,10 +113,10 @@ - 编辑 + 助力 @@ -130,8 +130,8 @@ /> - - + +