From 76926ff6513f9fe1567e5ac71feab719c7529be2 Mon Sep 17 00:00:00 2001 From: jevononlie <728254585@qq.com> Date: Fri, 26 Apr 2024 18:43:20 +0800 Subject: [PATCH] =?UTF-8?q?bug=20=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config.ts | 2 +- src/pages/booking/booking.vue | 4 ++-- src/pages/orderList/components/OrderItem.vue | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/config.ts b/src/config.ts index b2075be..2783d17 100644 --- a/src/config.ts +++ b/src/config.ts @@ -9,7 +9,7 @@ const config = { // 开发 develop: { - baseUrl: 'http://localhost:8808', + baseUrl: 'http://222.71.165.188:8808', }, // 体验 trial: { diff --git a/src/pages/booking/booking.vue b/src/pages/booking/booking.vue index 425849f..aa1d899 100644 --- a/src/pages/booking/booking.vue +++ b/src/pages/booking/booking.vue @@ -192,8 +192,8 @@ const handleBooking = async () => { categoryList.forEach((e) => { if (e.selected) { const obj = { - productId: e.productId, - recoveryPrice: e.recoveryPrice, + productId: e.id, + recoveryPrice: e.recoveryPrice || '', } orderDetails.push(obj) } diff --git a/src/pages/orderList/components/OrderItem.vue b/src/pages/orderList/components/OrderItem.vue index 3ef8015..463505c 100644 --- a/src/pages/orderList/components/OrderItem.vue +++ b/src/pages/orderList/components/OrderItem.vue @@ -51,8 +51,8 @@ const getMemberOrderData = async () => { e.appointmentTime = str + ' ' + start + '-' + end if (e.orderDetails) { e.orderDetails.forEach((q) => { - const arr = JSON.parse(q.product.photo) - const imgUrl = serviceDomain + arr[0].url + const arr = q.product?.photo && JSON.parse(q.product.photo) || [] + const imgUrl = serviceDomain + arr[0]?.url q.imgUrl = imgUrl }) } else {