From d20bf1c47a2f7a58ce543792063925e5975d208e Mon Sep 17 00:00:00 2001
From: cun-nan <19819293608@163.com>
Date: Tue, 3 Sep 2024 16:32:30 +0800
Subject: [PATCH] =?UTF-8?q?=E8=90=A5=E9=94=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/api/EventMarketing/activePopUp.js | 28 ++++
.../activeConsumption/index.vue | 18 ++-
.../EventMarketing/liJianMarketing/index.vue | 31 ++++-
.../EventMarketing/openCardGift/popUp.vue | 80 ++++++++----
.../openCardGift/userConsume.vue | 56 ++++----
.../controller/ActivePopUpController.java | 81 ++++++++++++
.../activePopUp/entity/ActivePopUp.java | 119 +++++++++++++++++
.../activePopUp/entity/ActivePopUpChild.java | 61 +++++++++
.../mapper/ActivePopUpChildMapper.java | 7 +
.../activePopUp/mapper/ActivePopUpMapper.java | 7 +
.../service/ActivePopUpChildService.java | 63 +++++++++
.../service/ActivePopUpService.java | 49 +++++++
.../impl/ActivePopUpChildServiceImpl.java | 79 ++++++++++++
.../service/impl/ActivePopUpServiceImpl.java | 120 ++++++++++++++++++
.../activePrice/entity/ActivePriceOil.java | 8 +-
.../impl/ActivePriceOilServiceImpl.java | 6 +
.../service/impl/ActivePriceServiceImpl.java | 6 +
.../impl/ActiveSubPriceServiceImpl.java | 6 +
.../ActiveUserConsumeController.java | 2 +-
.../ActiveUserRechargeController.java | 2 +-
20 files changed, 768 insertions(+), 61 deletions(-)
create mode 100644 fuintAdmin/src/api/EventMarketing/activePopUp.js
create mode 100644 fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activePopUp/controller/ActivePopUpController.java
create mode 100644 fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activePopUp/entity/ActivePopUp.java
create mode 100644 fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activePopUp/entity/ActivePopUpChild.java
create mode 100644 fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activePopUp/mapper/ActivePopUpChildMapper.java
create mode 100644 fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activePopUp/mapper/ActivePopUpMapper.java
create mode 100644 fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activePopUp/service/ActivePopUpChildService.java
create mode 100644 fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activePopUp/service/ActivePopUpService.java
create mode 100644 fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activePopUp/service/impl/ActivePopUpChildServiceImpl.java
create mode 100644 fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activePopUp/service/impl/ActivePopUpServiceImpl.java
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 @@