Commit dfeb121d by caoyanzhi

fix: 修复发货单列表礼品图片不显示的bug

parent d1969c1a
......@@ -31,7 +31,7 @@
<el-table-column label="商品" width="300">
<template slot-scope="{ row }">
<div class="goods-info">
<img class="imgs-style" :src="row.giftImgUrl" alt="" />
<img class="imgs-style" :src="row.giftImgUrl[0]" alt="" />
<div class="goods-text">
<div class="goods-text-name">
{{row.giftName}}
......@@ -251,7 +251,10 @@ export default {
};
this.loading = true;
let { result: { result, totalCount } } = await getDelivery(query).finally(() => this.loading = false);
this.list = result || [];
this.list = (result || []).map(el => {
el.giftImgUrl = typeof el.giftImgUrl == 'string' ? el.giftImgUrl.split(',') : [];
return el;
});
this.pager.totalCount = totalCount;
if(this.type === 0) this.$emit('count', totalCount);
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment