解决删除会话后发消息,数量统计不正确问题;解决图片显示不正常问题
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
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:
parent
f17250f236
commit
99ffb6ec05
@ -143,6 +143,13 @@ class Talk extends Base {
|
|||||||
!useTalkStore().items[useTalkStore().findTalkIndex(this.getIndexName())]
|
!useTalkStore().items[useTalkStore().findTalkIndex(this.getIndexName())]
|
||||||
?.is_disturb
|
?.is_disturb
|
||||||
) {
|
) {
|
||||||
|
this.updateUnreadMsgNumAdd()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//更新未读数量+1
|
||||||
|
updateUnreadMsgNumAdd() {
|
||||||
if (typeof plus !== 'undefined') {
|
if (typeof plus !== 'undefined') {
|
||||||
let OAWebView = plus.webview.all()
|
let OAWebView = plus.webview.all()
|
||||||
OAWebView.forEach((webview) => {
|
OAWebView.forEach((webview) => {
|
||||||
@ -161,8 +168,6 @@ class Talk extends Base {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 显示消息提示
|
* 显示消息提示
|
||||||
@ -207,6 +212,9 @@ class Talk extends Base {
|
|||||||
if (code == 200) {
|
if (code == 200) {
|
||||||
let item = formatTalkItem(data)
|
let item = formatTalkItem(data)
|
||||||
item.unread_num = 1
|
item.unread_num = 1
|
||||||
|
if (!item?.is_disturb) {
|
||||||
|
this.updateUnreadMsgNumAdd()
|
||||||
|
}
|
||||||
useTalkStore().addItem(item)
|
useTalkStore().addItem(item)
|
||||||
await useTalkStore().loadTalkList()
|
await useTalkStore().loadTalkList()
|
||||||
}
|
}
|
||||||
|
@ -226,11 +226,7 @@
|
|||||||
id="editor"
|
id="editor"
|
||||||
:options="editorOption"
|
:options="editorOption"
|
||||||
@editorChange="onEditorChange"
|
@editorChange="onEditorChange"
|
||||||
style="
|
style="width: 100%; flex: 1; height: 100%;"
|
||||||
width: 100%;
|
|
||||||
flex: 1;
|
|
||||||
height: 100%;
|
|
||||||
"
|
|
||||||
@click="onEditorClick"
|
@click="onEditorClick"
|
||||||
/>
|
/>
|
||||||
<!-- <tm-input type=textarea autoHeight focusColor="#F9F9F9" color="#F9F9F9" :inputPadding="[12]"
|
<!-- <tm-input type=textarea autoHeight focusColor="#F9F9F9" color="#F9F9F9" :inputPadding="[12]"
|
||||||
@ -1573,6 +1569,9 @@ const isLeader = computed(() => {
|
|||||||
//长按头像@用户
|
//长按头像@用户
|
||||||
const doMentionUser = (mentionSelect) => {
|
const doMentionUser = (mentionSelect) => {
|
||||||
console.log(mentionSelect)
|
console.log(mentionSelect)
|
||||||
|
if (talkParams.type === 1) {
|
||||||
|
return
|
||||||
|
}
|
||||||
// 构造正确的 mention 对象
|
// 构造正确的 mention 对象
|
||||||
const mentionObj = {
|
const mentionObj = {
|
||||||
id: mentionSelect.user_id, // 使用 user_id 而不是 erp_user_id
|
id: mentionSelect.user_id, // 使用 user_id 而不是 erp_user_id
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
:default-page-size="props.searchResultPageSize"
|
:default-page-size="props.searchResultPageSize"
|
||||||
:loading-more-default-as-loading="true"
|
:loading-more-default-as-loading="true"
|
||||||
:inside-more="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-text="$t('search.hint')"
|
||||||
:empty-view-img-style="{ width: '476rpx', height: '261rpx' }"
|
:empty-view-img-style="{ width: '476rpx', height: '261rpx' }"
|
||||||
:empty-view-title-style="{
|
:empty-view-title-style="{
|
||||||
@ -113,6 +113,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
|
import searchNoData from '@/static/image/search/search-no-data.png'
|
||||||
import customInput from '@/components/custom-input/custom-input.vue'
|
import customInput from '@/components/custom-input/custom-input.vue'
|
||||||
import ZPaging from '@/uni_modules/z-paging/components/z-paging/z-paging.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'
|
import useZPaging from '@/uni_modules/z-paging/components/z-paging/js/hooks/useZPaging.js'
|
||||||
|
Loading…
Reference in New Issue
Block a user