group mangage

This commit is contained in:
cansnow
2026-01-10 15:40:38 +08:00
parent 825ac3457d
commit 941464c330
12 changed files with 392 additions and 181 deletions
@@ -1,5 +1,5 @@
<template>
<view>
<view v-if="storeCurrentMemberInGroup.muteEndTime===0">
<view class="chat_footer">
<!-- 语音信息 -->
<image class="action_btn" v-show="inputType == 'keyboard'" @click.prevent="swtichInputType('record')" mode="heightFix" src="@/static/images/chating_footer_audio.png" alt="" srcset="" />
@@ -43,12 +43,17 @@
</view>
<!-- #endif -->
</view>
<view v-else>
<view class="forbidden_footer">
<view class="mute_tip">您被禁言至{{date(storeCurrentMemberInGroup.muteEndTime)}}</view>
</view>
</view>
</template>
<script>
import {mapGetters,mapActions} from "vuex";
import {getPurePath,html2Text,getVideoCover,getVideoInfo} from "@/util/common";
import {offlinePushInfo} from "@/util/imCommon";
import {offlinePushInfo,date} from "@/util/imCommon";
import {ChatingFooterActionTypes,UpdateMessageTypes,} from "@/constant";
import IMSDK, {IMMethods,MessageStatus,MessageType,} from "openim-uniapp-polyfill";
import CustomEditor from "./CustomEditor";
@@ -101,7 +106,8 @@
"storeCurrentConversation",
"storeCurrentGroup",
"storeBlackList",
"storeCurrentUserID"
"storeCurrentUserID",
"storeCurrentMemberInGroup"
]),
hasContent() {
return html2Text(this.inputHtml) !== "";
@@ -113,6 +119,8 @@
},
},
mounted() {
console.log(this.storeCurrentGroup)
console.log(this.storeCurrentMemberInGroup)
this.setKeyboardListener();
},
beforeDestroy() {
@@ -120,6 +128,7 @@
},
methods: {
...mapActions("message", ["pushNewMessage", "updateOneMessage"]),
date,
async createTextMessage() {
let message = "";
const text = html2Text(this.inputHtml);
@@ -510,6 +519,9 @@
max-height: 120px;
padding: 10rpx 20rpx;
gap: 20rpx;
.mute_tip{
}
.input_content {
flex: 1;
@@ -1,6 +1,6 @@
<template>
<view class="text_message_container bg_container">
<u-parse :content="getContent" :previewImg="false" :showImgMenu="false" selectable></u-parse>
<u-parse :content="getContent" :previewImg="false" :showImgMenu="false"></u-parse>
</view>
</template>