优化商品选择界面的图片展示

This commit is contained in:
季圣华 2023-07-07 00:00:14 +08:00
parent 810978ff0e
commit 6a50552cbd

View File

@ -300,16 +300,10 @@
this.$refs.modalForm.add()
this.$refs.modalForm.title = '新增商品'
},
getImgUrl(imgName) {
getImgUrl(imgName, type) {
if(imgName && imgName.split(',')) {
return getFileAccessHttpUrl('systemConfig/static/' + imgName.split(',')[0])
} else {
return ''
}
},
getImgMiniUrl(imgName) {
if(imgName && imgName.split(',')) {
return getFileAccessHttpUrl('systemConfig/static/mini/' + imgName.split(',')[0])
type = type? type + '/':''
return getFileAccessHttpUrl('systemConfig/static/' + type + imgName.split(',')[0])
} else {
return ''
}