From 0ca0153c60f31e3b1b81ef48409d0ccbff9bbe51 Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Mon, 13 Jul 2020 14:34:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A7=E5=9C=B0=E5=9B=BE=E7=BB=BC=E5=90=88?= =?UTF-8?q?=E6=BC=94=E7=BB=83=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 6 ++ src/i18n/langs/en/global.js | 4 +- src/i18n/langs/zh/global.js | 4 +- src/jmapNew/theme/haerbin_01/menus/index.vue | 2 +- .../theme/haerbin_01/menus/menuButton.vue | 25 ++++--- src/layout/components/Qcode.vue | 11 ++- src/store/modules/socket.js | 13 +++- src/utils/baseUrl.js | 4 +- src/views/demonstration/deomonList/index.vue | 17 +++-- src/views/demonstration/deomonTopic/index.vue | 44 ++++++++++-- src/views/demonstration/detail/index.vue | 68 ++++++++++++++++++- .../newChatView/chatMemberList.vue | 2 +- src/views/trainRoom/content-menu.vue | 23 ++----- src/views/trainRoom/e-members.vue | 24 +++---- 14 files changed, 182 insertions(+), 65 deletions(-) diff --git a/src/App.vue b/src/App.vue index 8ba7c2533..a4cf10fd1 100644 --- a/src/App.vue +++ b/src/App.vue @@ -31,6 +31,11 @@ export default { this.subscribeMessage(val); } }, + '$store.state.socket.roomInvite': function (val) { + if (val.creator) { + this.subscribeMessage(val); + } + }, '$store.state.socket.beLogoutCount': async function(val) { this.$store.dispatch('disconnect').then(()=>{ this.$alert(this.$t('tip.logoutTips'), this.$t('tip.hint'), { @@ -74,6 +79,7 @@ export default { this.$refs.deomonTopic.doShow(res); } this.$store.dispatch('socket/setSimulationInvite'); + this.$store.dispatch('socket/setRoomInvite'); } }, subscribe() { diff --git a/src/i18n/langs/en/global.js b/src/i18n/langs/en/global.js index 3a5c54020..dcfa4a439 100644 --- a/src/i18n/langs/en/global.js +++ b/src/i18n/langs/en/global.js @@ -96,8 +96,8 @@ export default { synthesisTrainingTitle: 'Synthesis Training Fast Entrance', pleaseChooseRoom: 'You did not choose a room', inviteJoinRoom: 'Invite you to join the synthesis training!', - trainingHasStart: "{name}'s room (starting)", - trainingNotStart: "{name}'s room (not starting)", + trainingHasStart: "{name}'s room", + trainingNotStart: "{name}'s room", inputRoomNumber: 'Please enter the room number.', chooseRoom: 'Choose Room', codeError: 'The captcha is incorrect', diff --git a/src/i18n/langs/zh/global.js b/src/i18n/langs/zh/global.js index 50aec8584..88092adf9 100644 --- a/src/i18n/langs/zh/global.js +++ b/src/i18n/langs/zh/global.js @@ -97,8 +97,8 @@ export default { synthesisTrainingTitle: '综合演练快速入口', pleaseChooseRoom: '您没有选择房间', inviteJoinRoom: '邀请你加入综合演练!', - trainingHasStart: '{name}的房间(已开始)', - trainingNotStart: '{name}的房间(未开始)', + trainingHasStart: '{name}的房间', + trainingNotStart: '{name}的房间', inputRoomNumber: '请输入房间号', chooseRoom: '选择房间', month: '月', diff --git a/src/jmapNew/theme/haerbin_01/menus/index.vue b/src/jmapNew/theme/haerbin_01/menus/index.vue index 796a71018..0a2ad7610 100644 --- a/src/jmapNew/theme/haerbin_01/menus/index.vue +++ b/src/jmapNew/theme/haerbin_01/menus/index.vue @@ -1,7 +1,7 @@