fix: 兼容旧版本图片格式
parent
83beb81a3b
commit
8b15cfb0b1
|
@ -586,7 +586,6 @@ export default {
|
||||||
if (!this.imgList) {
|
if (!this.imgList) {
|
||||||
this.imgList = [this.skuDetail.original];
|
this.imgList = [this.skuDetail.original];
|
||||||
}
|
}
|
||||||
console.log(this.imgList);
|
|
||||||
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -287,8 +287,7 @@
|
||||||
.ivu-table-overflowX {
|
.ivu-table-overflowX {
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
}
|
}
|
||||||
"
|
">
|
||||||
@mouseenter="handleMouseEnter">
|
|
||||||
<template slot="sn" slot-scope="{ row }">
|
<template slot="sn" slot-scope="{ row }">
|
||||||
<Input v-model="row.sn" clearable placeholder="请输入货号"
|
<Input v-model="row.sn" clearable placeholder="请输入货号"
|
||||||
@on-change="updateSkuTable(row, 'sn')"/>
|
@on-change="updateSkuTable(row, 'sn')"/>
|
||||||
|
@ -530,6 +529,7 @@ export default {
|
||||||
total: 0,
|
total: 0,
|
||||||
goodsVideo: "",
|
goodsVideo: "",
|
||||||
showContent: false,
|
showContent: false,
|
||||||
|
loadingVideo: false,
|
||||||
listImages: [],
|
listImages: [],
|
||||||
newSkuValues: [],
|
newSkuValues: [],
|
||||||
contentImage: "",
|
contentImage: "",
|
||||||
|
@ -721,6 +721,13 @@ export default {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
// ship大小不正确
|
||||||
|
handleVideoMaxSize(file) {
|
||||||
|
this.$Notice.warning({
|
||||||
|
title: "超过文件大小限制",
|
||||||
|
desc: "视频大小不能超过10MB",
|
||||||
|
});
|
||||||
|
},
|
||||||
onAddSku(index) {
|
onAddSku(index) {
|
||||||
if (!this.newSkuValues[index]) {
|
if (!this.newSkuValues[index]) {
|
||||||
this.$Message.error('请输入规格值')
|
this.$Message.error('请输入规格值')
|
||||||
|
@ -953,6 +960,7 @@ export default {
|
||||||
},
|
},
|
||||||
// 商品图片上传成功
|
// 商品图片上传成功
|
||||||
handleSuccessGoodsPicture(res, file) {
|
handleSuccessGoodsPicture(res, file) {
|
||||||
|
this.$Spin.hide();
|
||||||
if (file.response) {
|
if (file.response) {
|
||||||
file.url = file.response.result;
|
file.url = file.response.result;
|
||||||
this.baseInfoForm.goodsGalleryFiles.push(file.url);
|
this.baseInfoForm.goodsGalleryFiles.push(file.url);
|
||||||
|
|
Loading…
Reference in New Issue