提交 a899a283 编写于 作者: bo.dang's avatar bo.dang

设置回放和图片大小修改

上级 cf2c7af7
......@@ -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));
......
......@@ -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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册