From 10b0bf45153efd21f2d698668f44ee54a14c0973 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=9F=E5=B7=9D=E4=B8=9C?= Date: Mon, 14 Apr 2025 10:06:47 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=AE=A2=E5=8D=95=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/api.js | 6 ++++ pages.json | 16 +++++----- pages/index/index.vue | 4 +-- pages/order/order-info.vue | 65 +++++++++++++++++++++++++++++++------- 4 files changed, 69 insertions(+), 22 deletions(-) diff --git a/api/api.js b/api/api.js index 4f649f7..a10a0dd 100644 --- a/api/api.js +++ b/api/api.js @@ -55,6 +55,12 @@ class Api { let url = `${config.host}/worker/order_dispatch/countWorkbenchOrder`; return fetch.request('GET', url, {}, true) } + + // 订单详情 + static orderInfo(data) { + let url = `${config.host}/worker/order_dispatch/info`; + return fetch.request('GET', url, data, true) + } } export default Api diff --git a/pages.json b/pages.json index 5414964..618a8bf 100644 --- a/pages.json +++ b/pages.json @@ -1,13 +1,5 @@ { "pages": [ - { - "path" : "pages/workbench/workbench", - "style" : - { - "navigationBarTitleText" : "", - "navigationStyle": "custom" - } - }, { "path" : "pages/index/index", "style" : @@ -16,6 +8,14 @@ "navigationStyle": "custom" } }, + { + "path" : "pages/workbench/workbench", + "style" : + { + "navigationBarTitleText" : "", + "navigationStyle": "custom" + } + }, { "path" : "pages/user/login", "style" : diff --git a/pages/index/index.vue b/pages/index/index.vue index 90395c9..a42bdfe 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -2,14 +2,14 @@ - + - {{item.order_info.item_title}} + {{item.order_info.item_title}} 上门报价 平台已收款 diff --git a/pages/order/order-info.vue b/pages/order/order-info.vue index f4f8531..e8f66b4 100644 --- a/pages/order/order-info.vue +++ b/pages/order/order-info.vue @@ -1,48 +1,49 @@