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

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", "path": "pages/im/private/chat",
"style": { "style": {
"navigationBarBackgroundColor":"#FFFFFF"
} }
}, },
{ {

View File

@@ -1,10 +1,9 @@
<template> <template>
<view> <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)"> :data-item="item" @longpress="onLongPress" @click="toDetail(item)">
<message-cell :item="item" /> <message-cell :item="item" />
</view> </view>
<view class="shade" @click="hidePop" v-show="showPop"> <view class="shade" @click="hidePop" v-show="showPop">
<view class="pop" :style="popStyle" :class="{'show':showPop}"> <view class="pop" :style="popStyle" :class="{'show':showPop}">
<view v-for="(item, index) in popButton" :key="index" @click="pickerMenu" :data-index="index"> <view v-for="(item, index) in popButton" :key="index" @click="pickerMenu" :data-index="index">
@@ -132,6 +131,10 @@
&.is-top { &.is-top {
background: $window-color; background: $window-color;
} }
&.is-active {
background: #F8FAFF;
}
} }
/* 遮罩 */ /* 遮罩 */

View File

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