提交 4b9056b8 authored 作者: 周志刚's avatar 周志刚

video pic update

上级 7c9a51a9
......@@ -19,4 +19,5 @@ export const uploadUrl = `https://rsks.class.com.cn/file/`
// export const uploadUrl = `http://122.14.50.6:8096/`
// BASE_API: '"https://rsks.class.com.cn"'
export const downloadPath = 'download'
export const uploadPath = 'upload'
export const uploadPath = 'upload'
export const videoPath = '/video'
......@@ -104,15 +104,15 @@
<el-col :span="12">
<el-upload class="video-uploader clearfix" style="z-index: 111"
:action="`${domain}${requestPath.file}${uploadPath}`" :show-file-list="false"
:action="`${domain}${requestPath.file}${uploadPath}${videoPath}`" :show-file-list="false"
:on-success="handleVideoSuccess" :before-upload="beforeVideoUpload">
<div style="position: absolute; z-index: 1111; right: 12px; font-size: 24px; color: #606266;"
v-if="temp.pbook.video" @click.stop="deleteBtn">×
</div>
<video v-if="temp.pbook.video"
:src="`${domain}${requestPath.file}${temp.pbook.video}`" controls>
抱歉,您的浏览器不支持内嵌视频,你可以<a :href="`${domain}${requestPath.file}${temp.pbook.video}`"
:src="`${domain}${requestPath.file1}${temp.pbook.video}`" controls>
抱歉,您的浏览器不支持内嵌视频,你可以<a :href="`${domain}${requestPath.file1}${temp.pbook.video}`"
style="text-decoration:underline;">点击下载</a>查看
</video>
......@@ -272,7 +272,7 @@
</template>
<script>
import {uploadUrl, uploadPath, requestPath} from '@/utils/global.js'
import {uploadUrl, uploadPath, requestPath, videoPath} from '@/utils/global.js'
import {
getPublisherAPI,
addAPI,
......@@ -444,6 +444,7 @@
},
uploadUrl: '',
uploadPath: uploadPath,
videoPath: videoPath,
dialogImage: {},
isCover: false,
uploading: false,
......@@ -528,7 +529,9 @@
},
handleVideoSuccess(response, file, fileList) {
this.$message.success('上传成功')
this.temp.pbook.video = response
this.temp.pbook.video = response.fileName
this.temp.pbook.videopic = response.img
},
handleCover() { //设为封面
this.dialogPvVisible = false
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论