blue
1 year ago
committed by
Gitee
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with
5 additions and
3 deletions
-
im-uniapp/pages/chat/chat-box.vue
-
im-web/src/components/common/RightMenu.vue
|
|
|
@ -750,9 +750,12 @@ export default { |
|
|
|
// ios h5实现键盘监听 |
|
|
|
window.addEventListener('focusin', this.focusInListener); |
|
|
|
window.addEventListener('focusout', this.focusOutListener); |
|
|
|
// 监听键盘高度,ios13以上开始支持 |
|
|
|
if(window.visualViewport){ |
|
|
|
window.visualViewport.addEventListener('resize', this.resizeListener); |
|
|
|
} |
|
|
|
} else { |
|
|
|
// 安卓h5实现键盘监听 |
|
|
|
let initHeight = window.innerHeight; |
|
|
|
window.addEventListener('resize', this.resizeListener); |
|
|
|
} |
|
|
|
// #endif |
|
|
|
@ -763,7 +766,6 @@ export default { |
|
|
|
}, |
|
|
|
unListenKeyboard() { |
|
|
|
// #ifdef H5 |
|
|
|
// 安卓h5实现键盘监听 |
|
|
|
window.removeEventListener('resize', this.resizeListener); |
|
|
|
window.removeEventListener('focusin', this.focusInListener); |
|
|
|
window.removeEventListener('focusout', this.focusOutListener); |
|
|
|
|
|
|
|
@ -1,5 +1,5 @@ |
|
|
|
<template> |
|
|
|
<div class="right-menu-mask" @click="close()" @contextmenu.prevent="close()"> |
|
|
|
<div class="right-menu-mask" @click.stop="close()" @contextmenu.prevent="close()"> |
|
|
|
<div class="right-menu" :style="{ 'left': pos.x + 'px', 'top': pos.y + 'px' }"> |
|
|
|
<el-menu text-color="#333333"> |
|
|
|
<el-menu-item v-for="(item) in items" :key="item.key" :title="item.name" |
|
|
|
|