查看消息调准

This commit is contained in:
2022-02-24 10:17:54 +08:00
parent 9c7a8c8ee1
commit 4a31ba32f7
4 changed files with 23 additions and 36 deletions

View File

@@ -1,11 +1,11 @@
<template>
<view class="create">
<view class="create-title">公告内容</view>
<block v-if="type !== 'check'">
<block v-if="type !== 'cheack'">
<u--textarea v-model="content" count height="240" maxlength="240" placeholder="请输入公告内容" />
<u-button type="primary" text="发布" :disabled="disabled" @click="onCreate" color="#34CE98" />
</block>
<block v-if="type === 'check'">
<block v-if="type === 'cheack'">
<view class="content-a"> {{content}} </view>
</block>
</view>
@@ -27,13 +27,17 @@
targetId: '',
content: '',
aId: '',
type: '' // check ' 查看详情'
type: '' // cheack ' 查看详情'
}
},
onLoad(e) {
onLoad(e) {
console.log(e,'e,,,,,')
this.targetId = e.targetId
if (e.type) {
this.type = e.type
this.type = e.type
uni.setNavigationBarTitle({
title:' 公告内容'
})
}
if (e.aId) {
this.aId = e.aId

View File

@@ -78,7 +78,7 @@
onNavigationBarButtonTap() {
if (this.isAdmin) {
uni.navigateTo({
url: '/pages/im/group/announceCreate?type=check&targetId=' + this.targetId
url: '/pages/im/group/announceCreate?targetId=' + this.targetId
})
} else {
uni.showToast({
@@ -121,7 +121,7 @@
},
tabA(id) {
uni.navigateTo({
url: '/pages/im/group/announceCreate?type=check&targetId=' + this.targetId + '&aId=' + id
url: '/pages/im/group/announceCreate?type=cheack&targetId=' + this.targetId + '&aId=' + id
})
},
onTop(aId) {
@@ -134,14 +134,6 @@
uni.$emit('updateAnnouncement')
this.initData()
})
// uni.showModal({
// title: ' 置顶该公告',
// success: (res) => {
// if (res.confirm) {
// }
// }
// })
},
// 删除公告
onDelete(aId) {
@@ -154,14 +146,6 @@
uni.$emit('updateAnnouncement')
this.initData()
})
// uni.showModal({
// title: '删除该公告',
// success: (res) => {
// if (res.confirm) {
// }
// }
// })
}
}
}