From f8a1fdea61cde6c765c48544a9bf27bd5df80a06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BD=90=E5=A4=A9=E5=A4=A7=E5=9C=A3?= <17615834396@163.com> Date: Mon, 18 Dec 2023 15:10:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=B0=8F=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E7=AB=AF=E7=9A=84=E6=B4=BB=E5=8A=A8=E5=B1=95=E7=A4=BA=E6=96=B9?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/ActiveConsumptionServiceImpl.java | 12 +- .../vo/ActiveConsumptionAppletVO.java | 8 + .../impl/ActiveDiscountServiceImpl.java | 11 +- .../vo/ActiveDiscountAppletVO.java | 8 + .../impl/ActiveFullminusServiceImpl.java | 10 +- .../vo/ActiveFullminusAppletVO.java | 8 + .../impl/ActiveNewlywedsServiceImpl.java | 6 +- .../impl/ActiveRecommendServiceImpl.java | 10 +- .../service/impl/CardValueServiceImpl.java | 7 +- .../cardValue/vo/CardValueAppletVO.java | 9 ++ gasStation-uni/pagesHome/Activity/index.vue | 17 +-- gasStation-uni/pagesHome/activeIn/index.vue | 140 +++++++++++++++++- 12 files changed, 214 insertions(+), 32 deletions(-) diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeConsumption/service/impl/ActiveConsumptionServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeConsumption/service/impl/ActiveConsumptionServiceImpl.java index 5fc6b4984..9a3fd1986 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeConsumption/service/impl/ActiveConsumptionServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeConsumption/service/impl/ActiveConsumptionServiceImpl.java @@ -243,13 +243,17 @@ public class ActiveConsumptionServiceImpl extends ServiceImpl oilNameList = new ArrayList<>(); //油号名字 - String oilName = ""; for (Integer id : s.getAdaptOil()) { - oilName += oilNameService.selectOilNameById(id).getOilName()+","; + String oilName = oilNameService.selectOilNameById(id).getOilName(); + oilNameList.add(oilName); } - activeConsumptionAppletVO.setActiveDescribe(s.getName() + ":"+"本活动"+oilName+"油品可用,消费需满"+ - s.getParticipationConditionMoney()+"元,"+ adaptUserType+"可用,赠送券:"+card+" 赠送物品:"+goods+" 赠送积分:"+s.getPoints()+"积分。"); + activeConsumptionAppletVO.setOilName(oilNameList); + activeConsumptionAppletVO.setPoints(s.getPoints()); + activeConsumptionAppletVO.setAdaptUserType(adaptUserType); + activeConsumptionAppletVO.setActiveDescribe(s.getName() + ":"+"本活动消费需满"+ + s.getParticipationConditionMoney()+"元,赠送券:"+card+" 赠送物品:"+goods+"。"); return activeConsumptionAppletVO; }).collect(Collectors.toList()); return appletVOList; diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeConsumption/vo/ActiveConsumptionAppletVO.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeConsumption/vo/ActiveConsumptionAppletVO.java index b53a7965c..88715348f 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeConsumption/vo/ActiveConsumptionAppletVO.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeConsumption/vo/ActiveConsumptionAppletVO.java @@ -3,11 +3,19 @@ package com.fuint.business.marketingActivity.activeConsumption.vo; import lombok.Data; import java.io.Serializable; +import java.util.List; @Data public class ActiveConsumptionAppletVO implements Serializable { //活动描述 private String activeDescribe; + //活动时间 private String time; + //参与油品 + private List oilName; + //积分 + private Integer points; + //可用用户 + private String adaptUserType; } diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeDiscount/service/impl/ActiveDiscountServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeDiscount/service/impl/ActiveDiscountServiceImpl.java index d2393c7bc..5744b76b3 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeDiscount/service/impl/ActiveDiscountServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeDiscount/service/impl/ActiveDiscountServiceImpl.java @@ -29,6 +29,7 @@ import org.springframework.transaction.annotation.Transactional; import javax.annotation.Resource; import java.io.Serializable; import java.text.SimpleDateFormat; +import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.stream.Collectors; @@ -225,9 +226,10 @@ public class ActiveDiscountServiceImpl extends ServiceImpl oilNameList = new ArrayList<>(); for (Integer id : s.getAdaptOil()) { - oilName += oilNameService.selectOilNameById(id).getOilName() + ","; + String oilName = oilNameService.selectOilNameById(id).getOilName(); + oilNameList.add(oilName); } //适用用户名 String adaptUserType = ""; @@ -242,7 +244,10 @@ public class ActiveDiscountServiceImpl extends ServiceImpl oilName; + //积分 + private Integer points; + //可用用户 + private String adaptUserType; } diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeFullminus/service/impl/ActiveFullminusServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeFullminus/service/impl/ActiveFullminusServiceImpl.java index 3f78c2f9a..f150597d3 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeFullminus/service/impl/ActiveFullminusServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeFullminus/service/impl/ActiveFullminusServiceImpl.java @@ -28,6 +28,7 @@ import org.springframework.stereotype.Service; import javax.annotation.Resource; import java.io.Serializable; import java.text.SimpleDateFormat; +import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.stream.Collectors; @@ -225,9 +226,10 @@ public class ActiveFullminusServiceImpl extends ServiceImpl oilNameList = new ArrayList<>(); for (Integer id : s.getAdaptOil()) { - oilName += oilNameService.selectOilNameById(id).getOilName() + ","; + String oilName = oilNameService.selectOilNameById(id).getOilName(); + oilNameList.add(oilName); } //适用用户名 String adaptUserType = ""; @@ -242,7 +244,9 @@ public class ActiveFullminusServiceImpl extends ServiceImpl oilName; + //积分 + private Integer points; + //可用用户 + private String adaptUserType; } diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeNewlyweds/service/impl/ActiveNewlywedsServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeNewlyweds/service/impl/ActiveNewlywedsServiceImpl.java index f1895a551..e8e979b80 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeNewlyweds/service/impl/ActiveNewlywedsServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeNewlyweds/service/impl/ActiveNewlywedsServiceImpl.java @@ -251,7 +251,11 @@ public class ActiveNewlywedsServiceImpl extends ServiceImpl oilName; + //积分 + private Integer points; + //成长值 + private Integer growaValue; + //可用用户 + private String adaptUserType; } diff --git a/gasStation-uni/pagesHome/Activity/index.vue b/gasStation-uni/pagesHome/Activity/index.vue index fa7863290..3d16a4771 100644 --- a/gasStation-uni/pagesHome/Activity/index.vue +++ b/gasStation-uni/pagesHome/Activity/index.vue @@ -7,14 +7,11 @@ - - - + + 立即前往 - - 最新活动 - @@ -25,15 +22,15 @@ {{item.name || "活动标题"}} - - + {{item.des || "内容"}} + 活动时间 @@ -241,4 +238,4 @@ font-weight: 400; color: #777777; } - \ No newline at end of file + diff --git a/gasStation-uni/pagesHome/activeIn/index.vue b/gasStation-uni/pagesHome/activeIn/index.vue index deb197d77..e8962b500 100644 --- a/gasStation-uni/pagesHome/activeIn/index.vue +++ b/gasStation-uni/pagesHome/activeIn/index.vue @@ -14,21 +14,146 @@ - - 活动介绍 - 活动介绍活动介绍活动介绍 + + 活动介绍 + {{item.activeDescribe || ""}} + + 活动时间 + {{item.time}} + 参与油品 - #95 + {{item}} - 参与会员:普通会员、银牌会员、V2 + 参与会员:{{item.adaptUserType}} + + 获得折扣:赠送{{item.points}}积分 + + + + + 活动介绍 + {{item.discountActiveDescribe || ""}} + + 活动时间 + {{item.time}} + + 参与油品 + + {{item}} + + + + + 参与会员:{{item.adaptUserType}} + + + + + + 活动介绍 + {{item.fullminusActiveDescribe || ""}} + + 活动时间 + {{item.time}} + + 参与油品 + + {{item}} + + + + + 参与会员:{{item.adaptUserType}} + + + + + + 活动介绍 + {{item.discountActiveDescribe || ""}} + + 活动时间:{{item.time}} + + + + + + 参与会员:{{item.adaptUserType}} + + + + 获得折扣:赠送{{item.points}}积分 + + + + 获得折扣:赠送{{item.growaValue}}成长值 + + + + + 活动介绍 + {{datas.newlywedsActiveDescribe || ""}} + + 活动时间 + {{datas.time}} + + + + + + + + 赠送{{datas.point}}积分 + + + + 赠送{{datas.growValue}}成长值 + + + + + 活动介绍 + {{datas.recommendActiveDescribeIn || ""}} + {{datas.recommendActiveDescribeOut || ""}} + + 活动时间:{{datas.time}} + + + + + + + 赠送{{datas.point}}积分 + + + + 赠送{{datas.growValue}}成长值 @@ -62,6 +187,7 @@ export default { data() { return { + oilName: [], title: '', datas: [], @@ -86,8 +212,8 @@ method: 'get', }).then(res => { if (res.code == 200) { - this.datas = res.data - uni.hideLoading(); + this.datas = res.data, + uni.hideLoading(); } })