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 {