html = '';
html += '<div style="position:relative"><img src="${imageDomain}/'+data+'@200w" /><span style="position:absolute; left:0; top:1%;">';
if(row.enumLabel == '新品'){
html += '<img style="display:block;width:30%;" src="/static/image/new.png"/>';
}else if(row.enumLabel == '热门'){
html += '<img style="display:block;width:30%;" src="/static/image/hot.png"/>';
}else if(row.enumLabel == '人气商品'){
html += '<img style="display:block;width:30%;" src="/static/image/stylish.png"/>';
}
html += '</span></div>';
return html;
在图片的左上角加上一个图片标签
最新推荐文章于 2022-09-28 16:41:02 发布