douyin/src/pages/message/ChatDetail.vue
2021-07-25 17:39:16 +08:00

177 lines
3.8 KiB
Vue

<template>
<div class="ChatDetail">
<BaseHeader>
<template v-slot:center>
<span class="f16">聊天详情</span>
</template>
</BaseHeader>
<div class="content">
<div class="peoples">
<People v-for="item in list " :people="item"></People>
</div>
<div class="setting">
<div class="row">
<div class="left">消息免打扰</div>
<div class="right">
<switches v-model="noMessage" theme="bootstrap" color="success"></switches>
</div>
</div>
<div class="row">
<div class="left">置顶聊天</div>
<div class="right">
<switches v-model="top" theme="bootstrap" color="success"></switches>
</div>
</div>
<div class="row" @click="$nav('/set-remark')">
<div class="left">设备备注</div>
<div class="right">
<img src="../../assets/img/icon/back.png" alt="">
</div>
</div>
<!-- TODO 没做 -->
<div class="row">
<div class="left">举报</div>
<div class="right">
<img src="../../assets/img/icon/back.png" alt="">
</div>
</div>
<div class="row" @click="blockDialog = true">
<div class="left">拉黑</div>
<div class="right">
<img src="../../assets/img/icon/back.png" alt="">
</div>
</div>
</div>
</div>
<from-bottom-dialog
v-model="blockDialog"
:show-heng-gang="false"
height="20rem"
mode="white">
<div class="block-dialog">
<div class="notice">
拉黑后,对方将无法搜索到你,也不能再给你发私信
</div>
<div class="row">确认拉黑</div>
<div class="row">不让 TA 看</div>
<div class="space"></div>
<div class="row" @click="blockDialog = false">取消</div>
</div>
</from-bottom-dialog>
</div>
</template>
<script>
import Switches from './components/swtich/switches';
import People from "../people/components/People";
import FromBottomDialog from "../../components/dialog/FromBottomDialog";
export default {
name: "ChatDetail",
components: {
Switches,
People,
FromBottomDialog
},
data() {
return {
noMessage: false,
top: false,
blockDialog: false,
list: [
{
type: 1,
name: 'A'
},
{
type: 6,
name: '多人聊天'
},
]
}
},
computed: {},
created() {
},
methods: {
t() {
this.enabled = !this.enabled
}
}
}
</script>
<style scoped lang="scss">
@import "../../assets/scss/index";
.ChatDetail {
position: fixed;
left: 0;
right: 0;
bottom: 0;
top: 0;
overflow: auto;
color: white;
font-size: 1.4rem;
.content {
padding-top: 6rem;
.peoples {
padding: 0 2rem;
.People {
border-bottom: 1px solid $second-btn-color-tran;
}
}
.setting {
.row {
padding-left: 2rem;
padding-right: 2rem;
display: flex;
align-items: center;
justify-content: space-between;
height: 4rem;
.right {
img {
height: 2rem;
}
}
}
}
}
.block-dialog {
color: black;
.notice {
color: $second-text-color;
font-size: 1.2rem;
height: 4rem;
display: flex;
justify-content: center;
align-items: center;
}
.row {
height: 5rem;
display: flex;
justify-content: center;
align-items: center;
border-top: 1px solid gainsboro;
&:nth-last-child(1) {
border-top: none;
}
}
.space {
height: 1rem;
background: whitesmoke;
}
}
}
</style>