no message

im/api
jscyl13849007907 6 days ago
parent 927df21c2c
commit 02b6780386

@ -1,96 +1,122 @@
<template> <template>
<view class="g_pb_24"> <view class="g_pb_24">
<div v-for="(item, index) in machineList" :key="index" class="customitem g_bg_f"> <div style="width: calc(100vw - 20px);margin: 10px auto;border-radius: 8px;">
<Tooltip ref="tooltipRef" color="white" :isSelf="true" :top="150"> <div v-for="(item, index) in machineList" :key="index" class="customitem imitems g_bg_f">
<div class="g_flex_row_start" hover-class="thover" style="padding: 12px 16px" @click="goChatPage(item)" :style="{ backgroundColor: item.stickTop ? '#f5f5f5' : '#fff' }"> <Tooltip ref="tooltipRef" color="white" :isSelf="true" :top="150">
<div <div class="g_flex_row_start" hover-class="thover" style="padding: 12px 16px" @click="goChatPage(item)" :style="{ backgroundColor: item.stickTop ? '#f5f5f5' : '#fff' }">
class="g_flex_none" <div
style="border-radius: 50%; width: 48px; height: 48px; background-size: cover; background-repeat: no-repeat; position: relative" class="g_flex_none"
:style="{ style="border-radius: 50%; width: 48px; height: 48px; background-size: cover; background-repeat: no-repeat; position: relative"
'background-image': item.userinfo && item.userinfo[0].avatar ? 'url(' + item.userinfo[0].avatar + ')' : 'none', :style="{
}" 'background-image': item.userinfo && item.userinfo[0].avatar ? 'url(' + item.userinfo[0].avatar + ')' : 'none',
> }"
<div v-if="item.waitcount" style="position: absolute; right: -6px; top: -6px; background-color: #f5222d; width: 20px; height: 20px; border-radius: 50%; text-align: center; line-height: 20px; font-size: 12px; color: #fff"> >
{{ item.waitcount > 99 ? "99+" : item.waitcount }} <div v-if="item.waitcount" style="position: absolute; right: -6px; top: -6px; background-color: #f5222d; width: 20px; height: 20px; border-radius: 50%; text-align: center; line-height: 20px; font-size: 12px; color: #fff">
</div> {{ item.waitcount > 99 ? "99+" : item.waitcount }}
</div>
<div class="bottom-line g_flex_column_center g_flex_1" style="padding-left: 10px">
<div class="g_fs_17 g_flex_row_between" v-if="item.userinfo && item.userinfo[0].name">
<div class="g_ell_1 g_flex_1" style="color: #333">
{{ item.userinfo[0].name }} <span v-if="item.subtitle" style="color: orange">@{{ item.subtitle }}</span>
</div> </div>
<div class="g_flex_none g_fs_12 g_ml_10" style="color: #999"> <div style="position: absolute;bottom: 0;left: 50%;transform: translateX(-50%);width: 36px;height: 16px;border-radius: 4px;color: #ffffff;line-height: 16px;"
{{ item.time }} :style="{
'backgroundColor':index == 0 ? '#0091FF' : '#6ED400'
}"
v-if="index == 0 || index == 1"
class="g_flex_row_center"
>
<div style="width: 100%;height: 100%;position: relative;">
<div style="font-size: 12px;zoom: 0.75;text-align: center;position: absolute;top: 50%;left: 50%;transform: translateX(-50%) translateY(-50%);">
{{index == 0 ? '上游' : '下游'}}
</div>
</div>
</div> </div>
</div> </div>
<!-- 普通文本 --> <div class="bottom-line g_flex_column_center g_flex_1" style="padding-left: 10px">
<div class="g_fs_14 g_ell_1" style="color: #999; font-size: 12px" v-if="item.lastMessage && item.lastMessage.messageType == 0"> <div class="g_fs_17 g_flex_row_between" v-if="item.userinfo && item.userinfo[0].name">
{{ item.lastMessage.text }} <div class="g_ell_1 g_flex_1" style="color: #333;font-size: 16px;">
</div> {{ item.userinfo[0].name }} <span v-if="item.subtitle" style="color: orange;font-size: 14px;position: relative;top: -1px;">@{{ item.subtitle }}</span>
<!-- tip通知 --> </div>
<div class="g_fs_14 g_ell_1" style="color: #999; font-size: 12px" v-if="item.lastMessage && item.lastMessage.messageType == 10"> <div class="g_flex_none g_fs_12 g_ml_10" style="color: #999">
{{ item.lastMessage.text }} {{ item.time }}
</div> </div>
<!-- 图片消息 -->
<div class="g_fs_14 g_ell_1" style="color: #999; font-size: 12px" v-if="item.lastMessage && item.lastMessage.messageType == 1 && item.lastMessage.attachment && item.lastMessage.attachment.raw">[]</div>
<!-- 图片消息 -->
<div class="g_fs_14 g_ell_1" style="color: #999; font-size: 12px" v-if="item.lastMessage && item.lastMessage.messageType == 3 && item.lastMessage.attachment && item.lastMessage.attachment.raw">[]</div>
<!-- 自定义消息 -->
<div class="g_fs_14 g_ell_1" style="color: #999; font-size: 12px" v-if="item.lastMessage && item.lastMessage.messageType == 100 && item.lastMessage.attachment && item.lastMessage.attachment.raw">
<!-- 100001 商家后台 职位卡片 -->
<div v-if="JSON.parse(item.lastMessage.attachment.raw).type == 100001">
{{ JSON.parse(item.lastMessage.attachment.raw).obj.jobName }}
</div> </div>
<!-- 1000011 职位列表 --> <!-- 普通文本 -->
<div v-if="JSON.parse(item.lastMessage.attachment.raw).type == 100011">[]</div> <div class="g_fs_14 g_ell_1" style="color: #999; font-size: 12px" v-if="item.lastMessage && item.lastMessage.messageType == 0">
<!-- 200001 系统提醒 --> {{ item.lastMessage.text }}
<div v-if="JSON.parse(item.lastMessage.attachment.raw).type == 200001">
用户[
<span class="viewdetails">
{{ item.lastMessage && item.lastMessage.attachment && item.lastMessage.attachment.raw && JSON.parse(item.lastMessage.attachment.raw).userName }}
</span>
]询单需要人工介入请尽快回复
</div>
<!-- 200002 系统通知 -->
<div v-if="JSON.parse(item.lastMessage.attachment.raw).type == 200002">
<span class="">
{{ item.lastMessage && item.lastMessage.text }}
</span>
</div>
<!-- 未知 -->
<div v-if="JSON.parse(item.lastMessage.attachment.raw).name">
{{ JSON.parse(item.lastMessage.attachment.raw).name }}
</div>
<!-- 未知 -->
<div v-if="JSON.parse(item.lastMessage.attachment.raw).type == 100002">
{{ "工单" }}
</div> </div>
<!-- 常用回复 --> <!-- tip通知 -->
<div v-if="JSON.parse(item.lastMessage.attachment.raw).typs == 'msg'"> <div class="g_fs_14 g_ell_1" style="color: #999; font-size: 12px" v-if="item.lastMessage && item.lastMessage.messageType == 10">
{{ item.lastMessage.text }} {{ item.lastMessage.text }}
</div> </div>
<!-- 100000 移动端职位卡片 --> <!-- 图片消息 -->
<div v-else> <div class="g_fs_14 g_ell_1" style="color: #999; font-size: 12px" v-if="item.lastMessage && item.lastMessage.messageType == 1 && item.lastMessage.attachment && item.lastMessage.attachment.raw">[]</div>
{{ JSON.parse(item.lastMessage.attachment.raw).title }} <!-- 图片消息 -->
<div class="g_fs_14 g_ell_1" style="color: #999; font-size: 12px" v-if="item.lastMessage && item.lastMessage.messageType == 3 && item.lastMessage.attachment && item.lastMessage.attachment.raw">[]</div>
<!-- 自定义消息 -->
<div class="g_fs_14 g_ell_1" style="color: #999; font-size: 12px" v-if="item.lastMessage && item.lastMessage.messageType == 100 && item.lastMessage.attachment && item.lastMessage.attachment.raw">
<!-- 100001 商家后台 职位卡片 -->
<div v-if="JSON.parse(item.lastMessage.attachment.raw).type == 100001">
{{ JSON.parse(item.lastMessage.attachment.raw).obj.jobName }}
</div>
<!-- 1000011 职位列表 -->
<div v-if="JSON.parse(item.lastMessage.attachment.raw).type == 100011">[]</div>
<!-- 200001 系统提醒 -->
<div v-if="JSON.parse(item.lastMessage.attachment.raw).type == 200001">
用户[
<span class="viewdetails">
{{ item.lastMessage && item.lastMessage.attachment && item.lastMessage.attachment.raw && JSON.parse(item.lastMessage.attachment.raw).userName }}
</span>
]询单需要人工介入请尽快回复
</div>
<!-- 200002 系统通知 -->
<div v-if="JSON.parse(item.lastMessage.attachment.raw).type == 200002">
<span class="">
{{ item.lastMessage && item.lastMessage.text }}
</span>
</div>
<!-- 未知 -->
<div v-if="JSON.parse(item.lastMessage.attachment.raw).name">
{{ JSON.parse(item.lastMessage.attachment.raw).name }}
</div>
<!-- 未知 -->
<div v-if="JSON.parse(item.lastMessage.attachment.raw).type == 100002">
{{ "工单" }}
</div>
<!-- 常用回复 -->
<div v-if="JSON.parse(item.lastMessage.attachment.raw).typs == 'msg'">
{{ item.lastMessage.text }}
</div>
<!-- 100000 移动端职位卡片 -->
<div v-else>
{{ JSON.parse(item.lastMessage.attachment.raw).title }}
</div>
</div> </div>
<!-- 暂无新消息 -->
<div class="g_fs_14 g_ell_1" style="color: #999; font-size: 12px" v-if="!item.lastMessage"></div>
</div> </div>
<!-- 暂无新消息 -->
<div class="g_fs_14 g_ell_1" style="color: #999; font-size: 12px" v-if="!item.lastMessage"></div>
</div> </div>
</div> <template #content>
<template #content> <view class="g_fs_16" style="">
<view class="g_fs_16" style=""> <view class="g_flex_column_center g_h_32" @click="topMessage(item, index)">
<view class="g_flex_column_center g_h_32" @click="topMessage(item, index)"> <view>{{ item.stickTop ? "取消置顶" : "置顶消息" }} </view>
<view>{{ item.stickTop ? "取消置顶" : "置顶消息" }} </view> </view>
<view class="g_flex_column_center g_h_32" @click="deleteMessage(item, index)">
<view>不显示</view>
</view>
</view> </view>
<view class="g_flex_column_center g_h_32" @click="deleteMessage(item, index)"> </template>
<view>不显示</view> </Tooltip>
</view> </div>
</view>
</template>
</Tooltip>
</div> </div>
</view> </view>
<view class="" v-if="machineList && machineList.length == 0">
<view
style="width: calc(100% - 20px); margin: 0 auto"
class=""
:style="{
'padding-top': '260rpx',
}"
>
<rh-empty text="暂无消息"></rh-empty>
</view>
</view>
<view v-show="firstLoad" style="position: fixed; width: 100%; height: 100vh; left: 0px; top: 0px; z-index: 9" class="u-skeleton"> <view v-show="firstLoad" style="position: fixed; width: 100%; height: 100vh; left: 0px; top: 0px; z-index: 9" class="u-skeleton">
<view v-for="i in 10" :key="i" style="width: 100%; height: 72px; padding: 16px 12px" class="g_flex_row_between"> <view v-for="i in 10" :key="i" style="width: 100%; height: 72px; padding: 16px 12px" class="g_flex_row_between">
<view class="u-skeleton-fillet g_w_48 g_h_48 g_mr_8"> </view> <view class="u-skeleton-fillet g_w_48 g_h_48 g_mr_8"> </view>
@ -332,16 +358,25 @@ onUnmounted(() => {
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.bottom-line { .imitems{
position: relative; .bottom-line {
&::after { position: relative;
content: ""; &::after {
width: 100%; content: "";
height: 1px; width: 100%;
background-color: #ededed; height: 1px;
position: absolute; background-color: #ededed;
left: 10px; position: absolute;
top: -12px; left: 10px;
top: -12px;
}
}
&:first-child{
.bottom-line {
&::after {
background-color: transparent;
}
}
} }
} }
</style> </style>

@ -0,0 +1,127 @@
<template>
<div>
<view
class="mcell"
:style="{
'background-color': wyyxTabGroup && wyyxTabGroup.length == 0 ? '#ededed' : '#fff',
}"
>
<view v-for="(item, index) in wyyxTabGroup" :key="index" class="g_flex_row_between i-items" @click="goPage(item)">
<div class="g_flex_1 g_flex_row_start g_fs_16" style="padding: 12px 16px">
<div class="g_flex_none g_mr_12">
<image :src="item.avatar" style="width: 48px; height: 48px; border-radius: 50px"></image>
</div>
<div class="g_flex_1 g_flex_column_between">
<view class="g_flex_row_start flex_center">
<div class="g_c_3 g_fs_17 g_fw_600" style="line-height: 24px">
{{ item.title }}
</div>
<view class="g_c_f g_fs_12 g_radius_6 g_ml_4" style="background: linear-gradient(135deg, #5c6cf7, #9963f9); line-height: 18px; padding: 0 4px; height: 18px">官方AI</view>
</view>
<div
class="g_c_3 g_fs_14 g_ell_1"
style="line-height: 20px"
:style="{
color: item.tip == 'khjl' ? '#333' : '#999',
}"
>
{{ item.sub_title }}
</div>
</div>
</div>
<div class="g_flex_none g_flex_column_center">
<div v-if="item.tip == 'khjl'" class="g_flex_column_center">
<div class="g_flex_row_end">
<div class="g_flex_column_center g_mr_8" @click.stop="openTel(item.tel)">
<image src="https://bocai-cms.oss-cn-beijing.aliyuncs.com/web-resource/dailibaoming/blueTel.svg" style="width: 40px; height: 40px"></image>
</div>
<div class="g_flex_column_center" @click.stop="openServer">
<image src="https://bocai-cms.oss-cn-beijing.aliyuncs.com/web-resource/dailibaoming/qiyeweixin.svg" style="width: 40px; height: 40px"></image>
</div>
</div>
</div>
</div>
</view>
</view>
</div>
</template>
<script>
export default {
data() {
return {
cdnBaseImg: this.G.store().cdnBaseImg,
corpUserFlag: uni.getStorageSync("apply-userinfo").corpUserFlag,
wyyxTabGroup: [],
randomTime: this.generateRandomTime(), // ,
appinfo:uni.getStorageSync("miniApp-info")
};
},
mounted() {
let that = this;
this.getConfig().then((botArray) => {
// console.log("ressasas", botArray);
if (that.corpUserFlag) {
that.wyyxTabGroup = botArray;
}
});
},
methods: {
getConfig() {
let that = this;
return new Promise((resolve, reject) => {
let botArray = [];
let config = uni.getStorageSync("chat_config");
botArray = [
{
title: that.appinfo.aiRobotName, //config.name,
sub_title: that.appinfo.appName + "平台智能助理", //config.description,
avatar: that.appinfo && that.appinfo.logo ? that.appinfo.logo : that.cdnBaseImg + "v3/add1.png", //config.icon_url,
path: "/root/chat/index",
tip: "rgpp",
randomTime: that.generateRandomTime(), //
},
];
resolve(botArray);
});
},
goPage($data) {
let that = this;
if ($data.tip == "rgpp") {
uni.setStorageSync("robot_id", "7491244881596809243");
uni.setStorageSync("isExecute", 1);
uni.navigateTo({
url: $data.path + "?cid=&form=viwdata",
});
} else {
uni.navigateTo({
url: $data.path,
});
}
},
openTel($tel) {
if($tel){
$tel = $tel.replace(/-/g, "");
}
uni.makePhoneCall({
phoneNumber: $tel || "0371-6611 3723",
});
},
openServer() {
this.$emit("exportClickImage");
},
generateRandomTime() {
return Math.floor(Math.random() * (18 - 8 + 1)) + 8; // 8 18
},
},
};
</script>
<style lang="scss">
.mcell{
border-radius: 8px;
width: calc(100vw - 20px);
margin: 10px auto 0;
overflow: hidden;
}
</style>

@ -1,60 +1,58 @@
<template> <template>
<div :style="{ minHeight: `calc(100vh - ${tabbarHeight}px)` }" class="g_bg_page"> <div style="min-height: 100vh" class="g_bg_f_5">
<!-- <view class="m-tabs" v-if="isLogin" style="position: fixed; width: 100%; z-index: 999"> <view class="" v-if="isLogin && is_use_im == 1">
<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> <scroll-view @scroll="getScrollInfo" :scroll-top="resetScroll" :style="{ height: `calc(100vh - ${isLogin && is_use_im == 1 ? tabbarHeight + 43 : 0}px)` }" :scroll-y="true">
</view> --> <view class="" v-if="is_use_im == 1">
<!-- - ${isLogin ? tabbarHeight + 43 : 0}px --> <div style="height: 10px" class="2" v-if="current == 1 || current == 2"></div>
<!-- isLogin ? '43px' : --> <view class="" v-show="isLogin ? current == 0 : current == 1">
<scroll-view @scroll="getScrollInfo" :scroll-top="resetScroll" :style="{ minHeight: `calc(100vh - ${tabbarHeight}px)`, 'padding-top': '' }" :scroll-y="true" v-if="isLogin"> <g-message-cell ref="AIList" @exportClickImage="openServer" v-if="isJm" />
<view class="g_bg_ed" v-show="current == 0"> <view class="">
<view class="g_h_10"></view> <conversationList />
<!-- background-color: #ededed; --> </view>
<view class="g_radius_6" style="margin: 0 10px; overflow: hidden"> </view>
<!-- <rh-loading paddingBottom="g_pb_120" /> --> <view class="g_bg_f" v-show="isLogin ? current == 1 : current == 0">
<!-- <ConversationList ref="contactList" /> --> <message :cmsIds="messageId" :update="update" />
<conversationList /> </view>
<view class="g_bg_f" v-if="current == 2">
<telPanel />
</view>
</view> </view>
</view> </scroll-view>
<view class="" v-if="current == 1"> </view>
<!-- <telPanel /> -->
</view>
<div style="height: 48px; background-color: #ededed"></div>
</scroll-view>
<view class="g_h_all" v-if="!isLogin"> <view class="g_h_all" v-if="!isLogin">
<rh-login-false-list /> <rh-login-false-list />
</view> </view>
<servicePopup <rh-serverpopup
:show="showService" :show="showService"
@updateShow=" @updateShow="
(e) => { (e) => {
showService = e; showService = e;
} }
" "
></servicePopup> ></rh-serverpopup>
<!-- <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> -->
</div> </div>
<!-- <g-tabbar></g-tabbar> --> <view v-show="firstLoad" style="position: fixed; width: 100%; height: 100vh; left: 0px; top: 0px; z-index: 9" class="u-skeleton">
<view v-for="i in 10" :key="i" style="width: 100%; height: 72px; padding: 16px 12px" class="g_flex_row_between">
<view class="u-skeleton-fillet g_w_48 g_h_48 g_mr_8"> </view>
<view class="g_flex_1">
<view class="u-skeleton-fillet g_w_all g_h_20"></view>
<view class="u-skeleton-fillet g_w_all g_h_20 g_mt_4"></view>
</view>
</view>
<!-- </template> -->
</view>
<u-skeleton :loading="firstLoad" :animation="true" el-color="#ededed" bg-color="#fff"></u-skeleton>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { ref, onMounted, computed, getCurrentInstance } from "vue"; import { ref, onMounted, computed, getCurrentInstance } from "vue";
// import ConversationList from "../NEUIKit/pages/Conversation/conversation-list/index.vue";
import conversationList from "../../components/conversationList.vue";
// import { trackInit } from "../NEUIKit/utils/reporter.ts";
import { onShow, onLoad } from "@dcloudio/uni-app"; import { onShow, onLoad } from "@dcloudio/uni-app";
// import telPanel from "../NEUIKit/pages/Contact/contact-list/index.vue"; import conversationList from "../../components/conversationList.vue";
// import chatPanel from "../NEUIKit/pages/Contact/BcFriend.vue"; import gMessageCell from "@/components/panel/messageCell.vue";
const G = getCurrentInstance().appContext.app.config.globalProperties.G; const G = getCurrentInstance().appContext.app.config.globalProperties.G;
import gEmpty from "@/components/empty.vue"; let firstLoad = ref(false);
// import gMessageCell from "@/components/panel/messageCell.vue"; let showLoading = ref(true);
// import servicePopup from "@/components/servicePopup.vue";
const globalData = ref(getApp().globalData); const globalData = ref(getApp().globalData);
const wyyxTabGroup = ref([]); const wyyxTabGroup = ref([]);
const corpUserFlag = ref(false); const corpUserFlag = ref(false);
@ -63,6 +61,7 @@ const update = ref(1);
const contactList = ref(null); const contactList = ref(null);
const AIList = ref(null); const AIList = ref(null);
const cdnBaseImg = ref(G.store().cdnBaseImg); const cdnBaseImg = ref(G.store().cdnBaseImg);
const is_use_im = ref(uni.getStorageSync("is_use_im"));
const isLogin = ref(true); const isLogin = ref(true);
// //
@ -72,12 +71,16 @@ const openTel2 = ref(null);
onMounted(() => { onMounted(() => {
// const query = uni.createSelectorQuery(); // const query = uni.createSelectorQuery();
// query.select("#openTel2").exec(function (res) { // query.select("#openTel2").exec(function (res) {
// // console.log("resresres", res); // console.log("resresres", res);
// }); // });
// setTimeout(() => { // setTimeout(() => {
// // console.log("openTel2.value", openTel2.value); // console.log("openTel2.value", openTel2.value);
// openTel2.value.handleClick(); // openTel2.value.handleClick();
// }, 1000); // }, 1000);
setTimeout(() => {
showLoading.value = false;
firstLoad.value = false;
}, 2000);
}); });
const sname = ref(""); const sname = ref("");
const stel = ref(""); const stel = ref("");
@ -90,14 +93,18 @@ const typeGroup = ref([
name: "系统通知", name: "系统通知",
count: "", count: "",
}, },
// {
// name: "",
// },
]); ]);
const current = ref(0); const current = ref(0);
const count = ref(0); // const count = ref(0); //
const messageId = ref("");
const userInfo = ref({}); const userInfo = ref({});
onLoad(() => {}); const isJm = ref(uni.getStorageSync("apply-userinfo") && uni.getStorageSync("apply-userinfo").agencyId && uni.getStorageSync("apply-userinfo").agencyId == '114827')
onShow(() => { onShow(() => {
isLogin.value = uni.getStorageSync("apply-token") ? true : false; isLogin.value = uni.getStorageSync("apply-token") ? true : false;
// console.log("count.value", count.value); // console.log("count.value", count.value);
corpUserFlag.value = uni.getStorageSync("apply-userinfo").corpUserFlag; corpUserFlag.value = uni.getStorageSync("apply-userinfo").corpUserFlag;
userInfo.value = uni.getStorageSync("apply-userinfo"); userInfo.value = uni.getStorageSync("apply-userinfo");
// //
@ -119,66 +126,14 @@ onShow(() => {
name: "系统通知", name: "系统通知",
count: count.value, count: count.value,
}, },
// {
// name: "",
// },
]; ];
} }
}, 200); }, 200);
if (isLogin.value && uni && uni.$UIKitStore) {
// trackInit("ConversationUIKit");
//
uni.$UIKitStore?.uiStore.selectConversation("");
const conversationId = uni.$UIKitStore.uiStore.selectedConversation;
// console.log("conversationId", conversationId);
// (im, , )
uni.$UIKitStore.conversationStore.getConversationListActive(0, 100).then((res) => {
// console.log("reresresresress", res);
// console.log("contactListcontactListcontactListcontactListcontactList", contactList.value.conversationList);
contactList.value.conversationList = res.conversationList;
});
setTimeout(() => {
const unread = uni.$UIKitNIM.V2NIMConversationService.getTotalUnreadCount();
// if (unread === 0) {
// uni.hideTabBarRedDot({
// //
// index: 3, //tabbar
// });
// } else {
// uni.showTabBarRedDot({
// index: 3, //tabbar
// });
// }
}, 1000);
current.value = 0; current.value = 0;
}
}); });
const goLogin = () => {
uni.reLaunch({
url: "/root/person/loginIndex",
});
};
const goPage = ($path) => {
if ($path) {
uni.navigateTo({
url: $path,
});
}
};
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({
phoneNumber: $tel || "0371-6611 3723",
});
};
const simage = ref(""); const simage = ref("");
const serverPop = ref({ const serverPop = ref({
@ -205,16 +160,15 @@ const getScrollInfo = (e) => {
}; };
const updateType = (e) => { const updateType = (e) => {
// console.log(e); // console.log(e);
resetScroll.value = 1; resetScroll.value = 1;
globalData.value.messageTab = e; globalData.value.messageTab = e;
}; };
</script> </script>
<style lang="scss"> <style lang="scss">
page { // @import "../NEUIKit/pages/styles/common.scss";
background-color: #ededed;
}
.i-items { .i-items {
// border-bottom: 1px solid #eee; // border-bottom: 1px solid #eee;
position: relative; position: relative;

Loading…
Cancel
Save