index.vue 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534
  1. <template>
  2. <n-modal
  3. :show="props.modelValue"
  4. preset="dialog"
  5. class="meeting"
  6. :show-icon="false"
  7. @close="close"
  8. >
  9. <template #header>
  10. <div class="meeting-header">
  11. 刘明明创建视频会议 | 01:35:26 | 5人参会中
  12. </div>
  13. </template>
  14. <div class="meeting-content">
  15. <div class="meeting-content-left">
  16. <div class="meeting-content-left-top">
  17. <template
  18. v-for="s in 20"
  19. :key="s"
  20. >
  21. <div class="meeting-content-left-top-item">
  22. <div class="meeting-content-left-top-item-names">
  23. </div>
  24. <div class="meeting-content-left-top-item-info">
  25. <p>刘明明</p>
  26. <div>
  27. <span>西南交大研究院</span>
  28. <Icon
  29. name="mic"
  30. :size="23"
  31. />
  32. </div>
  33. </div>
  34. </div>
  35. </template>
  36. </div>
  37. <div class="meeting-content-left-bottom">
  38. <div class="meeting-content-left-bottom-item">
  39. <icon
  40. :size="28"
  41. name="mic"
  42. />
  43. <p>静音</p>
  44. </div>
  45. <div class="meeting-content-left-bottom-item">
  46. <icon
  47. :size="28"
  48. name="camera"
  49. />
  50. <p>摄像头</p>
  51. </div>
  52. <div class="meeting-content-left-bottom-btn">
  53. <n-button
  54. type="error"
  55. @click="close"
  56. >
  57. 结束会议
  58. </n-button>
  59. </div>
  60. </div>
  61. </div>
  62. <div class="meeting-content-right">
  63. <n-collapse
  64. arrow-placement="right"
  65. accordion
  66. :default-expanded-names="['1']"
  67. >
  68. <n-collapse-item name="1">
  69. <template #header>
  70. <div class="meeting-content-right-header">
  71. 会议成员12
  72. </div>
  73. </template>
  74. <div class="meeting-content-right-content">
  75. <div class="meeting-content-right-content-search">
  76. <n-input
  77. round
  78. placeholder="请输入内容"
  79. >
  80. <template #prefix>
  81. <icon
  82. name="serch"
  83. :size="18"
  84. />
  85. </template>
  86. </n-input>
  87. </div>
  88. <template
  89. v-for="s in 20"
  90. :key="s"
  91. >
  92. <div class="meeting-content-right-content-item">
  93. <div class="meeting-content-right-content-item-icon">
  94. </div>
  95. <div class="meeting-content-right-content-item-info">
  96. <div>
  97. <p>
  98. <span>刘明明</span>
  99. <span class="isActive">主持</span>
  100. </p>
  101. <p>行政区域1</p>
  102. </div>
  103. <div>
  104. <span>到场</span>
  105. <icon
  106. name="mic"
  107. :size="20"
  108. />
  109. </div>
  110. </div>
  111. </div>
  112. </template>
  113. </div>
  114. </n-collapse-item>
  115. <n-collapse-item name="2">
  116. <template #header>
  117. <div class="meeting-content-right-header">
  118. 文件列表
  119. </div>
  120. </template>
  121. <div class="meeting-content-right-content">
  122. <template
  123. v-for="s in 12"
  124. :key="s"
  125. >
  126. <div class="meeting-content-right-content-item meeting-content-right-content-file">
  127. <div class="meeting-content-right-content-item-icon">
  128. 图标
  129. </div>
  130. <div class="meeting-content-right-content-item-info">
  131. <div>
  132. <p>
  133. <span>我是文档名称描述.pdf</span>
  134. </p>
  135. <p>刘明明 04.28 13:08:29</p>
  136. </div>
  137. <div>
  138. <icon
  139. name="downLoad"
  140. :size="20"
  141. />
  142. <icon
  143. name="del"
  144. :size="20"
  145. />
  146. </div>
  147. </div>
  148. </div>
  149. </template>
  150. </div>
  151. </n-collapse-item>
  152. <n-collapse-item name="3">
  153. <template #header>
  154. <div class="meeting-content-right-header">
  155. 会议记录
  156. </div>
  157. </template>
  158. <div class="meeting-content-right-content">
  159. <div class="meeting-content-right-content-top">
  160. <template
  161. v-for="s in 20"
  162. :key="s"
  163. >
  164. <div class="meeting-content-right-content-top-item">
  165. <div>头像</div>
  166. <div>
  167. <div>
  168. <span>刘明明</span>
  169. <span>07.10 13:00:09</span>
  170. </div>
  171. <div>
  172. 我是会议记录描述我是会议记录描述我是会议记录描述我是会议记录描述我是会议记录描述我是会议记录描述我是会议记录描述我是会议记录描述。
  173. </div>
  174. </div>
  175. </div>
  176. </template>
  177. </div>
  178. <div class="meeting-content-right-content-bottom">
  179. <n-input
  180. type="text"
  181. placeholder="请输入内容"
  182. />
  183. <n-button type="info">
  184. 发送
  185. </n-button>
  186. </div>
  187. </div>
  188. </n-collapse-item>
  189. </n-collapse>
  190. </div>
  191. </div>
  192. </n-modal>
  193. </template>
  194. <script setup lang="ts">
  195. import { onMounted } from 'vue'
  196. import MeetingService from './meeting.service'
  197. const meetingService = new MeetingService()
  198. const props = defineProps<{
  199. modelValue: boolean,
  200. userList:any[]
  201. }>()
  202. const emit = defineEmits([ 'update:modelValue' ])
  203. function close() {
  204. meetingService.exitRoom()
  205. emit('update:modelValue', false)
  206. }
  207. onMounted(() => {
  208. meetingService._init()
  209. })
  210. </script>
  211. <style lang="less" scoped>
  212. .meeting {
  213. div {
  214. box-sizing: border-box;
  215. user-select: none;
  216. }
  217. &-header {
  218. font-weight: 400;
  219. font-size: 14px;
  220. color: #FFFFFF;
  221. }
  222. &-content {
  223. display: flex;
  224. justify-content: space-between;
  225. padding-top: 10px;
  226. height: 100%;
  227. &-left {
  228. flex: 1;
  229. margin-right: 20px;
  230. &-top {
  231. display: flex;
  232. flex-wrap: wrap;
  233. overflow-y: auto;
  234. overflow-x: hidden;
  235. height: calc(100% - 96px);
  236. margin-bottom: 20px;
  237. &-item {
  238. width: 320px;
  239. height: 288px;
  240. background: #202020;
  241. margin-left: 20px;
  242. margin-bottom: 20px;
  243. position: relative;
  244. border-radius: 5px;
  245. overflow: hidden;
  246. &:nth-last-child(-n+4) {
  247. margin-bottom: 0;
  248. }
  249. &-info {
  250. position: absolute;
  251. bottom: 0;
  252. left: 0;
  253. width: 100%;
  254. font-weight: 400;
  255. font-size: 14px;
  256. color: #FFFFFF;
  257. padding: 0 10px 8px 10px;
  258. &>div {
  259. display: flex;
  260. align-items: center;
  261. justify-content: space-between;
  262. &>svg {
  263. cursor: pointer;
  264. }
  265. }
  266. }
  267. &-names {
  268. position: absolute;
  269. left: 50%;
  270. top: 50%;
  271. transform: translate(-50%, -50%);
  272. background: #2791FE;
  273. width: 110px;
  274. height: 110px;
  275. border-radius: 50%;
  276. display: flex;
  277. align-items: center;
  278. justify-content: center;
  279. font-size: 20px;
  280. color: #FFFFFF;
  281. overflow: hidden;
  282. }
  283. }
  284. }
  285. &-bottom {
  286. flex: 1;
  287. height: 76px;
  288. background: #202020;
  289. display: flex;
  290. justify-content: center;
  291. align-items: center;
  292. position: relative;
  293. &-item {
  294. margin-left: 20px;
  295. text-align: center;
  296. }
  297. &-btn {
  298. position: absolute;
  299. right: 50px;
  300. }
  301. }
  302. }
  303. &-right {
  304. width: 420px;
  305. background: #2d2d2d;
  306. height: 100%;
  307. overflow-y: auto;
  308. overflow-x: hidden;
  309. .n-collapse .n-collapse-item:not(:first-child) {
  310. border: none;
  311. margin-top: 10px;
  312. }
  313. :deep(.n-collapse .n-collapse-item .n-collapse-item__header) {
  314. padding: 10px 15px;
  315. }
  316. :deep(.n-collapse .n-collapse-item .n-collapse-item__header .n-collapse-item-arrow) {
  317. color: white;
  318. font-size: 23px;
  319. }
  320. &-header {
  321. width: calc(100% - 20px);
  322. font-weight: 500;
  323. font-size: 15px;
  324. color: #FFFFFF;
  325. }
  326. &-content {
  327. padding: 10px 15px;
  328. max-height: 672px;
  329. overflow-y: auto;
  330. overflow-x: hidden;
  331. background: #202020;
  332. &-search {
  333. :deep(.n-input .n-input-wrapper) {
  334. background: #1A1A1A;
  335. }
  336. :deep(.n-input .n-input__border, .n-input .n-input__state-border) {
  337. border: 1px solid rgba(220, 222, 226, 0.2);
  338. }
  339. }
  340. &-item {
  341. display: flex;
  342. align-items: center;
  343. margin-top: 15px;
  344. &-icon {
  345. width: 55px;
  346. height: 55px;
  347. background: #2791FE;
  348. border-radius: 50%;
  349. overflow: hidden;
  350. margin-right: 15px;
  351. display: flex;
  352. align-items: center;
  353. justify-content: center;
  354. color: white;
  355. }
  356. &-info {
  357. font-weight: 400;
  358. font-size: 16px;
  359. color: #FFFFFF;
  360. display: flex;
  361. align-items: center;
  362. justify-content: space-between;
  363. flex: 1;
  364. &>div:first-child {
  365. &>p:last-child {
  366. font-size: 14px;
  367. color: #C4C8CE;
  368. }
  369. .isActive {
  370. background: #2791FE;
  371. border-radius: 2px;
  372. font-size: 14px;
  373. padding: 1px 5px;
  374. margin-left: 10px;
  375. }
  376. }
  377. &>div:last-child {
  378. display: flex;
  379. align-items: center;
  380. font-weight: 400;
  381. font-size: 14px;
  382. color: #2791FE;
  383. svg {
  384. margin-left: 5px;
  385. }
  386. }
  387. svg {
  388. cursor: pointer;
  389. }
  390. }
  391. }
  392. &-file {
  393. border-bottom: solid 1px rgba(255, 255, 255, 0.2);
  394. margin: 0;
  395. padding: 10px 0;
  396. &>div:first-child {
  397. border-radius: 5px;
  398. }
  399. }
  400. &-top {
  401. height: 604px;
  402. overflow-y: auto;
  403. overflow-x: hidden;
  404. &-item {
  405. display: flex;
  406. align-items: center;
  407. justify-content: space-between;
  408. margin-bottom: 10px;
  409. &>div:first-child {
  410. width: 55px;
  411. height: 55px;
  412. border-radius: 4px;
  413. background: #2791FE;
  414. color: white;
  415. display: flex;
  416. align-items: center;
  417. justify-content: center;
  418. }
  419. &>div:last-child {
  420. width: calc(100% - 70px);
  421. font-weight: 400;
  422. font-size: 14px;
  423. color: #FFFFFF;
  424. &>div:first-child {
  425. display: flex;
  426. align-items: center;
  427. justify-content: space-between;
  428. &>span:first-child {
  429. font-size: 16px;
  430. }
  431. &>span:last-child {
  432. color: #C4C8CE;
  433. }
  434. }
  435. }
  436. }
  437. }
  438. &-bottom {
  439. display: flex;
  440. align-items: center;
  441. justify-content: space-between;
  442. border-top: solid 1px rgba(255, 255, 255, 0.2);
  443. padding-top: 13px;
  444. button {
  445. margin-left: 10px;
  446. }
  447. :deep(.n-input) {
  448. background: #1A1A1A;
  449. }
  450. :deep(.n-input .n-input__border) {
  451. border: 1px solid rgba(220, 222, 226, 0.2);
  452. }
  453. :deep(.n-input .n-input__placeholder) {
  454. color: var(--n-text-color);
  455. }
  456. }
  457. }
  458. }
  459. }
  460. }
  461. </style>
  462. <style lang="less">
  463. .meeting {
  464. width: 1800px !important;
  465. height: 900px;
  466. background: black;
  467. padding: 0;
  468. }
  469. .n-dialog .n-dialog__close {
  470. margin: 10px 10px 0 0;
  471. }
  472. .n-dialog .n-dialog__title {
  473. background: #202020;
  474. padding: 10px;
  475. }
  476. .n-dialog .n-dialog__content {
  477. height: calc(100% - 50px);
  478. }
  479. </style>