debug
This commit is contained in:
parent
b3f806810e
commit
97704f07a9
@ -157,3 +157,9 @@ p {
|
|||||||
.link {
|
.link {
|
||||||
color: rgb(18, 100, 149);
|
color: rgb(18, 100, 149);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sub-title-g{
|
||||||
|
margin-top: @padding-page;
|
||||||
|
color: @second-text-color;
|
||||||
|
font-size: 1.2rem;
|
||||||
|
}
|
||||||
@ -360,12 +360,16 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="searching" v-show="searching">
|
<div class="searching" v-show="searching">
|
||||||
<Search class="m2r" v-model="searchKey"
|
<Search v-model="searchKey"
|
||||||
right-text="取消"
|
right-text="取消"
|
||||||
right-text-color="white"
|
right-text-color="white"
|
||||||
@notice="searching = false"
|
@notice="searching = false"
|
||||||
:isShowRightText="true"/>
|
:isShowRightText="true"/>
|
||||||
<div class="more-chat">
|
<div class="more-chat">
|
||||||
|
<div class="sub-title-g">更多聊天</div>
|
||||||
|
<People v-for="(item,index) in moreChat"
|
||||||
|
:key="item.id"
|
||||||
|
:people="item"/>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -384,6 +388,7 @@ import {mapState} from "vuex";
|
|||||||
import Peoples from "../people/components/Peoples";
|
import Peoples from "../people/components/Peoples";
|
||||||
import Mask from "../../components/Mask";
|
import Mask from "../../components/Mask";
|
||||||
import Scroll from "../../components/Scroll";
|
import Scroll from "../../components/Scroll";
|
||||||
|
import People from "../people/components/People";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "Message",
|
name: "Message",
|
||||||
@ -394,12 +399,13 @@ export default {
|
|||||||
Search,
|
Search,
|
||||||
FromBottomDialog,
|
FromBottomDialog,
|
||||||
Check,
|
Check,
|
||||||
Peoples
|
Peoples,
|
||||||
|
People
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
isShowRecommend: false,
|
isShowRecommend: false,
|
||||||
searching: false,
|
searching: true,
|
||||||
searchKey: '',
|
searchKey: '',
|
||||||
createChatSearchKey: '',
|
createChatSearchKey: '',
|
||||||
showJoinedChat: false,
|
showJoinedChat: false,
|
||||||
@ -459,6 +465,8 @@ export default {
|
|||||||
// ],
|
// ],
|
||||||
searchFriends: [],
|
searchFriends: [],
|
||||||
recommend: [],
|
recommend: [],
|
||||||
|
|
||||||
|
moreChat: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -485,6 +493,7 @@ export default {
|
|||||||
this.recommend.map(v => {
|
this.recommend.map(v => {
|
||||||
v.type = -2
|
v.type = -2
|
||||||
})
|
})
|
||||||
|
this.moreChat = this.$clone(this.friends.all.slice(0, 3))
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
@ -1035,6 +1044,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.searching {
|
.searching {
|
||||||
|
padding: @padding-page;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,6 +2,13 @@
|
|||||||
<div class="People">
|
<div class="People">
|
||||||
<img :src="$imgPreview(people.avatar)" alt="" class="head-image pull-left">
|
<img :src="$imgPreview(people.avatar)" alt="" class="head-image pull-left">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
<template v-if="mode === 'normal'">
|
||||||
|
<div class="left">
|
||||||
|
<div class="name">{{ people.name }}</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
|
||||||
<template v-if="mode === 'fans'">
|
<template v-if="mode === 'fans'">
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<div class="name">{{ people.name }}</div>
|
<div class="name">{{ people.name }}</div>
|
||||||
@ -113,7 +120,7 @@ export default {
|
|||||||
},
|
},
|
||||||
mode: {
|
mode: {
|
||||||
type: String,
|
type: String,
|
||||||
default: 'fans'
|
default: 'normal'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
@ -153,7 +160,7 @@ export default {
|
|||||||
.People {
|
.People {
|
||||||
transition: all 0.3s ease;
|
transition: all 0.3s ease;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 8rem;
|
height: 7rem;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user