查看消息调准

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

@@ -2,8 +2,7 @@
<view class="">
<view class="notify" v-if="message.objectName === 'RC:GrpNtf'">
{{ message.content.message }}
<text class="link" @click="toAnnounce(message.content.extra)"
v-if="message.content.operation == 'ANNOUNCEMENT'">点击查看 </text>
<text class="link" @click="toAnnounce(message)" v-if="message.content.operation == 'ANNOUNCEMENT'">点击查看 </text>
</view>
<view class="notify" v-else-if="message.objectName === 'RC:RcNtf'">
{{ contact(message.senderUserId).name }} 撤回了一条消息
@@ -32,11 +31,11 @@
import showText from './show/showText'
import showCall from './show/showCall'
import utils from '@/utils/index.js'
import imBase from '../mixins/imBase.js'
export default {
mixins: [
imBase
import imBase from '../mixins/imBase.js'
export default {
mixins: [
imBase
],
components: {
showCall,
@@ -69,10 +68,10 @@
}
},
// 跳转群公告
toAnnounce(targetId) {
if (targetId) {
uni.navigateTo({
url: '/pages/im/group/announceCreate?type=check&targetId=' + this.targetId
toAnnounce(message) {
if (message.content.extra) {
uni.navigateTo({
url: '/pages/im/group/announceCreate?type=cheack&targetId=' + message.targetId + '&aId=' + message.content.extra
})
} else {
uni.showToast({
@@ -126,7 +125,7 @@
color: #666;
.link {
color: blue;
color: $main-color;
margin-left: 10rpx;
}
}