Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
d4cca10c
提交
d4cca10c
编写于
6月 23, 2020
作者:
yi.li
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
新建编辑直播修改1
上级
f9b7fd9d
变更
1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
32 行增加
和
6 行删除
+32
-6
create-live.vue
src/views/yqrange/create-live.vue
+32
-6
未找到文件。
src/views/yqrange/create-live.vue
浏览文件 @
d4cca10c
<
template
>
<div
class=
"yqrange-index-wrapper"
>
<bread-crumb
:curmbFirst=
"curmbFirst"
:curmbSecond=
"curmbSecond"
:curmbThird=
"curmbThird"
></bread-crumb>
<bread-crumb
:curmbFirst=
"curmbFirst"
:curmbSecond=
"curmbSecond"
:curmbThird=
"curmbThird"
:jumPathThird=
"jumPathThird"
></bread-crumb>
<div
class=
"yqrange-index-content screenSet"
id=
"screenSet"
>
<el-row
class=
"step-content"
>
<el-col
:span=
"12"
>
...
...
@@ -275,10 +275,11 @@
}
};
return{
circleId: '',
curmbFirst: '云鹊小圈',
curmbSecond: '直播管理',
curmbThird: '新建直播',
circleI
d: '',
curmbThird: '新建直播',
// /live-manage?id=
jumPathThir
d: '',
//页面展示位置
isCollectShow: false,
formData: {
...
...
@@ -334,6 +335,7 @@
uploadImgMessage2: false,
imgMouseOver3: false,
uploadImgMessage3:false,
submitFlag: false,
pickerOptions0: {
disabledDate: time => {
// 在科学计数法中,为了使公式简便,可以用带“E”的格式表示。例如1.03乘10的8次方,可简写为“1.03e8”的形式
...
...
@@ -395,6 +397,8 @@
let idType = localStorage.getItem('storageIdType');
this.circleId = this.$route.query.circleId;
this.formData.circleId = this.circleId;
this.jumPathThird = '/live-manage?id=' + this.circleId;
// if(circleId){
// this.curmbThird = "
新建直播
";
// }
...
...
@@ -428,9 +432,14 @@
initRtcInfo(rtcId){
getRtcInfo({
rtcId
}).then((data) => {
if(data.code == "
000000
") {
this.formData = data.data;
}).then((res) => {
if(res.code == "
000000
") {
this.formData = res.data;
if(this.formData != null){
if(this.formData.guests == null || this.formData.guests.length == 0){
this.formData.guests = [{phone: '',username: ''}];
}
}
this.formData.circleId = this.circleId;
this.initFormData();
console.log(this.formData);
...
...
@@ -596,6 +605,19 @@
let flag = true;
if(this.formData.guests != null & this.formData.guests.length >= 1){
for(let i=0;i<this.formData.guests.length;i++) {
if(this.formData.guests[i].username == "" & this.formData.guests[i].phone == ""){
// this.formData.guests.splice(i, 1);
if(this.submitFlag){
this.formData.guests.splice(i, 1);
continue;
}
else {
this.$message.error("
请输入嘉宾姓名和手机号
");
flag = false;
break;
}
}
if(this.formData.guests[i].username != "" & this.formData.guests[i].phone == ""){
this.$message.error("
请输入嘉宾
'" + this.formData.guests[i].username + "'
的手机号
");
flag = false;
...
...
@@ -648,6 +670,8 @@
// 增加嘉宾
addGuest(index) {
this.submitFlag = false;
if(!this.checkGuests()){
return;
}
...
...
@@ -734,6 +758,8 @@
//完成
submit() {
this.submitFlag = true;
this.setFormData();
// 校验直播简介文字版或图片版
if(!this.checkIntroduce()){
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录