From e28b9e48bb71da8f2ce647f5d11a648a24716e5f Mon Sep 17 00:00:00 2001 From: cun-nan <19819293608@163.com> Date: Fri, 20 Sep 2024 09:07:19 +0800 Subject: [PATCH] 9.20 --- .../order/dto/CardBalanceChangeDto.java | 4 +- .../controller/ClientBalanceController.java | 2 +- gasStation-uni/pages/index/index.vue | 31 ++--- gasStation-uni/pagesHome/MyCard/MyCard.vue | 2 +- .../pagesHome/cardDetails/detailed.vue | 130 ++++++++++++++++-- .../pagesHome/cardDetails/index.vue | 41 +++++- .../pagesHome/memberRecharge/index.vue | 4 +- 7 files changed, 169 insertions(+), 45 deletions(-) diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/dto/CardBalanceChangeDto.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/dto/CardBalanceChangeDto.java index 75c6c8884..5fb53dddd 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/dto/CardBalanceChangeDto.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/dto/CardBalanceChangeDto.java @@ -3,7 +3,9 @@ package com.fuint.business.order.dto; import com.fuint.business.order.entity.CardBalanceChange; import lombok.Data; +import java.util.Date; + @Data public class CardBalanceChangeDto extends CardBalanceChange { - private String startTime; + private Date startTime; } diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/module/clientApi/controller/ClientBalanceController.java b/fuintBackend/fuint-application/src/main/java/com/fuint/module/clientApi/controller/ClientBalanceController.java index adf4af491..1dc002e9e 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/module/clientApi/controller/ClientBalanceController.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/module/clientApi/controller/ClientBalanceController.java @@ -354,7 +354,7 @@ public class ClientBalanceController extends BaseController { lambdaQueryWrapper.eq(CardBalanceChange::getChangeType, order.getChangeType()); } if (ObjectUtil.isNotEmpty(order.getStartTime())) { - DateTime parse = DateUtil.parse(order.getStartTime(), DatePattern.NORM_MONTH_FORMATTER); + DateTime parse = new DateTime(order.getStartTime()); DateTime dateTime = DateUtil.beginOfMonth(parse); DateTime end = DateUtil.endOfMonth(parse); lambdaQueryWrapper.between(CardBalanceChange::getCreateTime, dateTime, end); diff --git a/gasStation-uni/pages/index/index.vue b/gasStation-uni/pages/index/index.vue index e265683fa..511f45ddd 100644 --- a/gasStation-uni/pages/index/index.vue +++ b/gasStation-uni/pages/index/index.vue @@ -206,7 +206,6 @@ let staffId = ""; let userId = ""; let type = ""; - console.log(111); if (str.includes("&")) { let arr = str.split("&"); arr.forEach(item => { @@ -364,7 +363,7 @@ method: 'get', params: params }).then(res => { - console.log("11111" + res) + console.log("366" + res) if (res.code == 200 && res.data == 1) { this.shows = true } else { @@ -383,7 +382,7 @@ chainStoreId: this.chainStoreId, } }).then(res => { - console.log("11111" + res) + console.log("385" + res) if (res.code == 200 && res.data == true) { this.shows = false uni.showToast({ @@ -413,7 +412,7 @@ url: 'business/marketingActivity/activeNewlyweds/applet', method: 'get', }).then(res => { - console.log("11111" + res) + console.log("415" + res) }) }, isExistStoreId() { @@ -440,13 +439,13 @@ } }, fail(err) { - console.log('jujuel', err); + console.log('jujuel,442', err); }, complete(ress) { }, withSubscriptions(resx) { - console.log('4', resx); + console.log('448', resx); } }) @@ -486,9 +485,6 @@ let that = this; uni.getStorageInfo({ success(res) { - console.log(res) - console.log(res.keys); - console.log(res.limitSize); let size = res.currentSize; if (size < 1024) { that.storageSize = size + ' B'; @@ -502,7 +498,7 @@ }, // 判断token是否与当前连锁店id相同 async getTheJudgmentIsTheSame() { - console.log(this.AppToken, 547); + console.log(this.AppToken, 501); // 判断是否登录 if (!this.AppToken) { return; @@ -549,7 +545,6 @@ scopes: 'auth_base', success: res => { const authCode = res.authCode; - console.log(res) request({ url: "clientApi/sign/alipayLogin/getUserid2", method: 'post', @@ -558,7 +553,6 @@ storeId: uni.getStorageSync("storeId"), }, }).then((resp) => { - console.log(resp, 85412); if (!resp.data) { uni.removeStorageSync("App-Token"); } @@ -629,7 +623,6 @@ }, }).then((response) => { - console.log(response, "2154"); // uni.showToast({ // title:"121984:"+storeId // }) @@ -639,7 +632,6 @@ _this.store = response.data.store uni.setStorageSync("storeId", response.data.store.id) uni.setStorageSync("chainStoreId", response.data.store.chainStoreId) - console.log(uni.getStorageSync("chainStoreId")); if (response.data.store.welfare) { if (response.data.store.welfare.includes(",")) { _this.welfare = response.data.store.welfare @@ -690,7 +682,6 @@ let params = { storeId: uni.getStorageSync("storeId") } - console.log(uni.getStorageSync("storeId")); request({ url: 'business/petrolStationManagement/oilNumber/getList2', method: 'get', @@ -698,14 +689,12 @@ }).then((res) => { if (res.code == 200) { this.oilTypeList = res.data.records - // console.log("aaabbb", this.oilTypeList) if (this.oilTypeList.length > 0) { this.oilInfo.oilName = this.oilTypeList[0].oilName, this.oilInfo.oilPrice = this.oilTypeList[0].oilPrice, this.oilInfo.gbPrice = this.oilTypeList[0].gbPrice } let oilData = [] - console.log(this.oilTypeList); this.oilTypeList.forEach(res => { let data = { id: res.numberId, @@ -717,15 +706,15 @@ }) this.columns = [oilData] - console.log(this.oilTypeList, '728'); + console.log(this.oilTypeList, '710'); } }) }, confirm(e) { console.log('选中的油号', e); - this.oilInfo.oilName = e.value[0].label, - this.oilInfo.oilPrice = e.value[0].oilPrice, - this.oilInfo.gbPrice = e.value[0].gbPrice + this.oilInfo.oilName = e.value[0].label + this.oilInfo.oilPrice = e.value[0].oilPrice + this.oilInfo.gbPrice = e.value[0].gbPrice this.show = false }, diff --git a/gasStation-uni/pagesHome/MyCard/MyCard.vue b/gasStation-uni/pagesHome/MyCard/MyCard.vue index f91f813ab..0d1df4876 100644 --- a/gasStation-uni/pagesHome/MyCard/MyCard.vue +++ b/gasStation-uni/pagesHome/MyCard/MyCard.vue @@ -79,7 +79,7 @@ }, onShow() { this.query.chainStoreId = uni.getStorageSync('chainStoreId'); - this.getCardFuleRecords(); + // this.getCardFuleRecords(); this.getUserBalance() }, methods: { diff --git a/gasStation-uni/pagesHome/cardDetails/detailed.vue b/gasStation-uni/pagesHome/cardDetails/detailed.vue index 545f80124..3ef06cbd9 100644 --- a/gasStation-uni/pagesHome/cardDetails/detailed.vue +++ b/gasStation-uni/pagesHome/cardDetails/detailed.vue @@ -4,38 +4,45 @@ 储值卡 当前余额(元) - 123456.98 + {{cardBalance.cardBalance || 0}} 类型筛选 全部时间 - + - + + - 会员消费 - -199.00 + 会员消费 + 会员充值 + {{item.giveBalance ? (item.balance + item.giveBalance) : item.balance}} + 储值卡 - 余额123456.98 + 余额{{item.afterTheChange}} - 中建锦绣二期站 - 2024-09-09 16:45:09 + {{item.storeName}} + {{item.createTime}} - + + + + + + +