Commit 82ad33b1 by 王志慧

商品添加默认图片

1 parent 427c905c
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
<div class="goodsItemCon" v-for="(item, index) in purchaseList" <div class="goodsItemCon" v-for="(item, index) in purchaseList"
:class="[{ active: item.active }, { last: index === purchaseList.length - 1 }]" :key="index"> :class="[{ active: item.active }, { last: index === purchaseList.length - 1 }]" :key="index">
<!-- 图片{{ item.thumbUrl }} --> <!-- 图片{{ item.thumbUrl }} -->
<img :src="item.goodsInfo.thumbUrl" class="img" alt="" /> <img :src="item.goodsInfo.thumbUrl?item.goodsInfo.thumbUrl:defaultImg" class="img" alt="" />
<span class="goodsName one-line-ellipsis">{{ item.upgradeGoods.upgradeGoodsName }}</span> <span class="goodsName one-line-ellipsis">{{ item.upgradeGoods.upgradeGoodsName }}</span>
<!-- 名称{{ item.goodsName }} --> <!-- 名称{{ item.goodsName }} -->
<span class="purchaseOrderCount">编码:{{ item.upgradeGoods.type }}</span> <span class="purchaseOrderCount">编码:{{ item.upgradeGoods.type }}</span>
...@@ -131,6 +131,7 @@ export default { ...@@ -131,6 +131,7 @@ export default {
data() { data() {
return { return {
emptyImgUrl: require('@/assets/empty.png'), emptyImgUrl: require('@/assets/empty.png'),
defaultImg:require('@/assets/default.png'),
addressComVisible: false, addressComVisible: false,
addressInfo: {}, addressInfo: {},
purchaseList: [], purchaseList: [],
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!