From 7406be32979e90a730b5a2ac8d392892f71835d2 Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期一, 10 四月 2023 14:53:17 +0800
Subject: [PATCH] 修复称重不显示问题,优化信息提示

---
 pages/driver-page/appointment/appointment.vue |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/pages/driver-page/appointment/appointment.vue b/pages/driver-page/appointment/appointment.vue
index 791699b..42e79ca 100644
--- a/pages/driver-page/appointment/appointment.vue
+++ b/pages/driver-page/appointment/appointment.vue
@@ -78,6 +78,8 @@
 				uni.hideLoading();
 				if (res.code == 0) {
 					this.yuYueData = res.data;
+				} else {
+					this.$u.toast('鍔犺浇澶辫触');
 				}
 			});
 		},
@@ -96,11 +98,13 @@
 			this.$reqPost('yuYue', { takeCoalId: this.yuYuePostParams.takeCoalId, yuYueId: this.yuYuePostParams.yuYueId }, 'params').then(res => {
 				if (res.code == 0) {
 					this.$u.toast('棰勭害鎴愬姛锛�');
-					uni.navigateBack({
-						delta: 1
-					})
+					let timer = setTimeout(() => {
+						uni.navigateBack({
+							delta: 1
+						});
+					}, 1000);
 				} else {
-					this.$u.toast(res.data ? res.data : '棰勭害澶辫触');
+					this.$u.toast(res.msg ? res.msg : '棰勭害澶辫触');
 				}
 				setTimeout(() => {
 					this.yuYueList();
@@ -114,7 +118,9 @@
 			this.rcsqData.filedId = value.filedId;
 			this.$reqPost('saveRCSQ', this.rcsqData, 'json').then(res => {
 				if (res.code == 0) {
-					this.$u.toast('鏂板缓鍏ュ満鐢宠鎴愬姛銆�');
+					this.$u.toast('鍏ュ満鐢宠鎴愬姛');
+				} else {
+					this.$u.toast('鍏ュ満鐢宠澶辫触锛岃绋嶅悗閲嶈瘯');
 				}
 			});
 		}

--
Gitblit v1.9.1