| | |
| | | return { |
| | | user:{}, |
| | | showComponent: false, |
| | | time:undefined, |
| | | loading: true, |
| | | // 会议基本信息 |
| | | sdkAppId: 1600032250, |
| | |
| | | |
| | | computed: { |
| | | isStartExercise() { |
| | | let roomId = this.roomId |
| | | let roomId = this.roomId; |
| | | let userId = this.userId; |
| | | return { roomId, userId }; |
| | | let time = this.time |
| | | return { roomId, userId, time }; |
| | | } |
| | | }, |
| | | |
| | |
| | | handler(n) { |
| | | if (n.roomId && n.userId) { |
| | | // 判断这两个值同时存在 |
| | | // alert(this.userId) |
| | | // alert(this.roomId) |
| | | this.loading = false; |
| | | this.showComponent = true; |
| | | } |
| | | if(n.time == false){ |
| | | this.showComponent = false; |
| | | } |
| | | }, |
| | | } |
| | |
| | | const id = this.$route.params && this.$route.params.id; |
| | | getWebcastInfo(id).then(response => { |
| | | this.roomId = response.data.roomId |
| | | console.log(response.data,'datadtaadadsd') |
| | | |
| | | let time = response.data.startTime.split(' ')[0] |
| | | // let now = new Date(); |
| | | // let dateStr = now.toLocaleDateString().replaceAll('/','-'); // 本地格式的日期字符串 |
| | | const now = new Date(); |
| | | const year = now.getFullYear(); |
| | | const month = (now.getMonth() + 1).toString().padStart(2, '0'); |
| | | const day = now.getDate().toString().padStart(2, '0'); |
| | | let dateStr = `${year}-${month}-${day}`; |
| | | if(time == dateStr){ |
| | | this.time = true |
| | | }else{ |
| | | this.time = false |
| | | this.$modal.msgSuccess("不在直播时间范围!"); |
| | | } |
| | | |
| | | }) |
| | | }, |
| | | // 获取用户名 |
| | |
| | | // alert(this.userId) |
| | | // alert(this.roomId) |
| | | }); |
| | | |
| | | // setTimeout(() => { |
| | | // this.loading = false; |
| | | // this.showComponent = true; |
| | |
| | | handleClose(){ |
| | | this.pOID = '' |
| | | this.allInfo2 = [] |
| | | // this.reset(); |
| | | // alert(this.pOID) |
| | | }, |
| | | |
| | |
| | | //alert(fid) |
| | | _this.$set(_this.form,'fid',_this.orfid); |
| | | this.$modal.msgSuccess("不能选择子孙为父亲!"); |
| | | this.form.fid = undefined |
| | | this.form.mid = undefined |
| | | } |
| | | }) |
| | | }, |
| | |
| | | //alert(fid) |
| | | _this.$set(_this.form,'mid',_this.ormid); |
| | | this.$modal.msgSuccess("不能选择子孙为母亲!"); |
| | | this.form.fid = undefined |
| | | this.form.mid = undefined |
| | | } |
| | | }) |
| | | }, |