群解散时,无论在群组中的哪个页面,都退回到会话列表页面
This commit is contained in:
@@ -35,8 +35,12 @@
|
||||
deleteGroupAnnouncement,
|
||||
topGroupAnnouncement
|
||||
} from '@/apis/interfaces/im.js'
|
||||
import onGroupDismiss from '@/utils/im/onGroupDismiss.js'
|
||||
|
||||
export default {
|
||||
mixins: [
|
||||
onGroupDismiss
|
||||
],
|
||||
data() {
|
||||
return {
|
||||
targetId: '',
|
||||
@@ -54,8 +58,8 @@
|
||||
name: '置顶该公告',
|
||||
disabled: false
|
||||
}],
|
||||
actionTitle: '请选择操作',
|
||||
bg:'#fff'
|
||||
actionTitle: '请选择操作',
|
||||
bg: '#fff'
|
||||
}
|
||||
},
|
||||
onLoad(e) {
|
||||
@@ -84,11 +88,11 @@
|
||||
methods: {
|
||||
// 获取公告信息
|
||||
initData() {
|
||||
getGroupAnnouncements(this.targetId).then(res => {
|
||||
if(res.length>0){
|
||||
this.bg = '#f9f9f9'
|
||||
}else{
|
||||
this.bg = '#fff'
|
||||
getGroupAnnouncements(this.targetId).then(res => {
|
||||
if (res.length > 0) {
|
||||
this.bg = '#f9f9f9'
|
||||
} else {
|
||||
this.bg = '#fff'
|
||||
}
|
||||
this.announcements = res
|
||||
this.loading = false
|
||||
@@ -183,8 +187,8 @@
|
||||
.item {
|
||||
background-color: #fff;
|
||||
padding: $padding $padding + 10 10rpx $padding + 10;
|
||||
border-bottom: $padding solid #f9f9f9;
|
||||
|
||||
border-bottom: $padding solid #f9f9f9;
|
||||
|
||||
|
||||
.user {
|
||||
display: flex;
|
||||
@@ -193,7 +197,7 @@
|
||||
align-items: center;
|
||||
box-sizing: border-box;
|
||||
font-size: $title-size-m;
|
||||
color: $text-gray-m;
|
||||
color: $text-gray-m;
|
||||
padding: 10rpx;
|
||||
|
||||
.name {
|
||||
@@ -214,8 +218,8 @@
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 3;
|
||||
overflow: hidden;
|
||||
line-height: 1.5;
|
||||
border-bottom: solid 1rpx #F9F9F9;
|
||||
line-height: 1.5;
|
||||
border-bottom: solid 1rpx #F9F9F9;
|
||||
padding-bottom: 20rpx;
|
||||
|
||||
span {
|
||||
|
||||
Reference in New Issue
Block a user