Commit 101805f6 by 李伟康

兼容后端数据

1 parent c26a6c67
......@@ -60,22 +60,14 @@
</template>
</view>
</view>
<template v-if="isByd">
<image
class="content-image"
:src="views[0].detailUrl"
/>
</template>
<template v-else>
<image
class="content-image"
:src="contentUrl()"
/>
<image
class="content-bg"
:src="receptionBg(customerInfo.carModelId)"
/>
</template>
<image
class="content-image"
:src="contentUrl()"
/>
<image
class="content-bg"
:src="receptionBg(customerInfo.carModelId)"
/>
</view>
</view>
</template>
......@@ -198,8 +190,7 @@ export default {
},
contentUrl () {
let { views, customerInfo } = this
let isArray = Array.isArray(views)
return (isArray ? views[0].detailUrl : views[customerInfo.carModelId]) || require('@/assets/images/media/nothing.webp')
return (views.detailUrl ? views.detailUrl : views[customerInfo.carModelId]) || require('@/assets/images/media/nothing.webp')
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!