会话列表,长按选中的状态调整

This commit is contained in:
2022-02-21 16:37:05 +08:00
parent fbe1add9cf
commit d8b90f97d1
3 changed files with 7 additions and 5 deletions

View File

@@ -373,7 +373,6 @@
{
"path": "pages/im/private/chat",
"style": {
"navigationBarBackgroundColor":"#FFFFFF"
}
},
{
@@ -452,7 +451,7 @@
{
"path": "pages/im/group/chat",
"name": "imGroupChat",
"style": {
"style": {
"navigationBarTitleText": "群聊",
"app-plus": {
"titleNView": {

View File

@@ -1,10 +1,9 @@
<template>
<view>
<view v-for="(item, index) in conversations" :key="index" :class="['message', { 'is-top': item.isTop }]"
<view v-for="(item, index) in conversations" :key="index" :class="['message', { 'is-top': item.isTop, 'is-active': pickedItem.targetId == item.targetId }]"
:data-item="item" @longpress="onLongPress" @click="toDetail(item)">
<message-cell :item="item" />
</view>
<view class="shade" @click="hidePop" v-show="showPop">
<view class="pop" :style="popStyle" :class="{'show':showPop}">
<view v-for="(item, index) in popButton" :key="index" @click="pickerMenu" :data-index="index">
@@ -131,6 +130,10 @@
&.is-top {
background: $window-color;
}
&.is-active {
background: #F8FAFF;
}
}

View File

@@ -70,7 +70,7 @@
position: relative;
flex: 1;
border-bottom-width: 0.5px !important;
border-color: #f9f9f9 !important;
border-color: #eee !important;
border-bottom-style: solid;
.header {