| | |
| | | if (option.state == "Mains") { |
| | | that.isMain = true; |
| | | var call = false; |
| | | // this.userName = 'faqiren'; |
| | | this.userName = that.$store.state.puserName; |
| | | // setTimeout(res => { |
| | | //发起请求 给后端双方姓名 |
| | | |
| | |
| | | that.channel = d.roomId; |
| | | console.log('对方在线-- 等待对方接受'); |
| | | // call = true; |
| | | setTimeout(res => { |
| | | // uni.navigateBack(); |
| | | // console.log(111) |
| | | that.join(); |
| | | }, 2000) |
| | | } |
| | | } |
| | | }) |
| | |
| | | |
| | | // }, 5000) |
| | | } else if (option.state == "Receiver") { |
| | | that.userName = option.name; |
| | | that.userName = that.$store.state.puserName; |
| | | // that.formName = 'wo'; |
| | | that.channel = option.room; |
| | | that.isMain = false; |