detailInfo.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801
  1. <template>
  2. <div id="detailInfo">
  3. <el-row>
  4. <el-col :span="24" class="info">
  5. <el-col :span="4" class="left">
  6. <el-col :span="24" class="leftTop">
  7. <el-image :src="roomdetail.filedir"></el-image>
  8. <p>{{ roomdetail.title }}</p>
  9. <p>{{ roomdetail.content }}</p>
  10. </el-col>
  11. <el-col :span="24" class="leftDown">
  12. <el-col :span="8" class="btn" @click.native="shexiangBtn()">
  13. <i class="iconfont iconshexiangtou"></i>
  14. <p>摄像头</p>
  15. </el-col>
  16. <el-col :span="8" class="btn" @click.native="tianchongBtn()">
  17. <i class="iconfont iconmaikefeng-tianchong"></i>
  18. <p>麦克风</p>
  19. </el-col>
  20. <el-col :span="8" class="btn" @click.native="chatBtn()">
  21. <i class="el-icon-user"></i>
  22. <p>聊天</p>
  23. </el-col>
  24. </el-col>
  25. <el-col :span="24" class="leftDown">
  26. <el-col :span="8" class="btn" @click.native="lookuserBtn()">
  27. <i class="el-icon-user"></i>
  28. <p>成员</p>
  29. </el-col>
  30. <el-col :span="8" class="btn" @click.native="queBtn()">
  31. <i class="el-icon-question"></i>
  32. <p>问卷</p>
  33. </el-col>
  34. <el-col :span="8" class="btn" @click.native="queCloseBtn()">
  35. <i class="el-icon-circle-close"></i>
  36. <p>停卷</p>
  37. </el-col>
  38. </el-col>
  39. </el-col>
  40. <el-col :span="20" class="right">
  41. <el-col :span="24" class="rightTop">
  42. <span @click="liveon"><i class="iconfont iconshexiangtou"></i>直播</span>
  43. <span v-show="zjrshow" @click="livezhuchi"><i class="iconfont iconshexiangtou"></i>主持</span>
  44. <span @click="liveclose"><i class="el-icon-switch-button"></i>关闭直播</span>
  45. <span @click="shareon"><i class="iconfont iconfenxiang"></i>屏幕</span>
  46. <span @click="shareclose"><i class="iconfont iconfenxiang"></i>关闭分享</span>
  47. <span><el-switch @change="recordclick" v-model="isrecord" active-text="录制" inactive-text="停录"> </el-switch></span>
  48. <span @click="dismissroomClick"><i class="iconfont iconfenxiang"></i>解散房间</span>
  49. </el-col>
  50. <el-col :span="2" class="noVideo"> </el-col>
  51. <el-col :span="20" class="video">
  52. <el-col :span="24" class="videoMeet">
  53. <el-col :span="18" class="one">
  54. <div id="main-video" class="video-box col-div" style="justify-content: flex-end"></div>
  55. </el-col>
  56. <el-col :span="6" class="two">
  57. <el-col v-show="zjrshow" :span="24" class="twoOne" v-for="(item, index) in zjrList" :key="index">
  58. <el-col :span="14">
  59. <div :id="forOtherId(item.zjrid)" class="video-box col-div othevideo" style="justify-content: flex-end"></div>
  60. </el-col>
  61. <el-col :span="10">
  62. <p>
  63. <span>{{ item.zjrname }}</span>
  64. <span>
  65. <el-button type="danger" size="mini" @click="zjrChange(item.zjrid)">主讲</el-button>
  66. </span>
  67. </p>
  68. </el-col>
  69. </el-col>
  70. </el-col>
  71. </el-col>
  72. </el-col>
  73. <el-col :span="2" class="noVideo"></el-col>
  74. <el-col :span="24" class="rightDown">
  75. <!-- 开始直播 -->
  76. </el-col>
  77. </el-col>
  78. </el-col>
  79. </el-row>
  80. <el-dialog title="摄像头" :visible.sync="shexiangDia" width="30%" :before-close="handleClose">
  81. <el-select @change="cameraChange" v-model="cameraId" filterable placeholder="请选择摄像头">
  82. <el-option v-for="item in cameras" :key="item.deviceId" :label="item.label" :value="item.deviceId"> </el-option>
  83. </el-select>
  84. </el-dialog>
  85. <el-dialog title="麦克风" :visible.sync="tianchongDia" width="30%" :before-close="handleClose">
  86. <el-select @change="micrChange" v-model="microphoneId" filterable placeholder="请选择麦克风">
  87. <el-option v-for="item in microphones" :key="item.deviceId" :label="item.label" :value="item.deviceId"> </el-option>
  88. </el-select>
  89. </el-dialog>
  90. <el-dialog title="讨论" :visible.sync="chatDia" width="50%" :before-close="handleClose">
  91. <el-row>
  92. <el-col :span="24" class="chatList">
  93. <el-col :span="24" class="list" v-for="(item, index) in dataList" :key="index">
  94. <p>
  95. <span :class="item.sendname == user.name ? 'selfColor' : ''">{{ item.sendname }}</span>
  96. <span>{{ item.content }}</span>
  97. </p>
  98. </el-col>
  99. </el-col>
  100. <el-col :span="24" class="chatInput">
  101. <el-col :span="19" class="input">
  102. <el-input type="textarea" maxlength="5000" show-word-limit v-model="content"></el-input>
  103. </el-col>
  104. <el-col :span="5" class="btn">
  105. <el-button type="primary" size="mini" @click="chatCreate">发送</el-button>
  106. </el-col>
  107. </el-col>
  108. </el-row>
  109. </el-dialog>
  110. <el-dialog title="问卷" :visible.sync="queDia" width="38%" :before-close="handleClose">
  111. <el-row>
  112. <el-col :span="24">
  113. <el-col :span="12">
  114. <el-select v-model="queid" filterable placeholder="请选择问卷">
  115. <el-option v-for="item in questList" :key="item.id" :label="item.name" :value="item.id"> </el-option>
  116. </el-select>
  117. </el-col>
  118. <el-col :span="12" class="btn">
  119. <el-button type="primary" size="mini" @click="queCreate">发送</el-button>
  120. </el-col>
  121. </el-col>
  122. </el-row>
  123. </el-dialog>
  124. <el-dialog title="成员" :visible.sync="lookuserDia" width="60%" height="450px" :before-close="handleClose" :close-on-click-modal="(clo = false)">
  125. <el-row>
  126. <el-col :span="24" class="sudoku_row">
  127. <el-col :span="24" class="sudoku_item" v-for="(item, index) in userList" :key="index">
  128. <div :id="forId(item.userid)" class="video-box col-div lookvideo" style="justify-content: flex-end"></div>
  129. <p>
  130. <i class="el-icon-user"></i>
  131. <span class="selfColor">{{ item.username }}({{ item.isonline === '1' ? '在线' : '离线' }})</span>
  132. <span v-if="item.switchrole === 'anchor'">
  133. <el-button type="danger" size="mini" @click="lookuserUpdate(item.id, 'audience')">移除</el-button>
  134. <el-button type="primary" size="mini" @click="roomshangmai(item.userid)">主讲</el-button>
  135. </span>
  136. <span v-else><el-button type="primary" size="mini" @click="lookuserUpdate(item.id, 'anchor')">连麦</el-button></span>
  137. </p>
  138. </el-col>
  139. </el-col>
  140. </el-row>
  141. </el-dialog>
  142. </div>
  143. </template>
  144. <script>
  145. import Vue from 'vue';
  146. import { mapState, createNamespacedHelpers } from 'vuex';
  147. const { mapActions: gensign } = createNamespacedHelpers('gensign');
  148. const { mapActions: chat } = createNamespacedHelpers('chat');
  149. const { mapActions: room } = createNamespacedHelpers('room');
  150. const { mapActions: lookuser } = createNamespacedHelpers('lookuser');
  151. const { mapActions: roomuser } = createNamespacedHelpers('roomuser');
  152. import TRTC from 'trtc-js-sdk';
  153. export default {
  154. name: 'detailInfo',
  155. props: {
  156. roomInfo: null,
  157. },
  158. components: {},
  159. data: function() {
  160. return {
  161. // 摄像头
  162. shexiangDia: false,
  163. cameraId: '',
  164. cameras: [],
  165. // 麦克风
  166. tianchongDia: false,
  167. chatDia: false,
  168. queDia: false,
  169. questList: [],
  170. queid: '',
  171. microphoneId: '',
  172. microphones: [],
  173. client_: '',
  174. localStream_: '',
  175. shareClient_: '',
  176. shareStream_: '',
  177. sdkAppId_: '1400414461',
  178. userId_: '',
  179. userMainId_: '',
  180. open_: false,
  181. content: '',
  182. dataList: [],
  183. isrecord: false,
  184. shareid: '',
  185. userList: [],
  186. lookuserDia: false,
  187. index_: 0,
  188. ov1: '',
  189. ov2: '',
  190. ov3: '',
  191. ov4: '',
  192. ov5: '',
  193. ov6: '',
  194. ov7: '',
  195. showbtn_: false,
  196. roomdetail: {},
  197. zjrList: [],
  198. zjrshow: false,
  199. };
  200. },
  201. created() {
  202. this.getRoomInfo();
  203. this.initclient();
  204. this.getDevices();
  205. this.chatSearch();
  206. },
  207. mounted() {
  208. this.channel();
  209. },
  210. methods: {
  211. ...gensign(['gensignFetch']),
  212. ...chat(['query', 'create', 'fetch']),
  213. ...room({
  214. roomfetch: 'fetch',
  215. startrecord: 'startrecord',
  216. stoprecord: 'stoprecord',
  217. roomquest: 'roomquest',
  218. roomquestclose: 'roomquestclose',
  219. questquery: 'questquery',
  220. updateanchor: 'updateanchor',
  221. updateshmai: 'updateshmai',
  222. switchzjr: 'switchzjr',
  223. switchzb: 'switchzb',
  224. switchzp: 'switchzp',
  225. dismissroom: 'dismissroom',
  226. }),
  227. ...lookuser(['lookquery', 'lookupdate']),
  228. ...roomuser({ roomuserfetch: 'fetch' }),
  229. // 解散房间
  230. async dismissroomClick() {
  231. const info = { roomid: this.id, roomname: this.name };
  232. let res = await this.dismissroom({ ...info });
  233. if (this.$checkRes(res)) {
  234. console.log(res.data);
  235. this.$message({
  236. message: '操作成功',
  237. type: 'success',
  238. });
  239. }
  240. },
  241. async livezp() {
  242. const data = {};
  243. data.id = this.id;
  244. data.uid = this.user.uid;
  245. const res = await this.switchzb(data);
  246. if (this.$checkRes(res)) {
  247. console.log(res.data);
  248. this.$message({
  249. message: '操作成功',
  250. type: 'success',
  251. });
  252. }
  253. },
  254. async livezhuchi() {
  255. const data = {};
  256. data.id = this.id;
  257. data.uid = this.user.uid;
  258. const res = await this.switchzb(data);
  259. if (this.$checkRes(res)) {
  260. console.log(res.data);
  261. this.$message({
  262. message: '操作成功',
  263. type: 'success',
  264. });
  265. this.localStream_.unmuteVideo();
  266. this.localStream_.unmuteAudio();
  267. }
  268. },
  269. async zjrChange(zjrid) {
  270. const data = {};
  271. data.id = this.id;
  272. data.switchzjr = zjrid;
  273. const res = await this.switchzjr(data);
  274. if (this.$checkRes(res)) {
  275. console.log(res.data);
  276. this.$message({
  277. message: '操作成功',
  278. type: 'success',
  279. });
  280. this.localStream_.muteVideo();
  281. this.localStream_.muteAudio();
  282. }
  283. },
  284. async getRoomInfo() {
  285. const res = await this.roomfetch(this.id);
  286. if (this.$checkRes(res)) {
  287. console.log(res.data);
  288. this.$set(this, `roomdetail`, res.data);
  289. if (res.data.anchorid === this.user.uid) {
  290. this.zjrshow = true;
  291. }
  292. for (const elm of res.data.zjr) {
  293. const ru = await this.roomuserfetch(elm);
  294. if (this.$checkRes(ru)) {
  295. const newdata = { zjrid: elm, zjrname: ru.data.name };
  296. this.zjrList.push(newdata);
  297. }
  298. }
  299. }
  300. },
  301. async roomshangmai(dataid) {
  302. const data = {};
  303. data.id = this.id;
  304. data.shmaiid = dataid;
  305. const res = await this.updateshmai(data);
  306. if (this.$checkRes(res)) {
  307. console.log(res.data);
  308. this.$message({
  309. message: '操作成功',
  310. type: 'success',
  311. });
  312. }
  313. },
  314. async queCreate() {
  315. const data = {};
  316. data.roomid = this.id;
  317. data.queid = this.queid;
  318. const res = await this.roomquest(data);
  319. if (this.$checkRes(res)) {
  320. console.log(res.data);
  321. this.$message({
  322. message: '操作成功',
  323. type: 'success',
  324. });
  325. }
  326. },
  327. async lookuserBtn() {
  328. this.lookuserDia = true;
  329. this.lookuserSearch();
  330. },
  331. async lookuserSearch({ skip = 0, limit = 1000 } = {}) {
  332. const info = { roomid: this.id };
  333. let res = await this.lookquery({ skip, limit, ...info });
  334. console.log(res.data);
  335. this.$set(this, `userList`, res.data);
  336. },
  337. async lookuserUpdate(_id, _switchrole) {
  338. console.log(_id);
  339. let data = {};
  340. data.id = _id;
  341. data.switchrole = _switchrole;
  342. const res = await this.lookupdate(data);
  343. if (this.$checkRes(res)) {
  344. console.log(res.data);
  345. this.$message({
  346. message: '操作成功',
  347. type: 'success',
  348. });
  349. this.lookuserSearch();
  350. } else {
  351. this.$message.error(res.errmsg);
  352. }
  353. },
  354. async recordclick() {
  355. console.log(this.isrecord);
  356. if (this.isrecord) {
  357. const info = { roomid: this.id, roomname: this.name, shareid: this.shareid };
  358. let res = await this.startrecord({ ...info });
  359. } else {
  360. const info = { roomid: this.id, roomname: this.name };
  361. let res = await this.stoprecord({ ...info });
  362. }
  363. },
  364. async chatSearch({ skip = 0, limit = 1000 } = {}) {
  365. const info = { roomid: this.id };
  366. let res = await this.query({ skip, limit, ...info });
  367. this.$set(this, `dataList`, res.data);
  368. },
  369. async questSearch({ skip = 0, limit = 1000 } = {}) {
  370. const info = { status: '1' };
  371. let res = await this.questquery({ skip, limit, ...info });
  372. console.log(res);
  373. if (this.$checkRes(res)) {
  374. this.$set(this, `questList`, res.data);
  375. }
  376. },
  377. async chatCreate() {
  378. let data = {};
  379. data.roomid = this.id;
  380. data.type = '0';
  381. data.content = this.content;
  382. data.sendid = this.user.uid;
  383. data.sendname = this.user.name;
  384. const res = await this.create(data);
  385. if (this.$checkRes(res)) {
  386. console.log(res.data);
  387. this.content = '';
  388. }
  389. },
  390. channel() {
  391. console.log('in function:');
  392. this.$stomp({
  393. [`/exchange/public_chat_` + this.id]: this.onMessage,
  394. });
  395. },
  396. onMessage(message) {
  397. // console.log('receive a message: ', message.body);
  398. let body = _.get(message, 'body');
  399. if (body) {
  400. body = JSON.parse(body);
  401. this.dataList.push(body);
  402. this.content = '';
  403. }
  404. // const { content, contenttype, sendid, sendname, icon, groupid, sendtime, type } = message.headers;
  405. // let object = { content, contenttype, sendid, sendname, icon, groupid, sendtime, type };
  406. // this.list.push(object);
  407. },
  408. async getDevices() {
  409. this.cameras = await TRTC.getCameras();
  410. this.microphones = await TRTC.getMicrophones();
  411. },
  412. async initclient() {
  413. console.log(this.user.uid);
  414. this.userId_ = this.user.uid;
  415. if (this.anchorid === this.user.uid) {
  416. this.showbtn_ = true;
  417. this.userMainId_ = 'mainr-' + this.user.uid;
  418. } else {
  419. this.userMainId_ = 'other-' + this.user.uid;
  420. }
  421. const res = await this.gensignFetch({ userid: this.userMainId_ });
  422. if (this.$checkRes(res)) {
  423. console.log(res.data);
  424. this.client_ = TRTC.createClient({
  425. mode: 'live',
  426. sdkAppId: this.sdkAppId_,
  427. userId: this.userMainId_,
  428. userSig: res.data,
  429. });
  430. }
  431. },
  432. async liveon() {
  433. this.open_ = true;
  434. console.log('8888--' + this.userId_);
  435. if (this.cameraId === '' || this.microphoneId === '') {
  436. this.$message({
  437. message: '请选择摄像头和麦克风',
  438. type: 'warning',
  439. });
  440. return;
  441. }
  442. await this.client_.join({ roomId: this.name, role: 'anchor' });
  443. this.localStream_ = await TRTC.createStream({
  444. audio: true,
  445. video: true,
  446. cameraId: this.cameraId,
  447. microphoneId: this.microphoneId,
  448. userId: this.userMainId_,
  449. });
  450. this.localStream_.setVideoProfile('480p');
  451. await this.localStream_.initialize();
  452. console.log('initialize local stream success');
  453. // publish the local stream
  454. await this.client_.publish(this.localStream_);
  455. this.localStream_.play('main-video');
  456. //$('#mask_main').appendTo($('#player_' + this.localStream_.getId()));
  457. // 订阅其他用户音视频
  458. this.client_.on('stream-subscribed', event => {
  459. const remoteStream = event.stream;
  460. // 远端流订阅成功,播放远端音视频流
  461. const usertempid_ = remoteStream.getUserId();
  462. console.log('111' + remoteStream.getUserId());
  463. if (usertempid_) {
  464. const usersplit_ = usertempid_.substring(0, 5);
  465. if (usersplit_ === 'other') {
  466. const id_ = 'othe-video-' + usertempid_;
  467. remoteStream.play(id_);
  468. } else if (usersplit_ === 'wxxcx') {
  469. const id_ = 'look-video-' + usertempid_;
  470. remoteStream.play(id_);
  471. } else if (usersplit_ === 'meetu') {
  472. const id_ = 'look-video-' + usertempid_;
  473. remoteStream.play(id_);
  474. }
  475. }
  476. });
  477. // 监听远端流增加事件
  478. this.client_.on('stream-added', event => {
  479. const remoteStream = event.stream;
  480. console.log('222' + remoteStream.getType());
  481. // 订阅远端音频和视频流
  482. this.client_.subscribe(remoteStream, { audio: true, video: true }).catch(e => {
  483. console.error('failed to subscribe remoteStream');
  484. });
  485. });
  486. this.client_.on('stream-removed', event => {
  487. const remoteStream = event.stream;
  488. console.log('stop----');
  489. const usertempid_ = remoteStream.getUserId();
  490. if (usertempid_) {
  491. const usersplit_ = usertempid_.substring(0, 5);
  492. if (usersplit_ === 'other') {
  493. this.index_ = this.index_ - 1;
  494. }
  495. }
  496. remoteStream.stop();
  497. });
  498. this.client_.on('mute-video', event => {
  499. const remoteStream = event.stream;
  500. // 订阅远端音频和视频流
  501. const usertempid_ = remoteStream.getUserId();
  502. if (usertempid_) {
  503. const usersplit_ = usertempid_.substring(0, 4);
  504. if (usersplit_ === 'othe') {
  505. this.index_ = this.index_ - 1;
  506. }
  507. }
  508. });
  509. },
  510. async shareon() {
  511. const shareId = 'share-' + this.userId_;
  512. this.shareid = shareId;
  513. const res = await this.gensignFetch({ userid: shareId });
  514. if (this.$checkRes(res)) {
  515. const shareClient = TRTC.createClient({
  516. mode: 'videoCall',
  517. sdkAppId: this.sdkAppId_,
  518. userId: shareId,
  519. userSig: res.data,
  520. });
  521. this.shareClient_ = shareClient;
  522. shareClient.setDefaultMuteRemoteStreams(true);
  523. await shareClient.join({ roomId: this.name });
  524. const localStream = TRTC.createStream({ audio: false, screen: true });
  525. //localStream.setScreenProfile({ width: 200, height: 200, float: 'left', frameRate: 5, bitrate: 1600 /* kbps */ });
  526. await localStream.initialize();
  527. this.shareStream_ = localStream;
  528. console.log('initialize share stream success');
  529. await shareClient.publish(localStream);
  530. this.client_.on('stream-added', event => {
  531. const remoteStream = event.stream;
  532. const remoteUserId = remoteStream.getUserId();
  533. if (remoteUserId === shareId) {
  534. // 取消订阅自己的屏幕分享流
  535. this.client_.unsubscribe(remoteStream);
  536. } else {
  537. // 订阅其他一般远端流
  538. this.client_.subscribe(remoteStream);
  539. }
  540. });
  541. }
  542. },
  543. async liveclose() {
  544. // 关闭视频通话
  545. console.log(this.open_);
  546. if (this.open_) {
  547. const videoTrack = this.localStream_.getVideoTrack();
  548. if (videoTrack) {
  549. this.localStream_.removeTrack(videoTrack).then(() => {
  550. console.log('remove video call success');
  551. // 关闭摄像头
  552. videoTrack.stop();
  553. this.client_.unpublish(this.localStream_).then(() => {
  554. // 取消发布本地流成功
  555. });
  556. this.localStream_.close();
  557. });
  558. }
  559. }
  560. },
  561. async shareclose() {
  562. this.shareClient_;
  563. if (this.shareClient_) {
  564. this.shareClient_.unpublish(this.shareStream_).then(() => {
  565. // 关闭屏幕分享流
  566. this.shareStream_.close();
  567. });
  568. }
  569. },
  570. async cameraChange() {
  571. //await this.localStream_.switchDevice('video', this.cameraId);
  572. },
  573. async micrChange() {
  574. //await this.localStream_.switchDevice('audio', this.microphoneId);
  575. },
  576. // 选择打开摄像头
  577. shexiangBtn() {
  578. this.shexiangDia = true;
  579. },
  580. // 选择打开麦克风
  581. tianchongBtn() {
  582. this.tianchongDia = true;
  583. },
  584. chatBtn() {
  585. this.chatDia = true;
  586. },
  587. async queBtn() {
  588. this.queDia = true;
  589. this.questSearch();
  590. },
  591. async queCloseBtn() {
  592. // 关闭问卷
  593. const data = {};
  594. data.roomid = this.id;
  595. const res = await this.roomquestclose(data);
  596. if (this.$checkRes(res)) {
  597. this.$message({
  598. message: '操作成功',
  599. type: 'success',
  600. });
  601. }
  602. },
  603. forId(itemid) {
  604. return 'look-video-wxxcx-' + itemid;
  605. },
  606. forOtherId(itemid) {
  607. return 'othe-video-other-' + itemid;
  608. },
  609. // 关闭摄像头&麦克风
  610. handleClose(done) {
  611. done();
  612. },
  613. },
  614. computed: {
  615. ...mapState(['user']),
  616. id() {
  617. return this.$route.query.id;
  618. },
  619. name() {
  620. return this.$route.query.name;
  621. },
  622. anchorid() {
  623. return this.$route.query.anchorid;
  624. },
  625. pageTitle() {
  626. return `${this.$route.meta.title}`;
  627. },
  628. },
  629. metaInfo() {
  630. return { title: this.$route.meta.title };
  631. },
  632. };
  633. </script>
  634. <style lang="less" scoped>
  635. .info {
  636. background-color: #2a2b30;
  637. min-height: 840px;
  638. .left {
  639. .leftTop {
  640. min-height: 540px;
  641. padding: 0 15px;
  642. margin: 20px 0;
  643. p {
  644. color: #ccc;
  645. }
  646. p:nth-child(2) {
  647. padding: 10px 0;
  648. }
  649. p:nth-child(3) {
  650. line-height: 25px;
  651. }
  652. }
  653. .leftDown {
  654. padding: 10px 0 0 0;
  655. border-top: 1px solid #000;
  656. .btn {
  657. margin: 0 0 15px 0;
  658. color: #cccccc;
  659. text-align: center;
  660. }
  661. .btn:hover {
  662. cursor: pointer;
  663. }
  664. }
  665. }
  666. .right {
  667. .rightTop {
  668. height: 100px;
  669. background-color: #232428;
  670. text-align: right;
  671. color: #ccc;
  672. line-height: 100px;
  673. span {
  674. margin: 0 10px 0 0;
  675. }
  676. span:hover {
  677. cursor: pointer;
  678. color: #409eff;
  679. }
  680. }
  681. .video {
  682. min-height: 640px;
  683. background-color: #000;
  684. overflow: hidden;
  685. position: relative;
  686. .videoMeet {
  687. .one {
  688. height: 480px;
  689. overflow: hidden;
  690. }
  691. .two {
  692. height: 480px;
  693. overflow: hidden;
  694. background-color: white;
  695. .twoOne {
  696. height: 80px;
  697. width: 100%;
  698. overflow: hidden;
  699. span:first-child {
  700. width: 100%;
  701. text-align: center;
  702. overflow: hidden;
  703. text-overflow: ellipsis;
  704. white-space: nowrap;
  705. // font-weight: bold;
  706. }
  707. span:last-child {
  708. width: 100%;
  709. }
  710. }
  711. }
  712. .three {
  713. height: 160px;
  714. overflow: hidden;
  715. }
  716. }
  717. }
  718. .noVideo {
  719. min-height: 640px;
  720. background-color: #151618;
  721. }
  722. .rightDown {
  723. height: 100px;
  724. background-color: #232428;
  725. }
  726. }
  727. }
  728. /deep/.el-dialog__body {
  729. min-height: 100px;
  730. }
  731. #main-video {
  732. float: left;
  733. width: 100%;
  734. height: 640px;
  735. min-height: 600px;
  736. grid-area: 1/1/3/4;
  737. }
  738. .chatList {
  739. height: 400px;
  740. padding: 5px 5px 5px 0px;
  741. overflow-y: auto;
  742. .list {
  743. margin: 0 0 10px 0;
  744. span:first-child {
  745. float: left;
  746. width: 15%;
  747. text-align: center;
  748. overflow: hidden;
  749. text-overflow: ellipsis;
  750. white-space: nowrap;
  751. // font-weight: bold;
  752. }
  753. span:last-child {
  754. float: right;
  755. width: 84%;
  756. }
  757. }
  758. }
  759. .chatInput {
  760. position: absolute;
  761. bottom: 0;
  762. .el-button {
  763. width: 100%;
  764. padding: 20px 0;
  765. }
  766. }
  767. .sudoku_row {
  768. display: flex;
  769. align-items: center;
  770. width: 100%;
  771. height: 430px;
  772. flex-wrap: wrap;
  773. overflow-y: auto;
  774. }
  775. .sudoku_item {
  776. display: flex;
  777. justify-content: center;
  778. align-items: center;
  779. flex-direction: column;
  780. width: 30%;
  781. padding: 10px 10px 10px 10px;
  782. }
  783. .lookvideo {
  784. width: 100%;
  785. height: 160px;
  786. min-height: 160px;
  787. background-color: black;
  788. grid-area: 1/1/3/4;
  789. }
  790. .othevideo {
  791. margin: 10px 10px 10px 10px;
  792. width: 80px;
  793. height: 80px;
  794. min-height: 80px;
  795. background-color: black;
  796. grid-area: 1/1/3/4;
  797. }
  798. </style>