群UI需要调整
This commit is contained in:
@@ -287,6 +287,7 @@
|
||||
}
|
||||
|
||||
function onCurrentConversationUpdate(conversation: IConversationModel) {
|
||||
|
||||
updateUIUserNotInGroup(conversation)
|
||||
// return when currentConversation is null
|
||||
if (!conversation) {
|
||||
|
||||
@@ -27,12 +27,12 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="tui-contact-list-card-right">
|
||||
<div
|
||||
<!-- <div
|
||||
v-if="groupTypeForShow"
|
||||
class="tui-contact-list-card-right-group-type"
|
||||
>
|
||||
{{ groupTypeForShow }}
|
||||
</div>
|
||||
</div> -->
|
||||
<div
|
||||
v-if="showApplicationStatus"
|
||||
class="tui-contact-list-card-right-application"
|
||||
|
||||
@@ -133,6 +133,7 @@
|
||||
Friend,
|
||||
FriendApplication
|
||||
} from '@tencentcloud/chat-uikit-engine-lite'
|
||||
import { navigateTo } from '../../../../utils/router'
|
||||
|
||||
const currentContactListKey = ref<keyof IContactList>('')
|
||||
const currentContactInfo = ref<IContactInfoType>({} as IContactInfoType)
|
||||
@@ -237,7 +238,8 @@
|
||||
|
||||
function toggleCurrentContactList(key: keyof IContactList) {
|
||||
if (key === 'currentContactSearchingStatus') {
|
||||
TUIStore.update(StoreName.CUSTOM, key, true)
|
||||
navigateTo('/pages/adduser/index')
|
||||
// TUIStore.update(StoreName.CUSTOM, key, true)
|
||||
return
|
||||
}
|
||||
if (currentContactListKey.value === key) {
|
||||
@@ -290,12 +292,13 @@
|
||||
}
|
||||
|
||||
const selectFriend = (item: any) => {
|
||||
TUIStore.update(
|
||||
StoreName.CUSTOM,
|
||||
'currentContactListKey',
|
||||
'friendList'
|
||||
)
|
||||
selectItem(item)
|
||||
navigateTo('/pages/adduser/details', { id: item.userID, type: '1' })
|
||||
// TUIStore.update(
|
||||
// StoreName.CUSTOM,
|
||||
// 'currentContactListKey',
|
||||
// 'friendList'
|
||||
// )
|
||||
// selectItem(item)
|
||||
}
|
||||
|
||||
function onDisplayOnlineStatusUpdated(status: boolean) {
|
||||
|
||||
@@ -64,6 +64,7 @@
|
||||
import addCircle from '../../assets/icon/add-friend.svg'
|
||||
import backSVG from '../../assets/icon/back.svg'
|
||||
import { CONTACT_INFO_TITLE } from '../../constant'
|
||||
import { navigateTo } from '../../../utils/router'
|
||||
|
||||
const emits = defineEmits(['switchConversation'])
|
||||
|
||||
@@ -97,11 +98,12 @@
|
||||
}
|
||||
|
||||
const openContactSearch = () => {
|
||||
TUIStore.update(
|
||||
StoreName.CUSTOM,
|
||||
'currentContactSearchingStatus',
|
||||
true
|
||||
)
|
||||
navigateTo('/pages/adduser/index')
|
||||
// TUIStore.update(
|
||||
// StoreName.CUSTOM,
|
||||
// 'currentContactSearchingStatus',
|
||||
// true
|
||||
// )
|
||||
}
|
||||
|
||||
const resetContactType = () => {
|
||||
|
||||
@@ -146,8 +146,7 @@
|
||||
}
|
||||
})
|
||||
} else if (item.data.name === 'isAddUser') {
|
||||
console.log('添加好友')
|
||||
showDialog('提示', '开发中...')
|
||||
navigateTo('/pages/adduser/index')
|
||||
} else {
|
||||
listener.onClicked(item)
|
||||
}
|
||||
|
||||
@@ -372,6 +372,11 @@
|
||||
<style lang="scss" scoped>
|
||||
.group-list {
|
||||
margin: 0 !important;
|
||||
.group-list-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border-bottom: 2rpx solid #e5e5e5;
|
||||
}
|
||||
}
|
||||
.popup-content {
|
||||
display: flex;
|
||||
|
||||
Reference in New Issue
Block a user