This commit is contained in:
2022-02-24 11:11:38 +08:00
parent e72d6b3a91
commit 6f508d906d
3 changed files with 9 additions and 15 deletions

View File

@@ -34,17 +34,12 @@
}, },
onLoad(e) { onLoad(e) {
this.targetId = e.targetId this.targetId = e.targetId
if (e.type) { if (e.aId) {
this.type = e.type this.type = e.type
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: ' 公告内容' title: '公告'
}) })
}
if (e.aId) {
this.aId = e.aId this.aId = e.aId
uni.setNavigationBarTitle({
title: '群公告'
})
getGroupAnnouncement(this.targetId, this.aId).then(res => { getGroupAnnouncement(this.targetId, this.aId).then(res => {
this.content = res.content this.content = res.content
}).catch(err => { }).catch(err => {

View File

@@ -36,10 +36,10 @@
topGroupAnnouncement topGroupAnnouncement
} from '@/apis/interfaces/im.js' } from '@/apis/interfaces/im.js'
import onGroupDismiss from '../mixins/onGroupDismiss.js' import onGroupDismiss from '../mixins/onGroupDismiss.js'
import imBase from '../mixins/imBase.js' import imBase from '../mixins/imBase.js'
export default { export default {
mixins: [ mixins: [
imBase, imBase,
onGroupDismiss onGroupDismiss
], ],
@@ -184,7 +184,8 @@
box-sizing: border-box; box-sizing: border-box;
font-size: $title-size-m; font-size: $title-size-m;
color: $text-gray-m; color: $text-gray-m;
padding: 10rpx; padding: 20rpx 10rpx 10rpx 10rpx;
border-top: solid 1rpx #F9F9F9;
.name { .name {
padding-left: 10rpx; padding-left: 10rpx;
@@ -205,8 +206,6 @@
-webkit-line-clamp: 3; -webkit-line-clamp: 3;
overflow: hidden; overflow: hidden;
line-height: 1.5; line-height: 1.5;
border-bottom: solid 1rpx #F9F9F9;
padding-bottom: 20rpx;
span { span {
color: #fff; color: #fff;

BIN
static/.DS_Store vendored

Binary file not shown.