diff --git a/src/components/charts/LineHol.vue b/src/components/charts/LineHol.vue
new file mode 100644
index 0000000..9db5b47
--- /dev/null
+++ b/src/components/charts/LineHol.vue
@@ -0,0 +1,149 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/components/charts/LineHolYellow.vue b/src/components/charts/LineHolYellow.vue
new file mode 100644
index 0000000..f97273d
--- /dev/null
+++ b/src/components/charts/LineHolYellow.vue
@@ -0,0 +1,88 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/realtimeInfo/index.vue b/src/pages/realtimeInfo/index.vue
index 3caab47..4218376 100644
--- a/src/pages/realtimeInfo/index.vue
+++ b/src/pages/realtimeInfo/index.vue
@@ -6,9 +6,7 @@
- 数据更新时间:{{
- dayjs(new Date().getTime()).format("YYYY-MM-DD")
- }}
+ 数据更新时间:{{ dayjs(new Date().getTime()).format("YYYY-MM-DD") }}
@@ -60,31 +58,32 @@
-
+
-
+
+
+
+
+
+
+
+
+
-
+
查看全部
@@ -96,13 +95,7 @@
-
+
查看全部
@@ -115,8 +108,11 @@
退出登录
-
+
@@ -132,21 +128,15 @@ import tagicon_2 from "@/assets/zixun/tagicon_2.png";
import LoginPopup from "@/components/loginPopup/index.vue";
import { Session } from "@/utils/storage";
-import {
- getindustryCount,
- getConceptCount,
- getTopNews,
- getTopIndustry_d,
- getTopConcept_d,
- getNews_cnt_d,
- newsInfoScore,
-} from "@/api/newsInfo";
+import { getindustryCount, getConceptCount, getTopNews, getTopIndustry_d, getTopConcept_d, getNews_cnt_d, newsInfoScore } from "@/api/newsInfo";
import countTo from "@/components/count-to/vue-countTo.vue";
import RankList from "@/components/RankList.vue"; // 路径根据实际调整
import InfoSummary from "@/components/InfoSummary.vue"; // 路径根据实际调整
import indexMenuTitle from "@/components/indexMenuTitle.vue"; // 路径根据实际调整
import dayjs from "dayjs/esm/index";
import HotIndustryList from "@/components/HotIndustryList.vue"; // 路径根据实际调整
+import LineHol from "@/components/charts/LineHol.vue";
+import LineHolYellow from "@/components/charts/LineHolYellow.vue";
const newsList = ref([]);
@@ -218,9 +208,9 @@ function initData() {
getNews_cnt_dFn();
}
-const type = ref();
-function onViewAll(type) {
- type.value = type;
+const type = ref(null);
+function onViewAll(type1) {
+ type.value = type1;
if (Session.get("token")) {
uni.navigateTo({
url: "/pages/realtimeInfo/rankDetail?type=" + type,
@@ -260,6 +250,11 @@ function loginOut() {
window.location.reload();
}
+const lineTabIndex = ref(0);
+function handleTabClick(index) {
+ lineTabIndex.value = index;
+}
+
onUnmounted(() => {
clearInterval(timer);
});
@@ -400,4 +395,41 @@ onMounted(async () => {
margin-right: 20rpx;
margin-bottom: 20rpx;
}
+
+.tabs {
+ display: flex;
+ align-items: center;
+ height: 30px;
+ border-radius: 10px;
+
+ .tab {
+ width: 100px;
+ height: 100%;
+ display: flex;
+ text-align: center;
+ justify-content: center;
+ align-items: center;
+ border: 1px solid #e7e7e7;
+ color: #000;
+ font-size: 12px;
+ }
+
+ .tab_left {
+ border-start-start-radius: 10px;
+ border-end-start-radius: 10px;
+ border-right: 0;
+ }
+
+ .tab_right {
+ border-start-end-radius: 10px;
+ border-end-end-radius: 10px;
+ border-left: 0;
+ }
+
+ .active {
+ border: 1px solid #007bff;
+ background-color: #007bff;
+ color: #fff;
+ }
+}