no message

This commit is contained in:
kuaifan 2025-04-12 15:08:33 +08:00
parent 6dc5ae1ae4
commit a0aa04fd8c
5 changed files with 24 additions and 21 deletions

View File

@ -608,7 +608,7 @@ export default {
recordConvertFooterStyle() { recordConvertFooterStyle() {
const {recordConvertFocus, keyboardShow, keyboardHeight} = this; const {recordConvertFocus, keyboardShow, keyboardHeight} = this;
return (recordConvertFocus && keyboardShow && keyboardHeight > 120) ? { return (recordConvertFocus && keyboardShow && keyboardHeight > 120 && $A.isIos()) ? {
alignItems: 'flex-start', alignItems: 'flex-start',
transform: 'translateY(12px)' transform: 'translateY(12px)'
} : {} } : {}
@ -715,7 +715,7 @@ export default {
chatInputBoxStyle({iOSDevices, fullInput, keyboardShow, viewportHeight, safeAreaSize}) { chatInputBoxStyle({iOSDevices, fullInput, keyboardShow, viewportHeight, safeAreaSize}) {
const style = {} const style = {}
if (iOSDevices && fullInput && keyboardShow && viewportHeight > 0) { if (iOSDevices && fullInput && keyboardShow && viewportHeight > 0 && $A.isIos()) {
style.height = Math.max(100, viewportHeight - 70 - safeAreaSize.top) + 'px' style.height = Math.max(100, viewportHeight - 70 - safeAreaSize.top) + 'px'
} else { } else {
style.paddingBottom = `${safeAreaSize.bottom}px` style.paddingBottom = `${safeAreaSize.bottom}px`

View File

@ -819,7 +819,6 @@ export default {
preventRangeLoad: 0, // 0 preventRangeLoad: 0, // 0
preventToBottom: false, // preventToBottom: false, //
scrollToBottomRefresh: false, // scrollToBottomRefresh: false, //
androidKeyboardVisible: false, // Android
replyMsgAutoMention: false, // @ replyMsgAutoMention: false, // @
waitUnreadData: new Map(), // waitUnreadData: new Map(), //
replyEmojiIngs: {}, // replyEmojiIngs: {}, //
@ -881,6 +880,8 @@ export default {
'cacheTranslationLanguage', 'cacheTranslationLanguage',
'longpressData', 'longpressData',
'viewportHeight', 'viewportHeight',
'keyboardShow',
'keyboardHeight',
]), ]),
...mapGetters(['isLoad', 'isMessengerPage', 'getDialogQuote']), ...mapGetters(['isLoad', 'isMessengerPage', 'getDialogQuote']),
@ -1022,23 +1023,23 @@ export default {
}, },
isDefaultSize() { isDefaultSize() {
return this.windowScrollY === 0 && !this.androidKeyboardVisible return !(this.keyboardShow && this.keyboardHeight > 120)
}, },
quickShow() { quickShow() {
return this.quickMsgs.length > 0 && this.isDefaultSize && this.quoteId === 0 return this.isDefaultSize && this.quickMsgs.length > 0 && this.quoteId === 0
}, },
todoShow() { todoShow() {
return this.todoList.length > 0 && this.isDefaultSize && this.quoteId === 0 return this.isDefaultSize && this.todoList.length > 0 && this.quoteId === 0
}, },
typeShow() { typeShow() {
return this.msgTypes.length > 1 && this.isDefaultSize && !this.searchShow return this.isDefaultSize && this.msgTypes.length > 1 && !this.searchShow
}, },
topShow() { topShow() {
return this.topMsg && this.isDefaultSize && !this.searchShow && this.msgType === '' return this.isDefaultSize && this.topMsg && !this.searchShow && this.msgType === ''
}, },
wrapperClass() { wrapperClass() {
@ -1385,7 +1386,6 @@ export default {
}, },
windowHeight() { windowHeight() {
this.androidKeyboardVisible = $A.isAndroid() && $A.eeuiAppKeyboardStatus()
requestAnimationFrame(_ => { requestAnimationFrame(_ => {
this.$refs.input?.updateTools() this.$refs.input?.updateTools()
}) })
@ -2272,7 +2272,7 @@ export default {
onTouchStart() { onTouchStart() {
// Android // Android
if (this.androidKeyboardVisible) { if (this.keyboardShow) {
$A.eeuiAppSetDisabledUserLongClickSelect(500); $A.eeuiAppSetDisabledUserLongClickSelect(500);
} }
}, },

View File

@ -97,7 +97,7 @@
</div> </div>
</div> </div>
</div> </div>
<Scrollbar ref="scroller" class="scroller"> <Scrollbar ref="scroller" class="scroller" :touch-content-blur="false">
<Alert v-if="taskDetail.task_user !== undefined && getOwner.length === 0" class="receive-box" type="warning"> <Alert v-if="taskDetail.task_user !== undefined && getOwner.length === 0" class="receive-box" type="warning">
<span class="receive-text">{{$L('该任务尚未被领取,点击这里')}}</span> <span class="receive-text">{{$L('该任务尚未被领取,点击这里')}}</span>
<EPopover <EPopover
@ -758,7 +758,8 @@ export default {
'taskFiles', 'taskFiles',
'taskPriority', 'taskPriority',
'formOptions' 'formOptions',
'keyboardShow'
]), ]),
projectName() { projectName() {
@ -842,15 +843,17 @@ export default {
}, },
taskDetailStyle() { taskDetailStyle() {
const {modalMode, windowHeight, hasOpenDialog} = this; const {modalMode, keyboardShow, windowHeight, hasOpenDialog} = this;
const height = Math.min(1100, windowHeight) const style = {}
if (modalMode && hasOpenDialog) { if (modalMode) {
const factor = height > 900 ? 200 : 70; if (hasOpenDialog) {
return { style.maxHeight = `${Math.min(1100, windowHeight) - (windowHeight > 900 ? 200 : 70) - 30}px`;
maxHeight: (height - factor - 30) + 'px' }
if (keyboardShow && $A.isIos()) {
style.overflow = 'hidden'
} }
} }
return {} return style
}, },
cutTime() { cutTime() {

View File

@ -43,7 +43,7 @@ export default {
labelWidth: windowWidth > 576 ? 'auto' : '', labelWidth: windowWidth > 576 ? 'auto' : '',
}, },
// 键盘状态仅iOS // 键盘状态
keyboardShow: false, // 键盘可见 keyboardShow: false, // 键盘可见
keyboardHeight: 0, // 键盘高度 keyboardHeight: 0, // 键盘高度

@ -1 +1 @@
Subproject commit b9d4772f665d36e018f35d791f3c8b9a934c035e Subproject commit 7be2bcdaa7ad68b1912099b6a60e92cb679aab46