Commit 82ad33b1 by 王志慧

商品添加默认图片

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