Commit 29377279 authored by zhengke's avatar zhengke

修改

parent 5d4e5e1f
...@@ -138,7 +138,7 @@ ...@@ -138,7 +138,7 @@
<div class="material-item material-upload"> <div class="material-item material-upload">
<div class="app-upload" flex="main:center cross:center" style="width: 140px; height: 140px;"> <div class="app-upload" flex="main:center cross:center" style="width: 140px; height: 140px;">
<el-upload class="avatar-uploader" action="" <el-upload class="avatar-uploader" action=""
accept="video/mp4,video/ogg,video/webm" :show-file-list="false" :http-request="UploadpdfFile" accept=".pdf,.PDF,.ppt,.PPT,.doc,.docx" :show-file-list="false" :http-request="UploadpdfFile"
multiple> multiple>
<i class="el-icon-upload"></i> <i class="el-icon-upload"></i>
</el-upload> </el-upload>
...@@ -522,7 +522,7 @@ ...@@ -522,7 +522,7 @@
this.Error('请上传word ppt pdf文件'); this.Error('请上传word ppt pdf文件');
return; return;
} }
this.UploadSelfFile(this.FileType().GoodsImg, file.file, res => { this.UploadFileToTencent(this.FileType().GoodsImg, file.file, res => {
if (res.resultCode == 1) { if (res.resultCode == 1) {
that.addpageMsg.Image = res.VideoCoverImg; that.addpageMsg.Image = res.VideoCoverImg;
that.addpageMsg.Path = res.FileUrl; that.addpageMsg.Path = res.FileUrl;
......
This diff is collapsed.
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
</div> </div>
<div class="basefix app-attachment-list"> <div class="basefix app-attachment-list">
<div class="app-attachment-item app-attachment-upload"> <div class="app-attachment-item app-attachment-upload">
<el-upload class="avatar-uploader" action="" accept="image/jpeg,image/gif,image/png,image/bmp" <el-upload class="avatar-uploader" action="" accept=".pdf,.PDF,.ppt,.PPT,.doc,.docx"
:show-file-list="false" :http-request="UploadpdfFile" multiple> :show-file-list="false" :http-request="UploadpdfFile" multiple>
<div class="app-upload" flex="main:center cross:center" style="width: 100px; height: 100px;"> <div class="app-upload" flex="main:center cross:center" style="width: 100px; height: 100px;">
<i class="el-icon-upload"></i> <i class="el-icon-upload"></i>
...@@ -225,7 +225,7 @@ ...@@ -225,7 +225,7 @@
this.Error('请上传word ppt pdf文件'); this.Error('请上传word ppt pdf文件');
return; return;
} }
this.UploadSelfFile(this.FileType().GoodsImg, file.file, res => { this.UploadFileToTencent(this.FileType().GoodsImg, file.file, res => {
if (res.resultCode == 1) { if (res.resultCode == 1) {
that.addpageMsg.Image = res.VideoCoverImg; that.addpageMsg.Image = res.VideoCoverImg;
that.addpageMsg.Path = res.FileUrl; that.addpageMsg.Path = res.FileUrl;
......
...@@ -206,6 +206,8 @@ export default { ...@@ -206,6 +206,8 @@ export default {
}).always(function () { }).always(function () {
//不管成功或失败,都会执行 //不管成功或失败,都会执行
}) })
}else{
this.uploadStart(path, fileObj, callback)
} }
}, },
Vue.prototype.uploadStart = function (path, fileObj, callback) { Vue.prototype.uploadStart = function (path, fileObj, callback) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment