Commit 97af6295 by caoyanzhi

fix: 修复实物礼品多主图时列表中图片显示异常的bug

parent a845bf56
......@@ -59,7 +59,7 @@
<el-table-column label="礼品信息" width="350px">
<template slot-scope="scope">
<div class="img-text">
<dm-preview-img :img="scope.row.giftImgUrl" style="display:inline-block;border: 1px solid #dcdfe6;border-radius:4px;" width="58" height="58"></dm-preview-img>
<dm-preview-img :img="scope.row.giftImgUrl[0]" style="display:inline-block;border: 1px solid #dcdfe6;border-radius:4px;" width="58" height="58"></dm-preview-img>
<div class="text">
<div style="display:flex;flex-direction:column;justify-content:center;margin-top:8px">
<p class="goods-descript">
......@@ -315,6 +315,7 @@ export default {
giftPage(params).then(res =>{
this.tableData = res.result.result;
this.tableData.forEach(item =>{
item.giftImgUrl = typeof item.giftImgUrl == 'string' ? item.giftImgUrl.split(',') : [];
this.$set(item, 'visible', false);
});
this.total = res.result.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