From e7b0b34176549cfec809c6b89c4cab0999e488b9 Mon Sep 17 00:00:00 2001 From: qingyiay <2386314947@qq.com> Date: 星期二, 28 三月 2023 16:40:56 +0800 Subject: [PATCH] 修改大部分问题 --- pages/driver-page/driver-index/driver-index.vue | 24 ++++++++++++++---------- 1 files changed, 14 insertions(+), 10 deletions(-) diff --git a/pages/driver-page/driver-index/driver-index.vue b/pages/driver-page/driver-index/driver-index.vue index 630c030..d8a4eba 100644 --- a/pages/driver-page/driver-index/driver-index.vue +++ b/pages/driver-page/driver-index/driver-index.vue @@ -172,6 +172,7 @@ // 鎶㈠崟妯℃�佹 qiangDanConfirm() { this.qiangDanContent = ''; + this.qiangDanShow = false; this.qiangDan(this.qiangDanOrderPlanId, this.fleetId); }, qiangDanCancel() { @@ -179,16 +180,19 @@ }, // 鎶㈠崟璇锋眰 qiangDan(id, fleetId) { - this.$reqPost('qiangDan', { orderPlanId: id, fleetId: fleetId }, 'params').then(res => { - if (res.code == 0) { - this.$u.toast('鎶㈠崟鎴愬姛'); - this.qiangDanShow = false; - this.qiangDanList(); - } else { - this.$u.toast(res.data ? res.data : '鎶㈠崟澶辫触'); - this.qiangDanShow = false; - } - }); + this.$reqPost('qiangDan', { orderPlanId: id, fleetId: fleetId }, 'params') + .then(res => { + if (res.code == 0) { + this.$u.toast('鎶㈠崟鎴愬姛'); + } else { + this.$u.toast(res.data ? res.data : '鎶㈠崟澶辫触'); + } + }) + .then(() => { + setTimeout(() => { + this.qiangDanList(); + }, 1000); + }); }, list3CardIconClick(value) { uni.navigateTo({ -- Gitblit v1.9.1