| | |
| | | onReady() { |
| | | // 初始化 |
| | | // this.channel = 2554; |
| | | this.init(); |
| | | // this.init(); |
| | | }, |
| | | onLoad(option) { |
| | | var that = this; |
| | |
| | | } |
| | | console.log(option.state); |
| | | if (option.state == "Mains") { |
| | | |
| | | that.isMain = true; |
| | | var call = false; |
| | | this.userName = that.$store.state.puserName; |
| | | this.userName = that.$store.state.puserID + '-faqiren'; |
| | | this.init(); |
| | | // setTimeout(res => { |
| | | //发起请求 给后端双方姓名 |
| | | |
| | | //得到返回值 开始视频 或者拒绝视频 |
| | | // this.join(); |
| | | // console.log(that.$store.state); |
| | | uni.request({ |
| | | url: that.$store.state.api + '/pushMsg/inviteVideoCall', |
| | | data: { |
| | |
| | | setTimeout(res => { |
| | | // uni.navigateBack(); |
| | | // console.log(111) |
| | | that.join(); |
| | | // that.join(); |
| | | console.log('成功进入') |
| | | }, 2000) |
| | | } |
| | | } |
| | |
| | | |
| | | // }, 5000) |
| | | } else if (option.state == "Receiver") { |
| | | that.userName = that.$store.state.puserName; |
| | | that.userName = that.$store.state.puserID + '-jieshouren'; |
| | | // that.formName = 'wo'; |
| | | that.channel = option.room; |
| | | that.init(); |
| | | that.isMain = false; |
| | | } |
| | | }, |