Merge remote-tracking branch 'origin/jihan_0920new_护理服务、商城、积分兑换、在线问诊功能分支' into jihan_0920new_护理服务、商城、积分兑换、在线问诊功能分支

This commit is contained in:
shidongli 2023-10-12 17:39:50 +08:00
commit a69b62b05c

View File

@ -247,13 +247,14 @@ export default {
}, },
// //
beforeUpload(file) { beforeUpload(file) {
console.log(file)
if (this.types == "posterVideoUrl" || this.types == "itemDirectoryUrl") { if (this.types == "posterVideoUrl" || this.types == "itemDirectoryUrl") {
const reader = new FileReader(); const reader = new FileReader();
this.previews.data = file; this.previews.data = file;
this.videoForm.showVideoPath = URL.createObjectURL(file); this.videoForm.showVideoPath = URL.createObjectURL(file);
reader.readAsDataURL(file); reader.readAsDataURL(file);
reader.onload = () => { reader.onload = () => {
// this.options.img = reader.result;
}; };
} else { } else {
if (file.type.indexOf("image/") == -1) { if (file.type.indexOf("image/") == -1) {
@ -266,7 +267,7 @@ export default {
this.previews.url = URL.createObjectURL(file); this.previews.url = URL.createObjectURL(file);
reader.readAsDataURL(file); reader.readAsDataURL(file);
reader.onload = () => { reader.onload = () => {
// this.options.img = reader.result; this.options.img = reader.result;
}; };
} }
} }