Skip to content

Commit

Permalink
优化代码
Browse files Browse the repository at this point in the history
  • Loading branch information
gzydong committed Jul 20, 2021
1 parent 5430532 commit 5110343
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ server {
|代码仓库|前端源码|后端源码|
|-|-|-|
|Github|https://github.com/gzydong/LumenIM|https://github.com/gzydong/hyperf-chat|
|码云|https://gitee.com/gzydong/LumenIM||
|码云|https://gitee.com/gzydong/LumenIM|https://gitee.com/gzydong/hyperf-chat|


#### 联系方式
Expand Down
9 changes: 7 additions & 2 deletions src/components/chat/messaege/VoteMessage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
</div>
</div>
<div class="vfooter vote-view">
<p>应参与人数:{{ answer_num }}</p>
<p>实际参与人数:{{ answered_num }}</p>
<p>应参与人数:{{ answer_num }}</p>
<p>实际参与人数:{{ answered_num }}</p>
</div>
</template>
<template v-else>
Expand Down Expand Up @@ -265,6 +265,11 @@ export default {
justify-content: flex-start;
align-items: flex-start;
padding-left: 15px;
p {
border-left: 2px solid #2196f3;
padding-left: 5px;
}
}
}
}
Expand Down
5 changes: 4 additions & 1 deletion src/components/editor/MeEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<i class="el-icon-folder-opened" />
<p class="tip-title">上传管理</p>
</li>
<li @click="vote.isShow = true">
<li v-show="isGroupTalk" @click="vote.isShow = true">
<i class="el-icon-s-data" />
<p class="tip-title">发起投票</p>
</li>
Expand Down Expand Up @@ -158,6 +158,9 @@ export default {
talkUser() {
return this.$store.state.dialogue.index_name
},
isGroupTalk() {
return this.$store.state.dialogue.talk_type == 2
},
},
watch: {
talkUser(n_index_name) {
Expand Down
6 changes: 3 additions & 3 deletions src/components/editor/MeEditorVote.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="lum-dialog-mask animated fadeIn">
<el-container class="lum-dialog-box">
<el-header class="header no-select" height="60px">
<p>投票</p>
<p>发起投票</p>
<p class="tools">
<i class="el-icon-close" @click="$emit('close')" />
</p>
Expand All @@ -21,8 +21,8 @@
size="medium"
clear="vote-input"
v-model.trim="title"
placeholder="请输入投票主题,最多60字"
:maxlength="40"
placeholder="请输入投票主题,最多50字"
:maxlength="50"
/>
</div>

Expand Down
9 changes: 9 additions & 0 deletions src/constants/talk.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/**
* 私聊
*/
const PRIVATE_CHAT = 1

/**
* 群聊
*/
const GROUP_CHAT = 2

0 comments on commit 5110343

Please sign in to comment.