diff --git a/fuintAdmin/src/api/EventMarketing/activeDiscount.js b/fuintAdmin/src/api/EventMarketing/activeDiscount.js index 4cfeb37cf..46f4a73a8 100644 --- a/fuintAdmin/src/api/EventMarketing/activeDiscount.js +++ b/fuintAdmin/src/api/EventMarketing/activeDiscount.js @@ -3,7 +3,7 @@ import request from '@/utils/request' // 查询折扣营销列表 export function listActiveDiscount(query) { return request({ - url: '/business/marketingActivity/activeDiscount/list', + url: 'business/marketingActivity/activeDiscount', method: 'get', params: query }) diff --git a/fuintAdmin/src/api/EventMarketing/activeFullminus.js b/fuintAdmin/src/api/EventMarketing/activeFullminus.js index 3c064f778..f124737ec 100644 --- a/fuintAdmin/src/api/EventMarketing/activeFullminus.js +++ b/fuintAdmin/src/api/EventMarketing/activeFullminus.js @@ -3,7 +3,7 @@ import request from '@/utils/request' // 查询满减营销列表 export function listActiveFullminus(query) { return request({ - url: '/business/marketingActivity/activeFullminus/list', + url: '/business/marketingActivity/activeFullminus', method: 'get', params: query }) diff --git a/fuintAdmin/src/views/EventMarketing/activeConsumption/index.vue b/fuintAdmin/src/views/EventMarketing/activeConsumption/index.vue index 9b13a873d..ffc398b1c 100644 --- a/fuintAdmin/src/views/EventMarketing/activeConsumption/index.vue +++ b/fuintAdmin/src/views/EventMarketing/activeConsumption/index.vue @@ -38,13 +38,12 @@ icon="el-icon-plus" size="mini" @click="handleAdd" - >新增 - + @@ -53,22 +52,13 @@ {{ scope.row.participationConditionMoney }} 元 - - - - - - - - 全部用户 全部会员 等级会员 - V{{item}}会员 @@ -85,15 +75,6 @@ - - - - - - - - - diff --git a/fuintAdmin/src/views/EventMarketing/activeDiscount/index.vue b/fuintAdmin/src/views/EventMarketing/activeDiscount/index.vue index e0755c915..e7868b183 100644 --- a/fuintAdmin/src/views/EventMarketing/activeDiscount/index.vue +++ b/fuintAdmin/src/views/EventMarketing/activeDiscount/index.vue @@ -43,13 +43,30 @@ - + - - - - + + + V{{item}}会员 + + + + + V{{item}}会员 + + + + + V{{item}}会员 + + + + + 启用 + 禁用 + + 修改 - 下线 + + + + + + + @@ -79,11 +96,30 @@ /> - - + + + + + + 满 元 + + + 减元 + + + + + + + + + 新增 + + + { + console.log(response) this.activeDiscountList = response.data.records; this.total = response.data.total; this.loading = false; }); }, + // 新增 + addactiveDiscountChildList(){ + let data = { + discount :this.form.activeDiscountChildList.discount, + amount:this.form.activeDiscountChildList.amount, + + } + this.form.activeDiscountChildList.push(data) + }, + deleteactiveDiscountChildList(index){ + this.form.activeDiscountChildList.splice(index, 1) + }, // 取消按钮 cancel() { this.open = false; @@ -304,6 +385,7 @@ export default { this.reset(); const id = row.id || this.ids getActiveDiscount(id).then(response => { + console.log( response.data) this.form = response.data; this.open = true; this.title = "修改折扣营销"; diff --git a/fuintAdmin/src/views/EventMarketing/activeFullminus/index.vue b/fuintAdmin/src/views/EventMarketing/activeFullminus/index.vue index 98d62bc74..e51c578dd 100644 --- a/fuintAdmin/src/views/EventMarketing/activeFullminus/index.vue +++ b/fuintAdmin/src/views/EventMarketing/activeFullminus/index.vue @@ -43,13 +43,30 @@ - + - - - - + + + V{{item}}会员 + + + + + V{{item}}会员 + + + + + V{{item}}会员 + + + + + 启用 + 禁用 + + 修改 - 下线 + + + + + + + @@ -80,11 +97,30 @@ - - + + + + + + 满 元 + + + 减元 + + + + + + + + + 新增 + + + - + @@ -58,20 +58,27 @@ - + - V{{item}}会员 + + 优惠券 + 兑换券 + - - + + + + + + + - - 启用 - 禁用 - + 进行中 + 待生效 + 已结束 @@ -81,15 +88,9 @@ type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" - v-hasPermi="['business/marketingActivity:activeNewlyweds:edit']" + >修改 - 删除 + @@ -104,8 +105,8 @@ - - + + @@ -125,34 +126,302 @@ placeholder="请选择活动结束时间"> - - + + + + 赠送优惠券 + 赠送兑换券 + + + + + 赠送卡券 新增 + + + + + + + 油品券 + 商品券 + 通用券 + + + + + {{scope.row.giftCardDetail}} + + + + + 天 + 天 + 天 + + + + + + + + + + 删除 + + + + + + + + 选择兑换券 新增 + + + + + + + + 油品券 + 商品券 + 通用券 + + + + + {{scope.row.giftCardDetail}} + + + + + 天 + + + + + + + + + + 删除 + + + + + + - + - + + + + + + + + + + + + + 油品券 + 商品券 + 通用券 + + + + + 满{{scope.row.fullDeduction}}减 {{scope.row.discountAmount}}元 + + + + + {{scope.row.validityZero}}天 + {{scope.row.validityOne}}天 + {{scope.row.validityTwo}}天 + + + + + + 选择 + + + + + + + + + + + + + 油品券 + 商品券 + 通用券 + + + + + {{scope.row.useInstructions}} + + + + + {{scope.row.validity}}天 + + + + + + 选择 + + + + + + + + + + + 取 消 + 确 定 + + +