Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
a899a283
提交
a899a283
编写于
7月 10, 2020
作者:
bo.dang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
设置回放和图片大小修改
上级
cf2c7af7
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
12 行增加
和
5 行删除
+12
-5
create-live.vue
src/views/yqrange/create-live.vue
+8
-3
live-manage.vue
src/views/yqrange/live-manage.vue
+4
-2
未找到文件。
src/views/yqrange/create-live.vue
浏览文件 @
a899a283
...
...
@@ -686,7 +686,7 @@
return;
}
vm.isDisabledIns = true;
vm.$message.info('开始上传');
//
vm.$message.info('开始上传');
const isJPG = file.type === 'image/jpeg'
const isPNG = file.type === 'image/png'
const isLt2M = file.size / 1024 / 1024 < fileLimit.size
...
...
@@ -708,12 +708,14 @@
image.src = theFile.target.result;
image.onload = function() {
let _this = this;
if (
_this.width !== 750
) {
vm.$message.
info
('图片尺寸不符合规范,请根据规范上传图片');
if (
_this.width != fileLimit.width || _this.height > fileLimit.height
) {
vm.$message.
error
('图片尺寸不符合规范,请根据规范上传图片');
// vm.isDisabledIns = false;
return;
}else {
openLoading(vm);
doUpload(vm,file, getFilePath(file,null), 'preview4', 'progress1', 1).then(function (path) {
closeLoading(vm);
// vm.cleatBroadcast.liveIntroduceModel[vm.introduceIndex].content = path.fullPath;
vm.rtcIntroducesImages[vm.introduceIndex].content = path.fullPath;
vm.rtcIntroducesImages[vm.introduceIndex].seqNo = vm.introduceIndex+1;
...
...
@@ -1077,6 +1079,9 @@
// 直播简介图片版
this.formData.rtcIntroduces = JSON.parse(JSON.stringify(this.rtcIntroducesImages));
}
else {
this.formData.rtcIntroduces = [];
}
}
else {
this.formData.rtcIntroduces = JSON.parse(JSON.stringify(this.rtcIntroducesImages));
...
...
src/views/yqrange/live-manage.vue
浏览文件 @
a899a283
...
...
@@ -448,9 +448,11 @@ export default {
const
rtcId
=
row
.
rtcId
;
vm
.
streamType
=
row
.
streamType
;
// 拉流直播不显示选择区域
if
(
row
.
streamType
==
2
){
if
(
vm
.
streamType
==
2
){
vm
.
selectFlag
=
false
;
vm
.
uploadFlag
=
true
;
vm
.
downloadVideoFlag
=
false
;
...
...
@@ -474,7 +476,7 @@ export default {
// 拉流直播 不显示两个选择按钮;只显示①上传回放视频
if
(
row
.
streamType
==
2
){
if
(
vm
.
streamType
==
2
){
vm
.
playbackForm
.
videoSource
=
"2"
;
vm
.
selectFlag
=
false
;
vm
.
downloadVideoFlag
=
false
;
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录