2023-12-14 10:15:23 +08:00
|
|
|
|
<template>
|
2023-12-20 21:52:42 +08:00
|
|
|
|
<div class="home-box">
|
2023-12-14 10:15:23 +08:00
|
|
|
|
<el-row :gutter="20" class="top-div">
|
|
|
|
|
|
<el-col :span="17">
|
2024-08-04 22:29:11 +08:00
|
|
|
|
<div class="chat-hub">
|
2024-11-02 17:34:48 +08:00
|
|
|
|
<!-- <p @click="onClickToChatHub">点击前往-最新上线<span>《聊天室》 </span>,现已支持<span>Ai助手</span>,希望能帮助大家</p>-->
|
|
|
|
|
|
|
|
|
|
|
|
<p v-if="isIcp"
|
|
|
|
|
|
style="font-size: 25px;
|
2024-10-04 00:00:44 +08:00
|
|
|
|
color: blue;
|
|
|
|
|
|
background: red;
|
|
|
|
|
|
/* height: 80px; */
|
|
|
|
|
|
font-weight: 900;
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
margin: 10px auto;">
|
2024-11-02 17:34:48 +08:00
|
|
|
|
本站点为个人内容分享,全部资料免费开源学习,所有数据为假数据
|
|
|
|
|
|
<br/>
|
|
|
|
|
|
不涉及企业、团体、论坛和经营销售等内容,只做简单的成果展示
|
|
|
|
|
|
<br/>
|
|
|
|
|
|
富强、民主、文明、和谐、自由、平等
|
|
|
|
|
|
<br/>
|
|
|
|
|
|
公正、法治、爱国、敬业、诚信、友善
|
|
|
|
|
|
</p>
|
|
|
|
|
|
<p v-else @click="onClickToWeChat">
|
2025-01-19 13:20:09 +08:00
|
|
|
|
点击关注官方<span>意.Net微信小程序</span>与<span>意.Net公众号</span>
|
|
|
|
|
|
</p>
|
2024-11-02 17:34:48 +08:00
|
|
|
|
|
|
|
|
|
|
|
2024-04-07 16:35:21 +08:00
|
|
|
|
</div>
|
2023-12-14 10:15:23 +08:00
|
|
|
|
<div class="scrollbar">
|
2024-08-14 22:23:54 +08:00
|
|
|
|
<ScrollbarInfo/>
|
2023-12-14 10:15:23 +08:00
|
|
|
|
</div>
|
2024-08-04 22:29:11 +08:00
|
|
|
|
|
2023-12-14 10:15:23 +08:00
|
|
|
|
<el-row class="left-div">
|
2024-11-02 17:34:48 +08:00
|
|
|
|
|
|
|
|
|
|
|
2024-02-27 13:43:56 +08:00
|
|
|
|
<el-col :span="8" v-for="i in plateList" :key="i.id" class="plate" :style="{
|
2024-08-04 22:29:11 +08:00
|
|
|
|
'padding-left': i % 3 == 1 ? 0 : 0.2 + 'rem',
|
|
|
|
|
|
'padding-right': i % 3 == 0 ? 0 : 0.2 + 'rem',
|
|
|
|
|
|
}">
|
2024-10-07 15:10:05 +08:00
|
|
|
|
<img v-if="isIcp" src="@/assets/login.png" style="height: 80px;width: 100%" alt=""/>
|
2024-11-02 17:34:48 +08:00
|
|
|
|
<PlateCard v-else :name="i.name" :introduction="i.introduction" :id="i.id"
|
|
|
|
|
|
:isPublish="i.isDisableCreateDiscuss"/>
|
2023-12-14 10:15:23 +08:00
|
|
|
|
</el-col>
|
2024-11-02 17:34:48 +08:00
|
|
|
|
|
|
|
|
|
|
<div ref="scrollableDiv" class="scrollable-div" v-infinite-scroll="loadDiscuss" style="height: 2500px;width: 100%; overflow-y: auto;" infinite-scroll-distance="10">
|
|
|
|
|
|
|
|
|
|
|
|
<el-col v-if="isDiscussFinished" :span="24" v-for="i in discussList" :key="i.id">
|
2024-10-07 15:10:05 +08:00
|
|
|
|
<img v-if="isIcp" src="@/assets/login.png" style="height: 150px;width: 100%" alt=""/>
|
2024-11-02 17:34:48 +08:00
|
|
|
|
<DisscussCard v-else :discuss="i" badge="置顶"/>
|
2023-12-26 22:46:42 +08:00
|
|
|
|
</el-col>
|
2024-11-02 17:34:48 +08:00
|
|
|
|
<Skeleton v-else :isBorder="true"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-01-19 10:43:34 +08:00
|
|
|
|
<el-col :span="24" v-for="i in allDiscussList" :key="i.id">
|
2024-10-07 15:10:05 +08:00
|
|
|
|
<img v-if="isIcp" src="@/assets/login.png" style="height: 150px;width: 100%" alt=""/>
|
|
|
|
|
|
<DisscussCard v-else :discuss="i"/>
|
2023-12-26 23:18:27 +08:00
|
|
|
|
</el-col>
|
2024-11-02 17:34:48 +08:00
|
|
|
|
|
|
|
|
|
|
<Skeleton v-if="!isAllDiscussFinished" :isBorder="true"/>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-12-14 10:15:23 +08:00
|
|
|
|
</el-row>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="7">
|
|
|
|
|
|
<el-row class="right-div">
|
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
|
<el-carousel trigger="click" height="150px">
|
2024-01-19 10:43:34 +08:00
|
|
|
|
<el-carousel-item v-for="item in bannerList" :key="item.id">
|
2023-12-14 10:15:23 +08:00
|
|
|
|
<div class="carousel-font" :style="{ color: item.color }">
|
|
|
|
|
|
{{ item.name }}
|
|
|
|
|
|
</div>
|
2024-08-14 22:23:54 +08:00
|
|
|
|
<el-image style="width: 100%; height: 100%" :src="item.logo" fit="cover"/>
|
2023-12-14 10:15:23 +08:00
|
|
|
|
</el-carousel-item>
|
|
|
|
|
|
</el-carousel>
|
|
|
|
|
|
</el-col>
|
2024-01-04 23:05:20 +08:00
|
|
|
|
<div class="analyse">
|
|
|
|
|
|
<div class="item">
|
|
|
|
|
|
<div class="text">在线人数</div>
|
|
|
|
|
|
<div class="content">
|
|
|
|
|
|
<div class="name"></div>
|
|
|
|
|
|
<div class="content-box top">
|
2024-01-06 12:45:14 +08:00
|
|
|
|
<div class="count">{{ onlineNumber }}</div>
|
2024-01-04 23:05:20 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="item">
|
|
|
|
|
|
<div class="text">注册人数</div>
|
|
|
|
|
|
<div class="content">
|
|
|
|
|
|
<div class="content-box top">
|
|
|
|
|
|
<div class="count">{{ userAnalyseInfo.registerNumber }}</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="item">
|
|
|
|
|
|
<div class="text">昨日新增</div>
|
|
|
|
|
|
<div class="content">
|
|
|
|
|
|
<div class="content-box">
|
|
|
|
|
|
<div class="count">
|
|
|
|
|
|
{{ userAnalyseInfo.yesterdayNewUser }}
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2024-01-11 23:51:09 +08:00
|
|
|
|
<!-- 签到 -->
|
2024-10-07 15:10:05 +08:00
|
|
|
|
<el-col v-if="!isIcp" :span="24">
|
2024-08-04 22:29:11 +08:00
|
|
|
|
<InfoCard header="活动">
|
2024-01-11 23:51:09 +08:00
|
|
|
|
<template #content>
|
2025-02-04 15:23:20 +08:00
|
|
|
|
<div class="top">祝各位,蛇年大吉~</div>
|
2024-08-04 22:29:11 +08:00
|
|
|
|
<el-row class="active">
|
2024-08-09 22:39:27 +08:00
|
|
|
|
|
2024-11-12 22:29:06 +08:00
|
|
|
|
<el-col style="padding: 5px 0px;" v-for="item in activeList" :span="6" @click="handleToRouter(item.path)">
|
2024-08-04 22:29:11 +08:00
|
|
|
|
|
2024-08-09 22:39:27 +08:00
|
|
|
|
<el-icon color="#70aafb" size="30px">
|
2024-08-04 22:29:11 +08:00
|
|
|
|
<component :is="item.icon"></component>
|
|
|
|
|
|
</el-icon>
|
2024-08-09 22:39:27 +08:00
|
|
|
|
<span> {{ item.name }}</span>
|
2024-08-04 22:29:11 +08:00
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
2024-01-11 23:51:09 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
</InfoCard>
|
|
|
|
|
|
</el-col>
|
2023-12-14 10:15:23 +08:00
|
|
|
|
|
|
|
|
|
|
<el-col :span="24">
|
2024-08-04 22:29:11 +08:00
|
|
|
|
<InfoCard header="访问统计" class="VisitsLineChart" text="全站历史统计" @onClickText="onClickAccessLog">
|
2023-12-14 10:15:23 +08:00
|
|
|
|
<template #content>
|
2024-08-14 22:23:54 +08:00
|
|
|
|
<p class="switch-span" @click="onClickWeekSwitch">切换</p>
|
|
|
|
|
|
<VisitsLineChart :option="statisOptions" class="statisChart"/>
|
|
|
|
|
|
|
2023-12-14 10:15:23 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
</InfoCard>
|
2024-02-27 13:43:56 +08:00
|
|
|
|
|
|
|
|
|
|
<el-dialog v-model="accessLogDialogVisible" title="全站历史统计" width="1200px" center>
|
2024-08-09 22:39:27 +08:00
|
|
|
|
<el-tabs v-model="accessLogTab">
|
2024-08-14 22:23:54 +08:00
|
|
|
|
<el-tab-pane label="访问统计(近3月)" name="AccessLogChart"
|
|
|
|
|
|
style="display: flex;justify-content: center;">
|
|
|
|
|
|
<AccessLogChart :option="accessLogOptins" style="height: 600px;width: 1200px;"/>
|
2024-08-09 22:39:27 +08:00
|
|
|
|
</el-tab-pane>
|
2024-08-14 22:23:54 +08:00
|
|
|
|
<el-tab-pane label="注册统计(近3月)" name="RegisterChart"
|
|
|
|
|
|
style="display: flex;justify-content: center;">
|
|
|
|
|
|
<AccessLogChart :option="registerLogOptins" style="height: 600px;width: 1200px;"/>
|
2024-08-09 22:39:27 +08:00
|
|
|
|
</el-tab-pane>
|
|
|
|
|
|
|
|
|
|
|
|
</el-tabs>
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-02-27 13:43:56 +08:00
|
|
|
|
</el-dialog>
|
2023-12-14 10:15:23 +08:00
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="24">
|
2024-02-27 13:43:56 +08:00
|
|
|
|
<InfoCard header="简介" text="">
|
2023-12-14 10:15:23 +08:00
|
|
|
|
<template #content>
|
|
|
|
|
|
<div class="introduce">
|
2024-02-27 13:43:56 +08:00
|
|
|
|
没有什么能够阻挡,人类对代码<span style="color: #1890ff">优雅</span>的追求
|
2023-12-14 10:15:23 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</InfoCard>
|
|
|
|
|
|
</el-col>
|
2024-01-04 23:05:20 +08:00
|
|
|
|
|
2024-10-07 15:10:05 +08:00
|
|
|
|
<el-col v-if="!isIcp" :span="24">
|
2023-12-27 12:48:51 +08:00
|
|
|
|
<template v-if="isPointFinished">
|
2025-02-04 15:23:20 +08:00
|
|
|
|
<InfoCard :isPadding="false" :items="pointList" header="财富排行榜" text="查看我的位置" height="410"
|
2024-08-14 22:23:54 +08:00
|
|
|
|
@onClickText="onClickMoneyTop">
|
2023-12-26 22:46:42 +08:00
|
|
|
|
<template #item="temp">
|
2024-08-14 22:23:54 +08:00
|
|
|
|
<PointsRanking :pointsData="temp"/>
|
2023-12-26 22:46:42 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
</InfoCard>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
<template v-else>
|
2025-02-04 15:23:20 +08:00
|
|
|
|
<InfoCard :isPadding="false" header="财富排行榜" text="查看我的位置">
|
2024-02-27 13:43:56 +08:00
|
|
|
|
<template #content>
|
2024-08-14 22:23:54 +08:00
|
|
|
|
<Skeleton/>
|
2024-02-27 13:43:56 +08:00
|
|
|
|
</template>
|
2023-12-26 22:46:42 +08:00
|
|
|
|
</InfoCard>
|
|
|
|
|
|
</template>
|
2023-12-14 10:15:23 +08:00
|
|
|
|
</el-col>
|
|
|
|
|
|
|
2024-10-07 15:10:05 +08:00
|
|
|
|
<el-col v-if="!isIcp" :span="24">
|
2023-12-27 12:48:51 +08:00
|
|
|
|
<template v-if="isFriendFinished">
|
2025-02-04 15:23:20 +08:00
|
|
|
|
<InfoCard :isPadding="false" :items="friendList" header="推荐好友" text="更多" height="400">
|
2023-12-26 22:46:42 +08:00
|
|
|
|
<template #item="temp">
|
2024-08-14 22:23:54 +08:00
|
|
|
|
<RecommendFriend :friendData="temp"/>
|
2023-12-26 22:46:42 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
</InfoCard>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
<template v-else>
|
2025-02-04 15:23:20 +08:00
|
|
|
|
<InfoCard :isPadding="false" header="推荐好友" text="更多">
|
2024-02-27 13:43:56 +08:00
|
|
|
|
<template #content>
|
2024-08-14 22:23:54 +08:00
|
|
|
|
<Skeleton/>
|
2024-02-27 13:43:56 +08:00
|
|
|
|
</template>
|
2023-12-26 22:46:42 +08:00
|
|
|
|
</InfoCard>
|
|
|
|
|
|
</template>
|
2023-12-14 10:15:23 +08:00
|
|
|
|
</el-col>
|
2024-10-07 15:10:05 +08:00
|
|
|
|
<el-col v-if="!isIcp" :span="24">
|
2023-12-27 12:48:51 +08:00
|
|
|
|
<template v-if="isThemeFinished">
|
2025-02-04 15:23:20 +08:00
|
|
|
|
<InfoCard :isPadding="false" :items="themeList" header="推荐主题" text="更多" height="400">
|
2023-12-26 22:46:42 +08:00
|
|
|
|
<template #item="temp">
|
2024-08-14 22:23:54 +08:00
|
|
|
|
<ThemeData :themeData="temp"/>
|
2023-12-26 22:46:42 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
</InfoCard>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
<template v-else>
|
2025-02-04 15:23:20 +08:00
|
|
|
|
<InfoCard :isPadding="false" header="推荐主题" text="更多">
|
2024-02-27 13:43:56 +08:00
|
|
|
|
<template #content>
|
2024-08-14 22:23:54 +08:00
|
|
|
|
<Skeleton/>
|
2024-02-27 13:43:56 +08:00
|
|
|
|
</template>
|
2023-12-26 22:46:42 +08:00
|
|
|
|
</InfoCard>
|
|
|
|
|
|
</template>
|
2023-12-25 23:37:36 +08:00
|
|
|
|
</el-col>
|
2023-12-14 10:15:23 +08:00
|
|
|
|
|
|
|
|
|
|
<el-col :span="24" style="background: transparent">
|
2024-08-14 22:23:54 +08:00
|
|
|
|
<BottomInfo/>
|
2023-12-14 10:15:23 +08:00
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
2024-10-02 23:25:29 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
|
|
v-model="wechatDialogVisible"
|
2024-11-12 22:29:06 +08:00
|
|
|
|
title="意社区官方"
|
2024-10-02 23:25:29 +08:00
|
|
|
|
width="800"
|
|
|
|
|
|
>
|
2024-11-12 22:29:06 +08:00
|
|
|
|
|
|
|
|
|
|
<div style="display: flex;flex-direction: column;align-items: center;">
|
|
|
|
|
|
<p style="margin: 10px;font-size: large">微信小程序:</p>
|
|
|
|
|
|
<img style="width: 200px; height: 200px" src="@/assets/wechat/mini.jpg" alt=""/>
|
|
|
|
|
|
<el-divider/>
|
|
|
|
|
|
<p style="margin: 10px;font-size: large"> 微信公众号:</p>
|
2024-11-02 17:34:48 +08:00
|
|
|
|
<img style="width: 585px; height: 186px" src="@/assets/wechat/share.png" alt=""/>
|
|
|
|
|
|
</div>
|
2024-10-02 23:25:29 +08:00
|
|
|
|
|
|
|
|
|
|
<template #footer>
|
|
|
|
|
|
<div class="dialog-footer">
|
|
|
|
|
|
<el-button type="primary" @click="wechatDialogVisible = false">
|
|
|
|
|
|
已关注
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-dialog>
|
2024-11-02 17:34:48 +08:00
|
|
|
|
<el-backtop :right="100" :bottom="100" @click="clickBacktop" visibility-height="0"/>
|
2023-12-14 10:15:23 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script setup>
|
2024-08-14 22:23:54 +08:00
|
|
|
|
import {onMounted, ref, reactive, computed, nextTick, watch} from "vue";
|
|
|
|
|
|
import {useRouter} from "vue-router";
|
2023-12-14 10:15:23 +08:00
|
|
|
|
import DisscussCard from "@/components/DisscussCard.vue";
|
|
|
|
|
|
import InfoCard from "@/components/InfoCard.vue";
|
2025-02-04 15:23:20 +08:00
|
|
|
|
import ThemeData from "@/views/home/components/RecommendTheme/index.vue";
|
2023-12-14 10:15:23 +08:00
|
|
|
|
import PlateCard from "@/components/PlateCard.vue";
|
|
|
|
|
|
import ScrollbarInfo from "@/components/ScrollbarInfo.vue";
|
|
|
|
|
|
import BottomInfo from "@/components/BottomInfo.vue";
|
2023-12-25 22:27:15 +08:00
|
|
|
|
import VisitsLineChart from "./components/VisitsLineChart/index.vue";
|
2024-02-27 13:43:56 +08:00
|
|
|
|
import AccessLogChart from "./components/AccessLogChart/Index.vue"
|
2024-08-14 22:23:54 +08:00
|
|
|
|
import {access, getAccessList} from "@/apis/accessApi.js";
|
|
|
|
|
|
import {getList} from "@/apis/plateApi.js";
|
|
|
|
|
|
import {getList as bannerGetList} from "@/apis/bannerApi.js";
|
|
|
|
|
|
import {getHomeDiscuss} from "@/apis/discussApi.js";
|
|
|
|
|
|
import {getWeek} from "@/apis/accessApi.js";
|
2023-12-25 23:37:36 +08:00
|
|
|
|
import {
|
|
|
|
|
|
getRecommendedTopic,
|
|
|
|
|
|
getRecommendedFriend,
|
2024-11-13 19:01:23 +08:00
|
|
|
|
getMoneyTop,
|
2024-01-04 23:05:20 +08:00
|
|
|
|
getUserAnalyse,
|
2024-08-10 13:03:29 +08:00
|
|
|
|
getRegisterAnalyse
|
2023-12-25 23:37:36 +08:00
|
|
|
|
} from "@/apis/analyseApi.js";
|
2024-08-14 22:23:54 +08:00
|
|
|
|
import {getList as getAllDiscussList} from "@/apis/discussApi.js";
|
2023-12-25 22:27:15 +08:00
|
|
|
|
import PointsRanking from "./components/PointsRanking/index.vue";
|
2023-12-25 22:50:04 +08:00
|
|
|
|
import RecommendFriend from "./components/RecommendFriend/index.vue";
|
2023-12-26 22:46:42 +08:00
|
|
|
|
import Skeleton from "@/components/Skeleton/index.vue";
|
2024-01-06 12:45:14 +08:00
|
|
|
|
import useSocketStore from "@/stores/socket";
|
2024-01-15 00:25:25 +08:00
|
|
|
|
|
2024-02-27 13:43:56 +08:00
|
|
|
|
const accessLogDialogVisible = ref(false)
|
2024-01-11 23:51:09 +08:00
|
|
|
|
const router = useRouter();
|
|
|
|
|
|
|
2024-02-27 13:43:56 +08:00
|
|
|
|
const accessAllList = ref([]);
|
2024-08-10 13:03:29 +08:00
|
|
|
|
const registerAllList = ref([]);
|
2023-12-14 10:15:23 +08:00
|
|
|
|
|
2023-12-25 22:27:15 +08:00
|
|
|
|
const plateList = ref([]);
|
|
|
|
|
|
const discussList = ref([]);
|
2023-12-27 12:48:51 +08:00
|
|
|
|
const isDiscussFinished = ref(false);
|
2023-12-25 22:27:15 +08:00
|
|
|
|
const bannerList = ref([]);
|
2023-12-14 10:15:23 +08:00
|
|
|
|
const weekList = ref([]);
|
2023-12-25 22:27:15 +08:00
|
|
|
|
const pointList = ref([]);
|
2023-12-27 12:48:51 +08:00
|
|
|
|
const isPointFinished = ref(false);
|
2023-12-25 22:50:04 +08:00
|
|
|
|
const friendList = ref([]);
|
2023-12-27 12:48:51 +08:00
|
|
|
|
const isFriendFinished = ref(false);
|
2023-12-25 23:37:36 +08:00
|
|
|
|
const themeList = ref([]);
|
2024-01-09 21:46:09 +08:00
|
|
|
|
const isThemeFinished = ref(false);
|
2023-12-26 23:18:27 +08:00
|
|
|
|
const allDiscussList = ref([]);
|
2023-12-27 12:48:51 +08:00
|
|
|
|
const isAllDiscussFinished = ref(false);
|
2024-01-04 23:05:20 +08:00
|
|
|
|
const userAnalyseInfo = ref({});
|
2024-01-06 12:45:14 +08:00
|
|
|
|
const onlineNumber = ref(0);
|
2024-08-09 22:39:27 +08:00
|
|
|
|
const accessLogTab = ref()
|
2024-11-02 17:34:48 +08:00
|
|
|
|
|
|
|
|
|
|
const currentDiscussPageIndex = ref(1);
|
2024-08-07 11:12:01 +08:00
|
|
|
|
const activeList = [
|
2024-08-14 22:23:54 +08:00
|
|
|
|
{name: "签到", path: "/activity/sign", icon: "Present"},
|
|
|
|
|
|
{name: "等级", path: "/activity/level", icon: "Ticket"},
|
|
|
|
|
|
{name: "大转盘", path: "/activity/lucky", icon: "Sunny"},
|
|
|
|
|
|
{name: "银行", path: "/activity/bank", icon: "CreditCard"},
|
|
|
|
|
|
|
2024-08-15 21:38:32 +08:00
|
|
|
|
{name: "任务", path: "/activity/assignment", icon: "Memo"},
|
2024-08-14 22:23:54 +08:00
|
|
|
|
{name: "排行榜", path: "/money", icon: "Money"},
|
|
|
|
|
|
{name: "开始", path: "/start", icon: "Position"},
|
|
|
|
|
|
{name: "聊天室", path: "/chat", icon: "ChatRound"},
|
2024-11-12 22:29:06 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{name: "商城", path: "/shop", icon: "ShoppingCart"},
|
|
|
|
|
|
{name: "数字藏品", path: "/dc", icon: "Trophy"},
|
|
|
|
|
|
// {name: "小程序", path: "/", icon: "Position"},
|
|
|
|
|
|
// {name: "公众号", path: "/", icon: "ChatRound"},
|
2024-08-04 22:29:11 +08:00
|
|
|
|
];
|
2024-11-02 17:34:48 +08:00
|
|
|
|
const isIcp = import.meta.env.VITE_APP_ICP === "true";
|
2023-12-14 10:15:23 +08:00
|
|
|
|
|
2024-11-02 17:34:48 +08:00
|
|
|
|
const weekQuery = reactive({accessLogType: "Request"});
|
|
|
|
|
|
|
|
|
|
|
|
const init = async () => {
|
2024-09-29 00:47:48 +08:00
|
|
|
|
|
|
|
|
|
|
//分阶段优化
|
|
|
|
|
|
await Promise.all([
|
2024-11-02 17:34:48 +08:00
|
|
|
|
(async () => {
|
|
|
|
|
|
const {data: allDiscussData, config: allDiscussConfig} =
|
|
|
|
|
|
await getAllDiscussList({Type: 0, skipCount: currentDiscussPageIndex.value, maxResultCount: 10});
|
2024-09-29 00:47:48 +08:00
|
|
|
|
isAllDiscussFinished.value = allDiscussConfig.isFinish;
|
2024-11-02 17:34:48 +08:00
|
|
|
|
allDiscussList.value = allDiscussData.items;
|
|
|
|
|
|
})(),
|
|
|
|
|
|
(async () => {
|
|
|
|
|
|
const {data: plateData} = await getList();
|
|
|
|
|
|
plateList.value = plateData.items;
|
|
|
|
|
|
})(),
|
|
|
|
|
|
(async () => {
|
|
|
|
|
|
const {data: discussData, config: discussConfig} = await getHomeDiscuss();
|
2024-09-29 00:47:48 +08:00
|
|
|
|
discussList.value = discussData;
|
2024-11-02 17:34:48 +08:00
|
|
|
|
isDiscussFinished.value = discussConfig.isFinish;
|
|
|
|
|
|
})(),
|
|
|
|
|
|
(async () => {
|
|
|
|
|
|
const {data: bannerData} = await bannerGetList();
|
|
|
|
|
|
bannerList.value = bannerData.items;
|
|
|
|
|
|
})(),
|
|
|
|
|
|
(async () => {
|
|
|
|
|
|
const {data: weekData} = await getWeek(weekQuery);
|
|
|
|
|
|
weekList.value = weekData;
|
|
|
|
|
|
})(),
|
|
|
|
|
|
(async () => {
|
2024-11-13 19:01:23 +08:00
|
|
|
|
const {data: pointData, config: pointConfig} = await getMoneyTop();
|
2024-09-29 00:47:48 +08:00
|
|
|
|
pointList.value = pointData.items;
|
2024-11-02 17:34:48 +08:00
|
|
|
|
isPointFinished.value = pointConfig.isFinish;
|
|
|
|
|
|
})(),
|
|
|
|
|
|
(async () => {
|
|
|
|
|
|
const {data: userAnalyseInfoData} = await getUserAnalyse();
|
2024-09-29 00:47:48 +08:00
|
|
|
|
onlineNumber.value = userAnalyseInfoData.onlineNumber;
|
2024-11-02 17:34:48 +08:00
|
|
|
|
userAnalyseInfo.value = userAnalyseInfoData;
|
|
|
|
|
|
})(),
|
2024-09-29 00:47:48 +08:00
|
|
|
|
]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//不重要的请求滞后
|
2024-11-02 17:34:48 +08:00
|
|
|
|
const {data: friendData, config: friendConfig} = await getRecommendedFriend();
|
|
|
|
|
|
friendList.value = friendData;
|
|
|
|
|
|
isFriendFinished.value = friendConfig.isFinish;
|
|
|
|
|
|
const {data: themeData, config: themeConfig} = await getRecommendedTopic();
|
|
|
|
|
|
themeList.value = themeData;
|
|
|
|
|
|
isThemeFinished.value = themeConfig.isFinish;
|
2024-09-29 00:47:48 +08:00
|
|
|
|
await access();
|
|
|
|
|
|
}
|
2023-12-14 10:15:23 +08:00
|
|
|
|
//初始化
|
|
|
|
|
|
onMounted(async () => {
|
2024-11-02 17:34:48 +08:00
|
|
|
|
await init();
|
2023-12-14 10:15:23 +08:00
|
|
|
|
});
|
|
|
|
|
|
|
2023-12-16 17:47:44 +08:00
|
|
|
|
const weekXAxis = ["周一", "周二", "周三", "周四", "周五", "周六", "周日"];
|
2023-12-14 10:15:23 +08:00
|
|
|
|
// 访问统计
|
|
|
|
|
|
const statisOptions = computed(() => {
|
|
|
|
|
|
return {
|
|
|
|
|
|
xAxis: {
|
2023-12-16 17:47:44 +08:00
|
|
|
|
data: weekList.value.map((item, index) => {
|
|
|
|
|
|
return weekXAxis.filter((v, vIndex) => {
|
|
|
|
|
|
return vIndex === index;
|
|
|
|
|
|
})[0];
|
|
|
|
|
|
}),
|
2023-12-14 10:15:23 +08:00
|
|
|
|
},
|
|
|
|
|
|
series: {
|
|
|
|
|
|
data: weekList.value.map((item) => item.number),
|
|
|
|
|
|
},
|
|
|
|
|
|
};
|
|
|
|
|
|
});
|
2024-02-27 13:43:56 +08:00
|
|
|
|
//历史全部访问统计
|
|
|
|
|
|
const accessLogOptins = computed(() => {
|
|
|
|
|
|
return {
|
|
|
|
|
|
xAxis: {
|
2024-08-04 22:29:11 +08:00
|
|
|
|
data: accessAllList.value?.map((item, index) => {
|
2024-02-27 13:43:56 +08:00
|
|
|
|
return item.creationTime.slice(0, 10);
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
series: [
|
|
|
|
|
|
{
|
2024-08-04 22:29:11 +08:00
|
|
|
|
data: accessAllList.value?.map((item, index) => {
|
|
|
|
|
|
return item.number;
|
2024-02-27 13:43:56 +08:00
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
]
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
2024-08-10 13:03:29 +08:00
|
|
|
|
|
|
|
|
|
|
//历史注册人员全部访问统计
|
|
|
|
|
|
const registerLogOptins = computed(() => {
|
|
|
|
|
|
return {
|
|
|
|
|
|
xAxis: {
|
|
|
|
|
|
data: registerAllList.value?.map((item, index) => {
|
|
|
|
|
|
return item.time.slice(0, 10);
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
series: [
|
|
|
|
|
|
{
|
|
|
|
|
|
data: registerAllList.value?.map((item, index) => {
|
|
|
|
|
|
return item.number;
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
]
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
|
2024-08-09 22:39:27 +08:00
|
|
|
|
const onClickMoneyTop = () => {
|
|
|
|
|
|
|
|
|
|
|
|
router.push("/money");
|
|
|
|
|
|
};
|
|
|
|
|
|
|
2024-08-04 22:29:11 +08:00
|
|
|
|
const onClickToChatHub = () => {
|
2024-04-07 16:35:21 +08:00
|
|
|
|
router.push("/chat");
|
|
|
|
|
|
};
|
2024-01-06 12:45:14 +08:00
|
|
|
|
|
2024-08-04 22:29:11 +08:00
|
|
|
|
const handleToRouter = (path) => {
|
|
|
|
|
|
router.push(path);
|
2024-01-11 23:51:09 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
2024-01-06 12:45:14 +08:00
|
|
|
|
// 推送的实时人数获取
|
|
|
|
|
|
const currentOnlineNum = computed(() => useSocketStore().getOnlineNum());
|
|
|
|
|
|
watch(
|
2024-08-14 22:23:54 +08:00
|
|
|
|
() => currentOnlineNum.value,
|
|
|
|
|
|
(val) => {
|
|
|
|
|
|
onlineNumber.value = val;
|
|
|
|
|
|
},
|
|
|
|
|
|
{deep: true}
|
2024-01-06 12:45:14 +08:00
|
|
|
|
);
|
2024-08-09 22:39:27 +08:00
|
|
|
|
watch(
|
2024-08-14 22:23:54 +08:00
|
|
|
|
() => accessLogTab.value,
|
|
|
|
|
|
async (value) => {
|
|
|
|
|
|
switch (value) {
|
|
|
|
|
|
case "AccessLogChart":
|
|
|
|
|
|
const {data} = await getAccessList(weekQuery);
|
|
|
|
|
|
accessAllList.value = data;
|
|
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
case "RegisterChart":
|
|
|
|
|
|
const {data: registerUserListData} = await getRegisterAnalyse();
|
|
|
|
|
|
registerAllList.value = registerUserListData;
|
|
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
}
|
2024-08-09 22:39:27 +08:00
|
|
|
|
}
|
|
|
|
|
|
)
|
2024-02-27 13:43:56 +08:00
|
|
|
|
const onClickAccessLog = async () => {
|
|
|
|
|
|
accessLogDialogVisible.value = true;
|
2024-08-09 22:39:27 +08:00
|
|
|
|
accessLogTab.value = "AccessLogChart";
|
2024-02-27 13:43:56 +08:00
|
|
|
|
|
|
|
|
|
|
}
|
2024-01-15 00:25:25 +08:00
|
|
|
|
|
2024-11-02 17:34:48 +08:00
|
|
|
|
let loadingDiscuss = false;
|
|
|
|
|
|
//加载滚动文章
|
|
|
|
|
|
const loadDiscuss = async () => {
|
|
|
|
|
|
|
|
|
|
|
|
if (loadingDiscuss === false) {
|
|
|
|
|
|
loadingDiscuss = true;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
currentDiscussPageIndex.value += 1;
|
|
|
|
|
|
|
|
|
|
|
|
isAllDiscussFinished.value = false;
|
|
|
|
|
|
const {data: allDiscussData, config: allDiscussConfig} =
|
|
|
|
|
|
await getAllDiscussList({Type: 0, skipCount: currentDiscussPageIndex.value, maxResultCount: 10});
|
|
|
|
|
|
isAllDiscussFinished.value = allDiscussConfig.isFinish;
|
|
|
|
|
|
|
|
|
|
|
|
//在列表后新增
|
|
|
|
|
|
allDiscussList.value.push(...allDiscussData.items);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
loadingDiscuss = false;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
const wechatDialogVisible = ref(false)
|
2024-08-14 22:23:54 +08:00
|
|
|
|
//切换统计开关
|
|
|
|
|
|
const onClickWeekSwitch = async () => {
|
|
|
|
|
|
if (weekQuery.accessLogType === "HomeClick") {
|
2024-11-02 17:34:48 +08:00
|
|
|
|
weekQuery.accessLogType = "Request";
|
2024-08-14 22:23:54 +08:00
|
|
|
|
} else if (weekQuery.accessLogType === "Request") {
|
|
|
|
|
|
weekQuery.accessLogType = "HomeClick";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const {data: weekData} = await getWeek(weekQuery);
|
|
|
|
|
|
weekList.value = weekData;
|
|
|
|
|
|
}
|
2024-11-02 17:34:48 +08:00
|
|
|
|
const scrollableDiv = ref(null);
|
|
|
|
|
|
//回到顶部
|
|
|
|
|
|
const clickBacktop=()=>{
|
|
|
|
|
|
if (scrollableDiv.value) {
|
|
|
|
|
|
scrollableDiv.value.scrollTop = 0; // 设置滚动条到顶部
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2024-10-02 23:25:29 +08:00
|
|
|
|
|
|
|
|
|
|
//打开微信公众号弹窗
|
2024-11-02 17:34:48 +08:00
|
|
|
|
const onClickToWeChat = () => {
|
|
|
|
|
|
wechatDialogVisible.value = true;
|
2024-10-02 23:25:29 +08:00
|
|
|
|
};
|
2023-12-14 10:15:23 +08:00
|
|
|
|
</script>
|
2023-12-20 21:52:42 +08:00
|
|
|
|
<style scoped lang="scss">
|
|
|
|
|
|
.home-box {
|
2023-12-24 16:07:13 +08:00
|
|
|
|
width: 1300px;
|
2023-12-20 21:52:42 +08:00
|
|
|
|
height: 100%;
|
2024-02-27 13:43:56 +08:00
|
|
|
|
|
2023-12-20 21:52:42 +08:00
|
|
|
|
.introduce {
|
|
|
|
|
|
color: rgba(0, 0, 0, 0.45);
|
|
|
|
|
|
font-size: small;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.plate {
|
|
|
|
|
|
background: transparent !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.left-div .el-col {
|
|
|
|
|
|
background-color: #ffffff;
|
|
|
|
|
|
|
|
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.right-div .el-col {
|
|
|
|
|
|
background-color: #ffffff;
|
|
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.carousel-font {
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
z-index: 1;
|
|
|
|
|
|
top: 10%;
|
|
|
|
|
|
left: 10%;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.top-div {
|
|
|
|
|
|
padding-top: 0.5rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.scrollbar {
|
|
|
|
|
|
display: block;
|
|
|
|
|
|
margin-bottom: 0.5rem;
|
|
|
|
|
|
}
|
2024-02-27 13:43:56 +08:00
|
|
|
|
|
2024-01-04 23:05:20 +08:00
|
|
|
|
.analyse {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 100px;
|
|
|
|
|
|
margin-bottom: 10px;
|
2024-02-27 13:43:56 +08:00
|
|
|
|
|
2024-01-04 23:05:20 +08:00
|
|
|
|
.item {
|
|
|
|
|
|
width: 30%;
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
background: url("@/assets/box/online_bg.svg") no-repeat;
|
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
|
background-position: 0 30px;
|
|
|
|
|
|
background-size: 150% 100%;
|
|
|
|
|
|
border: 1px solid #409eff;
|
|
|
|
|
|
border-radius: 5px;
|
|
|
|
|
|
color: #409eff;
|
2024-02-27 13:43:56 +08:00
|
|
|
|
|
2024-01-04 23:05:20 +08:00
|
|
|
|
.content {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
|
|
|
|
&-box {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: flex-start;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
|
|
|
|
|
|
|
.name {
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
}
|
2024-02-27 13:43:56 +08:00
|
|
|
|
|
2024-01-04 23:05:20 +08:00
|
|
|
|
.count {
|
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.text {
|
|
|
|
|
|
width: 60px;
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: -10px;
|
|
|
|
|
|
left: 50%;
|
|
|
|
|
|
transform: translateX(-50%);
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
border: 1px solid #d9ecff;
|
|
|
|
|
|
border-radius: 5px;
|
|
|
|
|
|
color: #409eff;
|
|
|
|
|
|
background-color: #ecf5ff;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2024-08-09 22:39:27 +08:00
|
|
|
|
|
|
|
|
|
|
.top {
|
|
|
|
|
|
text-align: center;
|
2024-08-04 22:29:11 +08:00
|
|
|
|
margin-bottom: 20px;
|
2024-08-09 22:39:27 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2024-08-04 22:29:11 +08:00
|
|
|
|
.active {
|
2024-01-11 23:51:09 +08:00
|
|
|
|
display: flex;
|
2024-11-12 22:29:06 +08:00
|
|
|
|
justify-content: flex-start;
|
2024-01-11 23:51:09 +08:00
|
|
|
|
align-items: center;
|
|
|
|
|
|
color: #8a919f;
|
2024-02-27 13:43:56 +08:00
|
|
|
|
|
2024-08-04 22:29:11 +08:00
|
|
|
|
|
|
|
|
|
|
.el-col {
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
display: flex;
|
2024-08-09 22:39:27 +08:00
|
|
|
|
cursor: pointer;
|
2024-08-04 22:29:11 +08:00
|
|
|
|
padding: 10px 0px;
|
|
|
|
|
|
}
|
2024-08-09 22:39:27 +08:00
|
|
|
|
|
2024-08-04 22:29:11 +08:00
|
|
|
|
.el-col:hover {
|
2024-08-09 22:39:27 +08:00
|
|
|
|
background-color: #cce1ff;
|
|
|
|
|
|
/* 悬浮时背景色变化 */
|
|
|
|
|
|
color: #70aafb;
|
|
|
|
|
|
/* 悬浮时文字颜色变化 */
|
|
|
|
|
|
}
|
2024-08-04 22:29:11 +08:00
|
|
|
|
|
2024-01-11 23:51:09 +08:00
|
|
|
|
&-btn {
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
width: 74px;
|
|
|
|
|
|
height: 36px;
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
border: 1px solid rgba(30, 128, 255, 0.3);
|
|
|
|
|
|
background-color: rgba(30, 128, 255, 0.1);
|
|
|
|
|
|
color: #1e80ff;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2024-01-04 23:05:20 +08:00
|
|
|
|
|
2024-08-14 22:23:54 +08:00
|
|
|
|
.VisitsLineChart > > > .el-card__body {
|
2023-12-20 21:52:42 +08:00
|
|
|
|
padding: 0.5rem;
|
|
|
|
|
|
}
|
2024-11-02 17:34:48 +08:00
|
|
|
|
|
|
|
|
|
|
.VisitsLineChart p {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: flex-end;
|
|
|
|
|
|
color: #409eff;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
margin-top: 8px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2023-12-20 21:52:42 +08:00
|
|
|
|
.statisChart {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 300px;
|
|
|
|
|
|
}
|
2024-02-27 13:43:56 +08:00
|
|
|
|
|
|
|
|
|
|
.accessLogChart {
|
|
|
|
|
|
width: 1100px;
|
|
|
|
|
|
height: 500px;
|
|
|
|
|
|
}
|
2023-12-14 10:15:23 +08:00
|
|
|
|
}
|
2024-08-04 22:29:11 +08:00
|
|
|
|
|
2024-08-14 22:23:54 +08:00
|
|
|
|
|
2024-04-07 16:35:21 +08:00
|
|
|
|
//走马灯,聊天室链接
|
2024-08-04 22:29:11 +08:00
|
|
|
|
.chat-hub {
|
2024-04-07 16:35:21 +08:00
|
|
|
|
background-color: #E6A23C;
|
|
|
|
|
|
color: #ffffff;
|
|
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
box-sizing: border-box;
|
2024-08-04 22:29:11 +08:00
|
|
|
|
|
|
|
|
|
|
span {
|
|
|
|
|
|
color: red;
|
2024-04-07 16:35:21 +08:00
|
|
|
|
}
|
2024-08-04 22:29:11 +08:00
|
|
|
|
|
2024-07-21 20:40:20 +08:00
|
|
|
|
display: flex;
|
2024-08-04 22:29:11 +08:00
|
|
|
|
align-content: center;
|
|
|
|
|
|
flex-wrap: wrap;
|
2024-10-04 00:00:44 +08:00
|
|
|
|
min-height: 30px;
|
2024-08-04 22:29:11 +08:00
|
|
|
|
|
2024-04-07 16:35:21 +08:00
|
|
|
|
p {
|
2024-08-04 22:29:11 +08:00
|
|
|
|
margin: 0 auto;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
}
|
2024-04-07 16:35:21 +08:00
|
|
|
|
}
|
2024-08-04 22:29:11 +08:00
|
|
|
|
|
2024-04-07 16:35:21 +08:00
|
|
|
|
@keyframes marquee {
|
2024-08-04 22:29:11 +08:00
|
|
|
|
0% {
|
|
|
|
|
|
transform: translateX(0);
|
|
|
|
|
|
}
|
2024-04-07 16:35:21 +08:00
|
|
|
|
|
2024-08-04 22:29:11 +08:00
|
|
|
|
100% {
|
|
|
|
|
|
transform: translateX(-100%);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2024-11-02 17:34:48 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* 设置滚动条的样式 */
|
|
|
|
|
|
.scrollable-div::-webkit-scrollbar {
|
|
|
|
|
|
width: 3px; /* 设置滚动条的宽度 */
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.scrollable-div::-webkit-scrollbar-track {
|
|
|
|
|
|
background: #f1f1f1; /* 滚动条轨道背景 */
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.scrollable-div::-webkit-scrollbar-thumb {
|
|
|
|
|
|
background: #cccccc; /* 滚动条的颜色 */
|
|
|
|
|
|
border-radius: 10px; /* 设置圆角 */
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.scrollable-div::-webkit-scrollbar-thumb:hover {
|
|
|
|
|
|
background: #555; /* 滚动条 hover 时的颜色 */
|
|
|
|
|
|
}
|
2023-12-14 10:15:23 +08:00
|
|
|
|
</style>
|