Commit 101805f6 by 李伟康

兼容后端数据

1 parent c26a6c67
...@@ -60,13 +60,6 @@ ...@@ -60,13 +60,6 @@
</template> </template>
</view> </view>
</view> </view>
<template v-if="isByd">
<image
class="content-image"
:src="views[0].detailUrl"
/>
</template>
<template v-else>
<image <image
class="content-image" class="content-image"
:src="contentUrl()" :src="contentUrl()"
...@@ -75,7 +68,6 @@ ...@@ -75,7 +68,6 @@
class="content-bg" class="content-bg"
:src="receptionBg(customerInfo.carModelId)" :src="receptionBg(customerInfo.carModelId)"
/> />
</template>
</view> </view>
</view> </view>
</template> </template>
...@@ -198,8 +190,7 @@ export default { ...@@ -198,8 +190,7 @@ export default {
}, },
contentUrl () { contentUrl () {
let { views, customerInfo } = this let { views, customerInfo } = this
let isArray = Array.isArray(views) return (views.detailUrl ? views.detailUrl : views[customerInfo.carModelId]) || require('@/assets/images/media/nothing.webp')
return (isArray ? views[0].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!