Commit 55291fd9a11899d659266bd92dd317e74953ccde
1 parent
9da91f4b
im的显示和隐藏
Showing
2 changed files
with
5 additions
and
5 deletions
src/pages/myGiftBox/myGiftBox.less
src/pages/myGiftBox/myGiftBox.vue
| @@ -85,13 +85,13 @@ export default { | @@ -85,13 +85,13 @@ export default { | ||
| 85 | this.setGiftBottomVisibleBySwitchTab(1); | 85 | this.setGiftBottomVisibleBySwitchTab(1); |
| 86 | } else { | 86 | } else { |
| 87 | // 调用im是否显示隐藏1显示im聊天弹窗0不显示 | 87 | // 调用im是否显示隐藏1显示im聊天弹窗0不显示 |
| 88 | - this.setGiftBottomVisibleBySwitchTab(1); | 88 | + this.setGiftBottomVisibleBySwitchTab(0); |
| 89 | } | 89 | } |
| 90 | }, | 90 | }, |
| 91 | /** | 91 | /** |
| 92 | * 显示和隐藏聊天 | 92 | * 显示和隐藏聊天 |
| 93 | */ | 93 | */ |
| 94 | - setGiftBottomVisibleBySwitchTab() { | 94 | + setGiftBottomVisibleBySwitchTab(itme) { |
| 95 | // App内 | 95 | // App内 |
| 96 | if (this.isCNLive.value) { | 96 | if (this.isCNLive.value) { |
| 97 | // 调用App,返回按键 | 97 | // 调用App,返回按键 |
| @@ -103,14 +103,14 @@ export default { | @@ -103,14 +103,14 @@ export default { | ||
| 103 | ) { | 103 | ) { |
| 104 | // App内,iOS销毁WebView | 104 | // App内,iOS销毁WebView |
| 105 | window.webkit.messageHandlers.setGiftBottomVisibleBySwitchTab.postMessage( | 105 | window.webkit.messageHandlers.setGiftBottomVisibleBySwitchTab.postMessage( |
| 106 | - { body: { visible: 1 } } | 106 | + { body: { visible: itme } } |
| 107 | ); | 107 | ); |
| 108 | } else if ( | 108 | } else if ( |
| 109 | window.obj && | 109 | window.obj && |
| 110 | window.obj.setGiftBottomVisibleBySwitchTab | 110 | window.obj.setGiftBottomVisibleBySwitchTab |
| 111 | ) { | 111 | ) { |
| 112 | // App内,Android销毁WebView | 112 | // App内,Android销毁WebView |
| 113 | - window.obj.setGiftBottomVisibleBySwitchTab(1); | 113 | + window.obj.setGiftBottomVisibleBySwitchTab(itme); |
| 114 | } | 114 | } |
| 115 | } | 115 | } |
| 116 | }, | 116 | }, |