Commit 101805f6 by 李伟康

兼容后端数据

1 parent c26a6c67
...@@ -60,22 +60,14 @@ ...@@ -60,22 +60,14 @@
</template> </template>
</view> </view>
</view> </view>
<template v-if="isByd"> <image
<image class="content-image"
class="content-image" :src="contentUrl()"
:src="views[0].detailUrl" />
/> <image
</template> class="content-bg"
<template v-else> :src="receptionBg(customerInfo.carModelId)"
<image />
class="content-image"
:src="contentUrl()"
/>
<image
class="content-bg"
: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!