埋点,im,客服删除

This commit is contained in:
谢宇宁
2026-10-08 21:20:52 +07:00
parent c39daacc6d
commit d25c71dc51
146 changed files with 118 additions and 8495 deletions
+3 -23
View File
@@ -102,14 +102,10 @@ export default {
<script lang="ts" setup>
import { ref, toRefs, watch, reactive, onActivated, computed } from 'vue';
import { useRoute, useRouter } from 'vue-router';
import { storeToRefs } from 'pinia';
import UserApi from '@/service/user';
import { useUserStore } from '@/stores/user';
import { useConfigStore } from '@/stores/config';
import { useGlobalStore } from '@/stores/global';
import { useImAdStore } from '@/stores/imAd';
import { imTotalUnread } from '@/utils/im/sdk';
import { analyticsEventNavigation } from '@/utils/eventReporter/analytics';
import setTheme from '@/assets/theme/index';
import { unlockShortVideoAudio } from '@/utils/shortVideoAudioUnlock';
import AiDramaFloatBubble from './AiDramaFloatBubble.vue';
@@ -180,31 +176,15 @@ onActivated(() => {
});
const onChange = (name: string) => {
UserStore.getCheckMessageTip();
if (name == 'home') {
analyticsEventNavigation('Home', '首页');
} else if (name == 'shortVideo') {
if (name == 'shortVideo') {
// 底部进短视频页:解锁会话有声,抖音/短剧后续竖滑可带声
unlockShortVideoAudio();
analyticsEventNavigation('ShortVideo', '抖音');
} else if (name == 'darkNet') {
analyticsEventNavigation('DarkWeb', '暗网');
} else if (name == 'aiUndress2') {
analyticsEventNavigation('AI', 'AI');
} else if (name == 'community') {
analyticsEventNavigation('Community', '社区');
} else if (name == 'mine') {
analyticsEventNavigation('Mine', '我的');
}
};
const { isNewsTip } = toRefs(UserStore);
const imAdStore = useImAdStore();
const { listHasUnclicked } = storeToRefs(imAdStore);
/** 我的页红点:业务未读 / IM 私信未读 / IM 列表广告未点击 */
const showRedDot = computed(() => {
return Boolean(isNewsTip.value) || Number(imTotalUnread.value) > 0 || listHasUnclicked.value;
});
/** 我的页红点:业务未读 */
const showRedDot = computed(() => Boolean(isNewsTip.value));
const backTop = (path: string) => {
let dom: any = null;