|
@@ -18,13 +18,13 @@
|
|
|
<div class="panel-setting">
|
|
|
<div :class="['panel-nav-icon',{'active':isShowSetting}]" @click.stop="toggleLoginOut()"></div>
|
|
|
<ul :class="['menu',{'active':isShowSetting}]">
|
|
|
- <li class="item" @click.stop="handleLoginOut">
|
|
|
+ <!-- <li class="item" @click.stop="handleLoginOut">
|
|
|
<i class="icon-mute icon-mute0"></i>关闭声音
|
|
|
</li>
|
|
|
<li class="item" @click.stop="handleLoginOut">
|
|
|
<i class="icon-msg icon-msg0"></i>关闭消息
|
|
|
- </li>
|
|
|
- <li class="item" @click.stop="handleLoginOut">
|
|
|
+ </li> -->
|
|
|
+ <li class="item" @click.stop="handleFeedback">
|
|
|
<i class="icon-feedback"></i>意见反馈
|
|
|
</li>
|
|
|
<li class="item" @click.stop="handleLoginOut">
|
|
@@ -70,11 +70,12 @@
|
|
|
<script>
|
|
|
import { mapState } from 'vuex'
|
|
|
import sessionItem from './sessionItem'
|
|
|
-import { searchUserMixin } from '@/mixins'
|
|
|
+import { searchUserMixin, addPanelSessionMixin } from '@/mixins'
|
|
|
+import API from '@/api'
|
|
|
|
|
|
export default {
|
|
|
name: 'panel',
|
|
|
- mixins: [searchUserMixin],
|
|
|
+ mixins: [searchUserMixin, addPanelSessionMixin],
|
|
|
data () {
|
|
|
return {
|
|
|
isShowSetting: false
|
|
@@ -82,6 +83,7 @@ export default {
|
|
|
},
|
|
|
computed: {
|
|
|
...mapState({
|
|
|
+ userId: state => state.userId,
|
|
|
sessionList: state => state.chat.sessionList,
|
|
|
userInfo: state => state.userInfo
|
|
|
})
|
|
@@ -98,6 +100,22 @@ export default {
|
|
|
this.$store.dispatch('doScatterLogout')
|
|
|
this.$store.commit('chatAppLogin', false)
|
|
|
this.$store.commit('toApp', false)
|
|
|
+ this.isShowSetting = false
|
|
|
+ },
|
|
|
+ handleFeedback () {
|
|
|
+ API.base.feedback({
|
|
|
+ group_id: this.curGroupId
|
|
|
+ }).then(({ data }) => {
|
|
|
+ let serverId = data.data.serverId
|
|
|
+ let sessionId = this.userId > serverId
|
|
|
+ ? `${serverId}-${this.userId}`
|
|
|
+ : `${this.userId}-${serverId}`
|
|
|
+
|
|
|
+ this.addPanelSession(serverId, sessionId)
|
|
|
+ this.$store.commit('changeSessionId', sessionId)
|
|
|
+ this.$router.push({ path: `/pm/${sessionId}` })
|
|
|
+ this.isShowSetting = false
|
|
|
+ })
|
|
|
}
|
|
|
},
|
|
|
async created () {
|