diff --git a/fuintAdmin/src/api/EventMarketing/activePopUp.js b/fuintAdmin/src/api/EventMarketing/activePopUp.js new file mode 100644 index 000000000..35e5fdbc5 --- /dev/null +++ b/fuintAdmin/src/api/EventMarketing/activePopUp.js @@ -0,0 +1,28 @@ +import request from '@/utils/request' + +export function getActivePopUp() { + return request({ + url: 'activePopUp/getInfo', + method: 'get', + }) +} +export function addActivePopUp(data) { + return request({ + url: 'activePopUp', + method: 'post', + data:data + }) +} +export function editActivePopUp(data) { + return request({ + url: 'activePopUp', + method: 'put', + data:data + }) +} +export function deleteActivePopUp(id) { + return request({ + url: 'activePopUp/'+id, + method: 'delete', + }) +} diff --git a/fuintAdmin/src/views/EventMarketing/activeConsumption/index.vue b/fuintAdmin/src/views/EventMarketing/activeConsumption/index.vue index 8bfd7d8d0..1d3ba274c 100644 --- a/fuintAdmin/src/views/EventMarketing/activeConsumption/index.vue +++ b/fuintAdmin/src/views/EventMarketing/activeConsumption/index.vue @@ -1148,9 +1148,18 @@ export default { this.weekDay = [] this.monthDay = [] } - if (res.data.pointList) this.pointList = res.data.pointList - if (res.data.growthValueList) this.growthValueList = res.data.growthValueList - if (res.data.couponList) this.couponList = res.data.couponList + if (res.data.pointList) { + this.pointList = res.data.pointList + this.pointOrderType = res.data.pointList[0].orderType + } + if (res.data.growthValueList) { + this.growthValueList = res.data.growthValueList + this.growthValueOrderType = res.data.growthValueList[0].orderType + } + if (res.data.couponList) { + this.couponList = res.data.couponList + this.couponOrderType = res.data.couponList[0].orderType + } }else { this.ruleForm = { paymentType:[], @@ -1163,6 +1172,9 @@ export default { this.pointList = [] this.growthValueList = [] this.couponList = [] + this.pointOrderType = '' + this.growthValueOrderType = '' + this.couponOrderType = '' } console.log( '1147', this.ruleForm.activeGift) }) diff --git a/fuintAdmin/src/views/EventMarketing/liJianMarketing/index.vue b/fuintAdmin/src/views/EventMarketing/liJianMarketing/index.vue index df495d31d..699fddb11 100644 --- a/fuintAdmin/src/views/EventMarketing/liJianMarketing/index.vue +++ b/fuintAdmin/src/views/EventMarketing/liJianMarketing/index.vue @@ -140,11 +140,8 @@ {{ item }} - + @@ -217,6 +214,7 @@