From c38a156943fcadf9678aadca29e6245603f2dccd Mon Sep 17 00:00:00 2001 From: weipengfei <2187978347@qq.com> Date: Sat, 9 Dec 2023 18:48:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Businesses2.vue | 5 ++++- src/view/delivery/components/center.vue | 10 +++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/components/Businesses2.vue b/src/components/Businesses2.vue index 3a30179..d45ebd1 100644 --- a/src/components/Businesses2.vue +++ b/src/components/Businesses2.vue @@ -86,9 +86,12 @@ const loadOrderList = (pramas) => { }) } +const titleText = ref('') + onMounted(() => { // loadOrderList(); mitt.on('showBusinesses2', (e) => { + titleText.value = e.name; pages.value.type = e.type; isShow.value = !isShow.value; }) @@ -100,7 +103,7 @@ onMounted(() => {
-
订单列表
+
{{ titleText }} - 订单列表
关闭
{ }) } -const clickItem = (type) => { - mitt.emit('showBusinesses2', { type: type }) +const clickItem = (type, name) => { + mitt.emit('showBusinesses2', { type: type, name: name }) } onMounted(() => { @@ -44,17 +44,17 @@ onMounted(() => {
-
+
待取货({{ appStore.delivery.pending_order_count }})单
-
+
配送中({{ appStore.delivery.delivering_order_count }})单
-
+
已完成({{ appStore.delivery.finished_order_count }})单