From 47c3668aaab9d5f772c7d7e317d2bfa4b1cbeb28 Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期一, 25 九月 2023 17:49:45 +0800
Subject: [PATCH] 修改首页数据不刷新 超出预约时间提示
---
pages/driver-page/appointment/appointment.vue | 18 +++++++++++-------
1 files changed, 11 insertions(+), 7 deletions(-)
diff --git a/pages/driver-page/appointment/appointment.vue b/pages/driver-page/appointment/appointment.vue
index 81aaec2..4837339 100644
--- a/pages/driver-page/appointment/appointment.vue
+++ b/pages/driver-page/appointment/appointment.vue
@@ -59,7 +59,6 @@
};
},
onLoad(params) {
- console.log('appointment,params', params);
if (params.type == '鍏ュ満鐢宠') {
this.isRCSQ = true;
this.rcsqData.originalYyId = params.yyId;
@@ -102,11 +101,13 @@
// 棰勭害
yuYueClick(id) {
this.yuYuePostParams.yuYueId = id;
- this.$reqPost('yuYue', { takeCoalId: this.yuYuePostParams.takeCoalId, yuYueId: this.yuYuePostParams
- .yuYueId }, 'params').then(res => {
+ this.$reqPost('yuYue', {
+ takeCoalId: this.yuYuePostParams.takeCoalId,
+ yuYueId: this.yuYuePostParams.yuYueId
+ }, 'params').then(res => {
if (res.code == 0) {
- this.$u.toast('棰勭害鎴愬姛锛�');
-
+ this.yuYueList();
+ this.$u.toast('棰勭害鎴愬姛');
let timer = setTimeout(() => {
uni.navigateBack({
delta: 1
@@ -115,8 +116,6 @@
} else {
this.$u.toast(res.msg ? res.msg : '棰勭害澶辫触');
}
- }).then(() => {
- this.yuYueList();
})
},
// 鍏ュ満鐢宠
@@ -127,6 +126,11 @@
this.$reqPost('saveRCSQ', this.rcsqData, 'json').then(res => {
if (res.code == 0) {
this.$u.toast('鍏ュ満鐢宠鎴愬姛');
+ let timer = setTimeout(() => {
+ uni.navigateBack({
+ delta: 1
+ });
+ }, 500);
} else {
this.$u.toast(res.msg ? res.msg : '鍏ュ満鐢宠澶辫触锛岃绋嶅悗閲嶈瘯');
}
--
Gitblit v1.9.1