|
|
|
|
@ -4,17 +4,19 @@
|
|
|
|
|
<view class="m-tabs" v-if="isLogin" style="position: fixed; width: 100%; z-index: 999">
|
|
|
|
|
<u-tabs :list="typeGroup" :is-scroll="false" v-model="current" @change="updateType" item-width="126" :active-color="globalData.themeColor" bar-width="60" bar-height="6" font-size="32" :gutter="22" duration="0.1" itemWidth="auto" height="84"></u-tabs>
|
|
|
|
|
</view>
|
|
|
|
|
<scroll-view @scroll="getScrollInfo" :scroll-top="resetScroll" :style="{ height: `calc(100vh - ${isLogin ? tabbarHeight + 43 : 0}px)`, 'padding-top': isLogin ? '43px' : '' }" :scroll-y="true">
|
|
|
|
|
<view class="">
|
|
|
|
|
<view class="" v-show="current == 0">
|
|
|
|
|
<view class="g_bg_f">
|
|
|
|
|
<ConversationList ref="contactList" />
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="g_bg_f" v-if="current == 1">
|
|
|
|
|
<telPanel />
|
|
|
|
|
<scroll-view @scroll="getScrollInfo"
|
|
|
|
|
:scroll-top="resetScroll"
|
|
|
|
|
:style="{ height: `calc(100vh - ${isLogin ? tabbarHeight + 43 : 0}px)`, 'padding-top': isLogin ? '43px' : '' }"
|
|
|
|
|
:scroll-y="true"
|
|
|
|
|
>
|
|
|
|
|
<view class="" v-show="current == 0">
|
|
|
|
|
<view class="g_bg_f">
|
|
|
|
|
<ConversationList ref="contactList" />
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="g_bg_f" v-if="current == 1">
|
|
|
|
|
<telPanel />
|
|
|
|
|
</view>
|
|
|
|
|
</scroll-view>
|
|
|
|
|
</view>
|
|
|
|
|
<servicePopup
|
|
|
|
|
@ -87,7 +89,6 @@ const typeGroup = ref([
|
|
|
|
|
]);
|
|
|
|
|
const current = ref(0);
|
|
|
|
|
const count = ref(0); // 系统消息未读
|
|
|
|
|
const messageId = ref("");
|
|
|
|
|
const userInfo = ref({});
|
|
|
|
|
|
|
|
|
|
onShow(() => {
|
|
|
|
|
@ -135,8 +136,7 @@ onShow(() => {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}, 1000);
|
|
|
|
|
current.value = globalData.value.messageTab;
|
|
|
|
|
messageId.value = globalData.value.messageId;
|
|
|
|
|
current.value = 0;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
const goLogin = () => {
|
|
|
|
|
|