master
jevononlie 7 months ago
parent d02bcb1946
commit 0488ee6396

@ -31,14 +31,14 @@ const getMemberOrderByIdData = async (orderId) => {
const data = res.data
if (data.recyclerInfo) {
const arr = JSON.parse(data.recyclerInfo.headIcon)
const imgUrl = serviceDomain + arr[0].url
const arr = data.recyclerInfo.headIcon && JSON.parse(data.recyclerInfo.headIcon) || []
const imgUrl = serviceDomain + arr[0]?.url
data.recyclerInfo.imgUrl = imgUrl
}
if (data.recycleStationInfo) {
const arr = JSON.parse(data.recycleStationInfo.stationImg)
const imgUrl = serviceDomain + arr[0].url
const arr = data.recycleStationInfo.stationImg && JSON.parse(data.recycleStationInfo.stationImg) || []
const imgUrl = serviceDomain + arr[0]?.url
data.recycleStationInfo.imgUrl = imgUrl
}
@ -50,8 +50,8 @@ const getMemberOrderByIdData = async (orderId) => {
isOderTypeDZ.value = data.orderType?.code == '520193532170867013' || false
data.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
})
//
@ -119,8 +119,10 @@ const handleCancleOrder = () => {
<image class="img-url" :src="item.imgUrl"></image>
<view class="name">{{ item.product.name }}</view>
</view>
<view class="recovery-price marginLeft50" v-if="item.actualRecoveryPrice">{{ item.actualRecoveryPrice }}</view>
<view class="recovery-weight marginLeft50" v-if="item.productActualWeight">{{ item.productActualWeight }}</view>
<view class="recovery-price marginLeft50" v-if="item.actualRecoveryPrice">{{
item.actualRecoveryPrice }}</view>
<view class="recovery-weight marginLeft50" v-if="item.productActualWeight">{{
item.productActualWeight }}千克</view>
</view>
</view>
</template>
@ -213,8 +215,8 @@ const handleCancleOrder = () => {
</view>
<view class="item">
<view class="label">联系人</view>
<view class="val">{{ order.recycleStationInfo.contactPerson }}</view>
<view class="label">联系人电话</view>
<view class="val">{{ order.recycleStationInfo.recycleTel }}</view>
</view>
<view class="item">
<view class="label">营业时间</view>
@ -348,6 +350,7 @@ page {
font-size: 28rpx;
color: #3D3D3D;
}
.marginLeft50 {
margin-left: 50rpx;
}

@ -52,8 +52,8 @@ export const bannerList = [
},
]
// 文件路径
// export const serviceDomain = 'https://nxhs.cjyx.cc'
export const serviceDomain = 'http://222.71.165.188:8808'
export const serviceDomain = 'https://nxhs.cjyx.cc'
// export const serviceDomain = 'http://222.71.165.188:8808'
// export const serviceDomain = 'http://192.168.0.166:8808'
export const storage_userInfo = {
userType: {

Loading…
Cancel
Save