|
|
|
@ -1,12 +1,17 @@
@@ -1,12 +1,17 @@
|
|
|
|
|
<template> |
|
|
|
|
<div id="Message" ref="app" :class="createChatDialog?'disable-scroll':''"> |
|
|
|
|
<div class="header"> |
|
|
|
|
<span style="opacity: 0;">消息</span> |
|
|
|
|
<span class="f18">消息</span> |
|
|
|
|
<div class="no-search" v-show="false"> |
|
|
|
|
<BaseHeader> |
|
|
|
|
<template v-slot:center> |
|
|
|
|
<span class="f16">消息</span> |
|
|
|
|
</template> |
|
|
|
|
<template v-slot:right> |
|
|
|
|
<span class="f14" @click="createChatDialog = true">创建群聊</span> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
</BaseHeader> |
|
|
|
|
|
|
|
|
|
<div class="content"> |
|
|
|
|
<Search class="m2r"></Search> |
|
|
|
|
<Search class="ml2r mr2r mb2r"></Search> |
|
|
|
|
<div class="friends pl1r "> |
|
|
|
|
<div class="friend pr1r pl1r" |
|
|
|
|
@click="$nav('/message/chat')" |
|
|
|
@ -250,10 +255,10 @@
@@ -250,10 +255,10 @@
|
|
|
|
|
<Footer v-bind:init-tab="4"/> |
|
|
|
|
<from-bottom-dialog page-id="Message" v-model="createChatDialog"> |
|
|
|
|
<div class="create-chat-wrapper" v-show="!showJoinedChat"> |
|
|
|
|
<Search :isShowText="isShowText" |
|
|
|
|
@click="isShowText = true" |
|
|
|
|
@notice="isShowText = false;" |
|
|
|
|
@clear="isShowText = false" |
|
|
|
|
<Search :isShowRightText="isShowRightText" |
|
|
|
|
@click="isShowRightText = true" |
|
|
|
|
@notice="isShowRightText = false;" |
|
|
|
|
@clear="isShowRightText = false" |
|
|
|
|
class="ml2r mr2r" placeholder="搜索用户" v-model="createChatSearchKey"></Search> |
|
|
|
|
<template v-if="createChatSearchKey"> |
|
|
|
|
<div class="search-result" v-if="searchFriends.length"> |
|
|
|
@ -353,6 +358,19 @@
@@ -353,6 +358,19 @@
|
|
|
|
|
</div> |
|
|
|
|
</transition> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="searching"> |
|
|
|
|
<Search class="m2r" v-model="searchKey" |
|
|
|
|
show-text="取消" |
|
|
|
|
:isShowRightText="true"/> |
|
|
|
|
<div class="more-chat"> |
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
@ -379,11 +397,12 @@ export default {
@@ -379,11 +397,12 @@ export default {
|
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
isShowRecommend: false, |
|
|
|
|
searchKey: '', |
|
|
|
|
createChatSearchKey: '', |
|
|
|
|
showJoinedChat: false, |
|
|
|
|
loading: false, |
|
|
|
|
createChatDialog: false, |
|
|
|
|
isShowText: false, |
|
|
|
|
isShowRightText: false, |
|
|
|
|
text: 'AAAAAAAAA、BBBBBBBBBBBBB、CCCCCCCC', |
|
|
|
|
// friends: [ |
|
|
|
|
// { |
|
|
|
@ -504,6 +523,8 @@ export default {
@@ -504,6 +523,8 @@ export default {
|
|
|
|
|
padding-bottom: 6rem; |
|
|
|
|
color: white; |
|
|
|
|
|
|
|
|
|
.no-search { |
|
|
|
|
|
|
|
|
|
.create-chat-wrapper { |
|
|
|
|
min-height: 70vh; |
|
|
|
|
padding-bottom: 6rem; |
|
|
|
@ -738,17 +759,12 @@ export default {
@@ -738,17 +759,12 @@ export default {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.header { |
|
|
|
|
position: fixed; |
|
|
|
|
width: 100vw; |
|
|
|
|
background: @main-bg; |
|
|
|
|
z-index: 11; |
|
|
|
|
height: 6rem; |
|
|
|
|
display: flex; |
|
|
|
|
padding: @padding-page; |
|
|
|
|
box-sizing: border-box; |
|
|
|
|
align-items: center; |
|
|
|
|
justify-content: space-between; |
|
|
|
|
/deep/ #BaseHeader .header { |
|
|
|
|
border-bottom: none; |
|
|
|
|
|
|
|
|
|
.left { |
|
|
|
|
opacity: 0; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.content { |
|
|
|
@ -945,91 +961,6 @@ export default {
@@ -945,91 +961,6 @@ export default {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.recommend { |
|
|
|
|
.title { |
|
|
|
|
padding: 2rem 2rem 1rem 2rem; |
|
|
|
|
display: flex; |
|
|
|
|
justify-content: space-between; |
|
|
|
|
align-items: center; |
|
|
|
|
|
|
|
|
|
.left { |
|
|
|
|
color: @second-text-color; |
|
|
|
|
|
|
|
|
|
img { |
|
|
|
|
width: 1rem; |
|
|
|
|
height: 1rem; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.right { |
|
|
|
|
border-radius: 50%; |
|
|
|
|
background: @second-text-color; |
|
|
|
|
padding: .5rem; |
|
|
|
|
width: 1rem; |
|
|
|
|
height: 1rem; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.item { |
|
|
|
|
display: flex; |
|
|
|
|
align-items: center; |
|
|
|
|
|
|
|
|
|
&.top { |
|
|
|
|
background: #353a4f; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
&:active { |
|
|
|
|
background: #353a4f; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.head-image { |
|
|
|
|
margin-left: 2rem; |
|
|
|
|
margin-right: 1.5rem; |
|
|
|
|
width: 4.8rem; |
|
|
|
|
height: 4.8rem; |
|
|
|
|
border-radius: 50%; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.content { |
|
|
|
|
flex: 1; |
|
|
|
|
display: flex; |
|
|
|
|
justify-content: space-between; |
|
|
|
|
padding: 1.5rem 0; |
|
|
|
|
|
|
|
|
|
.left { |
|
|
|
|
.name { |
|
|
|
|
font-size: 1.8rem; |
|
|
|
|
color: white; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.detail { |
|
|
|
|
color: @second-text-color; |
|
|
|
|
font-size: 1.2rem; |
|
|
|
|
margin-top: 4px; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.right { |
|
|
|
|
margin-right: 2rem; |
|
|
|
|
display: flex; |
|
|
|
|
align-items: center; |
|
|
|
|
|
|
|
|
|
.button { |
|
|
|
|
background: @primary-btn-color; |
|
|
|
|
margin-left: .8rem; |
|
|
|
|
padding: .8rem 2rem; |
|
|
|
|
border-radius: .3rem; |
|
|
|
|
|
|
|
|
|
&:nth-last-child(1) { |
|
|
|
|
background: rgb(58, 58, 67); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.recommend-dialog { |
|
|
|
|
position: fixed; |
|
|
|
|
z-index: 11; |
|
|
|
@ -1099,4 +1030,10 @@ export default {
@@ -1099,4 +1030,10 @@ export default {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.searching { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|