解决删除会话后发消息,数量统计不正确问题;解决图片显示不正常问题
Some checks are pending
Check / lint (push) Waiting to run
Check / typecheck (push) Waiting to run
Check / build (build, 18.x, ubuntu-latest) (push) Waiting to run
Check / build (build, 18.x, windows-latest) (push) Waiting to run
Check / build (build:app, 18.x, ubuntu-latest) (push) Waiting to run
Check / build (build:app, 18.x, windows-latest) (push) Waiting to run
Check / build (build:mp-weixin, 18.x, ubuntu-latest) (push) Waiting to run
Check / build (build:mp-weixin, 18.x, windows-latest) (push) Waiting to run

This commit is contained in:
wangyifeng 2025-03-28 18:33:43 +08:00
parent f17250f236
commit 99ffb6ec05
3 changed files with 31 additions and 23 deletions

View File

@ -143,27 +143,32 @@ class Talk extends Base {
!useTalkStore().items[useTalkStore().findTalkIndex(this.getIndexName())]
?.is_disturb
) {
if (typeof plus !== 'undefined') {
let OAWebView = plus.webview.all()
OAWebView.forEach((webview) => {
if (webview.id === 'webviewId1') {
webview.evalJS(`updateUnreadMsgNumAdd()`)
}
})
} else {
document.addEventListener('plusready', () => {
let OAWebView = plus.webview.all()
OAWebView.forEach((webview) => {
if (webview.id === 'webviewId1') {
webview.evalJS(`updateUnreadMsgNumAdd()`)
}
})
})
}
this.updateUnreadMsgNumAdd()
}
}
}
//更新未读数量+1
updateUnreadMsgNumAdd() {
if (typeof plus !== 'undefined') {
let OAWebView = plus.webview.all()
OAWebView.forEach((webview) => {
if (webview.id === 'webviewId1') {
webview.evalJS(`updateUnreadMsgNumAdd()`)
}
})
} else {
document.addEventListener('plusready', () => {
let OAWebView = plus.webview.all()
OAWebView.forEach((webview) => {
if (webview.id === 'webviewId1') {
webview.evalJS(`updateUnreadMsgNumAdd()`)
}
})
})
}
}
/**
* 显示消息提示
* @returns
@ -207,6 +212,9 @@ class Talk extends Base {
if (code == 200) {
let item = formatTalkItem(data)
item.unread_num = 1
if (!item?.is_disturb) {
this.updateUnreadMsgNumAdd()
}
useTalkStore().addItem(item)
await useTalkStore().loadTalkList()
}

View File

@ -226,11 +226,7 @@
id="editor"
:options="editorOption"
@editorChange="onEditorChange"
style="
width: 100%;
flex: 1;
height: 100%;
"
style="width: 100%; flex: 1; height: 100%;"
@click="onEditorClick"
/>
<!-- <tm-input type=textarea autoHeight focusColor="#F9F9F9" color="#F9F9F9" :inputPadding="[12]"
@ -1573,6 +1569,9 @@ const isLeader = computed(() => {
//@
const doMentionUser = (mentionSelect) => {
console.log(mentionSelect)
if (talkParams.type === 1) {
return
}
// mention
const mentionObj = {
id: mentionSelect.user_id, // 使 user_id erp_user_id

View File

@ -9,7 +9,7 @@
:default-page-size="props.searchResultPageSize"
:loading-more-default-as-loading="true"
:inside-more="true"
:empty-view-img="'@/static/image/search/search-no-data.png'"
:empty-view-img="searchNoData"
:empty-view-text="$t('search.hint')"
:empty-view-img-style="{ width: '476rpx', height: '261rpx' }"
:empty-view-title-style="{
@ -113,6 +113,7 @@
</div>
</template>
<script setup>
import searchNoData from '@/static/image/search/search-no-data.png'
import customInput from '@/components/custom-input/custom-input.vue'
import ZPaging from '@/uni_modules/z-paging/components/z-paging/z-paging.vue'
import useZPaging from '@/uni_modules/z-paging/components/z-paging/js/hooks/useZPaging.js'