视频上传
This commit is contained in:
@@ -415,7 +415,7 @@
|
||||
console.log("this.voicesLoad", this.voicesLoad);
|
||||
if (this.voicesLoad >= 100) {
|
||||
this.voicesLoad = 99;
|
||||
this.voicesloading = true;
|
||||
this.voicesLoading = true;
|
||||
this.loading = true;
|
||||
// setTimeout( () => {this.voicesFlag = false}, 1000) // 一秒后关闭进度条
|
||||
}
|
||||
@@ -434,7 +434,7 @@
|
||||
this.voicesLoad = 100;
|
||||
setTimeout(() => {
|
||||
this.voicesFlag = false;
|
||||
this.voicesloading = false;
|
||||
this.voicesLoading = false;
|
||||
this.loading = false;
|
||||
this.$message.success("上传成功");
|
||||
}, 1000); // 一秒后关闭进度条
|
||||
@@ -454,10 +454,10 @@
|
||||
uploadVideo(event, file, fileList) {
|
||||
this.videoFlag = true; // 显示进度条
|
||||
this.videoLoad = parseInt(event.percent); // 动态获取文件上传进度
|
||||
console.log('this.loadProgress', this.videoLoad)
|
||||
console.log('this.videoLoad', this.videoLoad)
|
||||
if (this.videoLoad >= 100) {
|
||||
this.videoLoad = 99
|
||||
this.videoloading = true;
|
||||
this.videoLoading = true;
|
||||
this.loading = true
|
||||
// setTimeout( () => {this.progressFlag = false}, 1000) // 一秒后关闭进度条
|
||||
}
|
||||
@@ -475,8 +475,8 @@
|
||||
// console.log(this.dataForm.productImages,'productImages')
|
||||
this.loadProgress = 100
|
||||
setTimeout(() => {
|
||||
this.progressFlag = false;
|
||||
this.videoloading = false;
|
||||
this.videoFlag = false;
|
||||
this.videoLoading = false;
|
||||
this.loading = false;
|
||||
this.$message.success("上传成功");
|
||||
}, 1000) // 一秒后关闭进度条
|
||||
@@ -504,8 +504,8 @@
|
||||
this.dataForm.productDetails = "";
|
||||
this.voicesFlag = false;
|
||||
this.videoFlag = false;
|
||||
this.voicesloading = false;
|
||||
this.videoloading = false;
|
||||
this.voicesLoading = false;
|
||||
this.videoLoading = false;
|
||||
this.loading = false;
|
||||
// this.$refs['dataForm'].reset()
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user