From a59ff44b2eaa7020f0529632d9ec064c4dc38e27 Mon Sep 17 00:00:00 2001
From: rk <94314517@qq.com>
Date: 星期二, 28 四月 2026 22:08:46 +0800
Subject: [PATCH] Merge branch 'master' of http://139.186.142.91:10010/r/productDev/gtzxinglijicun

---
 app/pages/wallet/wallet.vue |   35 +++++++++++++++++++++++++++++------
 1 files changed, 29 insertions(+), 6 deletions(-)

diff --git a/app/pages/wallet/wallet.vue b/app/pages/wallet/wallet.vue
index de6359a..258e43c 100644
--- a/app/pages/wallet/wallet.vue
+++ b/app/pages/wallet/wallet.vue
@@ -209,9 +209,21 @@
 		methods:{
 			bindChange1 (e) {
 				this.tempStartDate = e.detail.value || null
+				if (this.tempStartDate && this.tempEndDate) {
+					if (new Date(this.tempStartDate + ' 00:00:00') > new Date(this.tempEndDate + ' 00:00:00')) {
+						this.tempStartDate = this.tempEndDate
+						uni.showToast({ title: '寮�濮嬫棩鏈熶笉鑳藉ぇ浜庣粨鏉熸棩鏈�', icon: 'none' })
+					}
+				}
 			},
 			bindChange2 (e) {
-				this.tempEndDate= e.detail.value || null
+				this.tempEndDate = e.detail.value || null
+				if (this.tempStartDate && this.tempEndDate) {
+					if (new Date(this.tempStartDate + ' 00:00:00') > new Date(this.tempEndDate + ' 00:00:00')) {
+						this.tempEndDate = this.tempStartDate
+						uni.showToast({ title: '寮�濮嬫棩鏈熶笉鑳藉ぇ浜庣粨鏉熸棩鏈�', icon: 'none' })
+					}
+				}
 			},
 			formatter(type, value) {
                 if (type === 'year') {
@@ -231,14 +243,19 @@
 					this.hasNext = true
 					this.dataList=[]
 				}
-				console.log('page')
+				console.log({
+						startTime: this.startDate || this.defaultStartDate,
+						endTime: this.endDate || this.defaultEndDate,
+						type: this.type === 1?0:(this.type === 2?1:(this.type === 3?2:'')),
+						optType: this.active === 1?1:(this.active === 2?-1:'')
+					})
 				this.$u.api.driverPage({
 					capacity: 10,
 					model: {
 						startTime: this.startDate || this.defaultStartDate,
 						endTime: this.endDate || this.defaultEndDate,
-						type: this.active === 1?0:(this.active===2?1:''), 
-						objType: this.type === 1?16:( this.type === 2?17:( this.type === 3?25: (this.type === 4?1: ''))), 
+						type: this.type === 1?0:(this.type === 2?1:(this.type === 3?2:'')),
+						optType: this.active === 1?1:(this.active === 2?-1:'')
 					},
 					page: this.currentPage
 				}).then(res => {
@@ -276,6 +293,12 @@
 			},
 			comfirmDate(flag){
 				if (flag) {
+					if (!this.tempStartDate || !this.tempEndDate) {
+						return uni.showToast({
+							title: '璇烽�夋嫨璧锋鏃ユ湡',
+							icon: 'none'
+						})
+					}
 					if(new Date(this.tempEndDate+" 00:00:00").getTime() < new Date(this.tempStartDate+" 00:00:00").getTime()){
 						return uni.showToast({
 							title:'鏃ユ湡鑼冨洿涓嶆纭�',
@@ -287,8 +310,8 @@
 				} else {
 					this.startDate = null
 					this.endDate = null
-					this.tempStartDate = this.defaultStartDate
-					this.tempEndDate = this.defaultEndDate
+					this.tempStartDate = null
+					this.tempEndDate = null
 				}
 				this.getFirstPageData()
 				this.getShopSummary()

--
Gitblit v1.9.3