Commit 55291fd9a11899d659266bd92dd317e74953ccde

Authored by zhiyangdu
1 parent 9da91f4b

im的显示和隐藏

src/pages/myGiftBox/myGiftBox.less
... ... @@ -47,7 +47,7 @@
47 47 }
48 48 }
49 49 .item_box{
50   - height: calc(100vh-100px);
  50 + height: calc(100vh-90px);
51 51 overflow-y: auto;
52 52 }
53 53 }
... ...
src/pages/myGiftBox/myGiftBox.vue
... ... @@ -85,13 +85,13 @@ export default {
85 85 this.setGiftBottomVisibleBySwitchTab(1);
86 86 } else {
87 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 95 // App内
96 96 if (this.isCNLive.value) {
97 97 // 调用App,返回按键
... ... @@ -103,14 +103,14 @@ export default {
103 103 ) {
104 104 // App内,iOS销毁WebView
105 105 window.webkit.messageHandlers.setGiftBottomVisibleBySwitchTab.postMessage(
106   - { body: { visible: 1 } }
  106 + { body: { visible: itme } }
107 107 );
108 108 } else if (
109 109 window.obj &&
110 110 window.obj.setGiftBottomVisibleBySwitchTab
111 111 ) {
112 112 // App内,Android销毁WebView
113   - window.obj.setGiftBottomVisibleBySwitchTab(1);
  113 + window.obj.setGiftBottomVisibleBySwitchTab(itme);
114 114 }
115 115 }
116 116 },
... ...