|
|
|
|
@ -1,6 +1,40 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div>
|
|
|
|
|
<div style="" class="g_bg_f_5">
|
|
|
|
|
<view class="">
|
|
|
|
|
<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="">
|
|
|
|
|
<div style="height: 10px"></div>
|
|
|
|
|
<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>
|
|
|
|
|
</view>
|
|
|
|
|
</scroll-view>
|
|
|
|
|
</view>
|
|
|
|
|
<servicePopup
|
|
|
|
|
:show="showService"
|
|
|
|
|
@updateShow="
|
|
|
|
|
(e) => {
|
|
|
|
|
showService = e;
|
|
|
|
|
}
|
|
|
|
|
"
|
|
|
|
|
></servicePopup>
|
|
|
|
|
<!-- <u-popup v-model="serverPop.isShow" mode="center" :mask-close-able="false" :closeable="true" @close="serverPop.isShow = false" border-radius="30">
|
|
|
|
|
<view style="">
|
|
|
|
|
<view style="text-align: center; font-size: 16px; color: #333; font-weight: 500; margin-bottom: 32px; padding-top: 32px">添加客户经理微信</view>
|
|
|
|
|
<view style="padding: 64px; padding-top: 0">
|
|
|
|
|
<image :src="simage" alt="" style="width: 184px; height: 184px" />
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</u-popup> -->
|
|
|
|
|
<g-tabbar></g-tabbar>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
@ -12,6 +46,9 @@
|
|
|
|
|
import telPanel from "../NEUIKit/pages/Contact/contact-list/index.vue";
|
|
|
|
|
import chatPanel from "../NEUIKit/pages/Contact/BcFriend.vue";
|
|
|
|
|
const G = getCurrentInstance().appContext.app.config.globalProperties.G;
|
|
|
|
|
import gEmpty from "@/components/empty.vue";
|
|
|
|
|
// import gMessageCell from "@/components/panel/messageCell.vue";
|
|
|
|
|
// import servicePopup from "@/components/servicePopup.vue";
|
|
|
|
|
|
|
|
|
|
const globalData = ref(getApp().globalData);
|
|
|
|
|
const wyyxTabGroup = ref([]);
|
|
|
|
|
@ -28,10 +65,27 @@
|
|
|
|
|
const tabbarHeight = ref(uni.getStorageSync("TABBAR_HEIGHT"));
|
|
|
|
|
const openTel2 = ref(null);
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
// const query = uni.createSelectorQuery();
|
|
|
|
|
// query.select("#openTel2").exec(function (res) {
|
|
|
|
|
// console.log("resresres", res);
|
|
|
|
|
// });
|
|
|
|
|
// setTimeout(() => {
|
|
|
|
|
// console.log("openTel2.value", openTel2.value);
|
|
|
|
|
// openTel2.value.handleClick();
|
|
|
|
|
// }, 1000);
|
|
|
|
|
});
|
|
|
|
|
const sname = ref("");
|
|
|
|
|
const stel = ref("");
|
|
|
|
|
|
|
|
|
|
const typeGroup = ref([
|
|
|
|
|
{
|
|
|
|
|
name: "当前会话",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "系统通知",
|
|
|
|
|
count: "",
|
|
|
|
|
},
|
|
|
|
|
]);
|
|
|
|
|
const current = ref(0);
|
|
|
|
|
const count = ref(0); // 系统消息未读
|
|
|
|
|
const messageId = ref("");
|
|
|
|
|
@ -101,6 +155,15 @@
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
const openTel1 = ($tel) => {
|
|
|
|
|
console.log("openTel2", openTel2.value);
|
|
|
|
|
uni.requestSubscribeMessage({
|
|
|
|
|
tmplIds: ["UPYUMYWBtgWD3ZZHVEJC9qX04ahF81-yBPdsDzArp_4"],
|
|
|
|
|
success(res) {
|
|
|
|
|
console.log("ssssssssssssssssssssssssss", res);
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const openTel = ($tel) => {
|
|
|
|
|
uni.makePhoneCall({
|
|
|
|
|
@ -141,7 +204,9 @@
|
|
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
|
@import "../NEUIKit/pages/styles/common.scss";
|
|
|
|
|
|
|
|
|
|
.i-items {
|
|
|
|
|
// border-bottom: 1px solid #eee;
|
|
|
|
|
position: relative;
|
|
|
|
|
&:not(:first-child):after {
|
|
|
|
|
content: "";
|
|
|
|
|
@ -153,5 +218,8 @@
|
|
|
|
|
top: 0;
|
|
|
|
|
right: 0;
|
|
|
|
|
}
|
|
|
|
|
// &:last-child:after {
|
|
|
|
|
// border-bottom: none;
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|