master
jevononlie 6 months ago
parent b7c3d9ade9
commit 76926ff651

@ -9,7 +9,7 @@
const config = {
// 开发
develop: {
baseUrl: 'http://localhost:8808',
baseUrl: 'http://222.71.165.188:8808',
},
// 体验
trial: {

@ -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)
}

@ -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 {

Loading…
Cancel
Save