会话
This commit is contained in:
162
src/project/pidu/AppConversation/AppConversation.vue
Normal file
162
src/project/pidu/AppConversation/AppConversation.vue
Normal file
@@ -0,0 +1,162 @@
|
||||
<template>
|
||||
<div class="AppConversation">
|
||||
<AiTopFixed>
|
||||
<u-tabs :list="tabList" :is-scroll="false" :current="currentTabs" height="96" bg-color="#3975C6"
|
||||
inactive-color="#A1C1E8" :bar-style="barStyle" :active-item-style="activeStyle" active-color="#ffffff " @change="change">
|
||||
</u-tabs>
|
||||
<div class="top-search">
|
||||
<div class="left">
|
||||
<u-search v-model="keyword" :clearabled="true" placeholder="请输入昵称" :show-action="false" bg-color="#F5F5F5"
|
||||
search-icon-color="#999" color="#999" height="58" @search="getListInit" @clear="getListInit">
|
||||
</u-search>
|
||||
</div>
|
||||
</div>
|
||||
<div class="top-select">
|
||||
<div class="item">
|
||||
<AiAreaPicker v-model="areaId" :areaId="areaId" @select="areaSelect" :name.sync="areaName" style="color: #666" selectRoot>
|
||||
<span style="margin-left: 4px" v-if="areaName">{{ areaName }}</span>
|
||||
<span v-else style="color:#999;">行政区划</span>
|
||||
<u-icon name="arrow-down" color="#666" size="28" style="margin-left: 4px" />
|
||||
</AiAreaPicker>
|
||||
</div>
|
||||
<div class="item">
|
||||
<span style="color:#999;">部门名称</span>
|
||||
<!-- <span v-else>{{ $dict.getLabel('EP_handleType', handleType) }}</span> -->
|
||||
<u-icon name="arrow-down" color="#666" size="28" style="margin-left: 4px" />
|
||||
</div>
|
||||
</div>
|
||||
</AiTopFixed>
|
||||
<div class="user-list">
|
||||
<div class="item">
|
||||
<img src="./img/user-img.png" alt="">
|
||||
<p>李毅</p>
|
||||
</div>
|
||||
<div class="item">
|
||||
<img src="./img/user-img.png" alt="">
|
||||
<p>李毅</p>
|
||||
</div>
|
||||
<div class="item">
|
||||
<img src="./img/user-img.png" alt="">
|
||||
<p>李毅</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "AppConversation",
|
||||
appName: "会话存档",
|
||||
data() {
|
||||
return {
|
||||
tabList: [
|
||||
{name: '群聊会话'},
|
||||
{name: '私聊会话'},
|
||||
],
|
||||
currentTabs: 0,
|
||||
barStyle: {
|
||||
'width': '24px',
|
||||
'height': '2px',
|
||||
'border-radius': '0',
|
||||
'bottom': '5px'
|
||||
},
|
||||
activeStyle: {
|
||||
'font-weight' : '400',
|
||||
},
|
||||
keyword: '',
|
||||
areaId: '',
|
||||
areaName: '',
|
||||
};
|
||||
},
|
||||
onShow() {
|
||||
|
||||
},
|
||||
methods: {
|
||||
change(index) {
|
||||
this.keyword = ''
|
||||
this.currentTabs = index
|
||||
this.getListInit()
|
||||
},
|
||||
getListInit() {
|
||||
|
||||
},
|
||||
areaSelect(e) {
|
||||
this.areaId = e
|
||||
this.getListInit()
|
||||
this.getTotal()
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.AppConversation {
|
||||
height: 100%;
|
||||
::v-deep .AiTopFixed {
|
||||
.placeholder {
|
||||
.content {
|
||||
padding: 0 !important;
|
||||
}
|
||||
}
|
||||
.fixed {
|
||||
margin: 0 !important;
|
||||
.content {
|
||||
padding: 0 !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
.top-search {
|
||||
padding: 20px 32px;
|
||||
display: flex;
|
||||
.left {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
.top-select {
|
||||
display: flex;
|
||||
padding: 28px 0;
|
||||
.item {
|
||||
flex: 1;
|
||||
padding: 0 8px;
|
||||
text-align: center;
|
||||
span {
|
||||
display: inline-block;
|
||||
font-family: PingFangSC-Medium;
|
||||
font-weight: 500;
|
||||
font-size: 28px;
|
||||
color: #666;
|
||||
line-height: 40px;
|
||||
}
|
||||
}
|
||||
}
|
||||
.user-list {
|
||||
border-top: 1px solid #eee;
|
||||
background-color: #fff;
|
||||
.item {
|
||||
padding: 24px 0 0 32px;
|
||||
display: flex;
|
||||
img {
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
margin-right: 32px;
|
||||
}
|
||||
p {
|
||||
padding-bottom: 32px;
|
||||
width: calc(100% - 112px);
|
||||
line-height: 80px;
|
||||
font-family: PingFangSC-Medium;
|
||||
font-weight: 500;
|
||||
font-size: 32px;
|
||||
color: #333;
|
||||
letter-spacing: 0.3px;
|
||||
border-bottom: 1px solid #eee;
|
||||
}
|
||||
}
|
||||
.item:nth-last-child(1) {
|
||||
p {
|
||||
border-bottom: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user