Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
ciic_management_sys
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
袁龙涛
ciic_management_sys
Commits
4b9056b8
提交
4b9056b8
authored
7月 24, 2020
作者:
周志刚
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
video pic update
上级
7c9a51a9
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
10 行增加
和
6 行删除
+10
-6
global.js
src/utils/global.js
+2
-1
add_edit_goods.vue
src/views/bookinfomanage/goods_info/add_edit_goods.vue
+8
-5
没有找到文件。
src/utils/global.js
浏览文件 @
4b9056b8
...
...
@@ -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'
src/views/bookinfomanage/goods_info/add_edit_goods.vue
浏览文件 @
4b9056b8
...
...
@@ -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.file
1
}${temp.pbook.video}`" controls>
抱歉,您的浏览器不支持内嵌视频,你可以
<a
:href=
"`$
{domain}${requestPath.file
1
}${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
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论