diff --git a/src/pages/realtimeInfo/components/HeaderView/index.vue b/src/pages/realtimeInfo/components/HeaderView/index.vue
index 7a33cb2..d3bb101 100644
--- a/src/pages/realtimeInfo/components/HeaderView/index.vue
+++ b/src/pages/realtimeInfo/components/HeaderView/index.vue
@@ -60,7 +60,13 @@ const userInfos = computed(() => {
return userStore.getUserInfos();
});
+const emit = defineEmits(["onShow"]);
const goto = (path: string, auth: string) => {
+ if (!userStore.isLogin) {
+ emit("onShow");
+ return;
+ }
+
if (userInfos.value.auth.includes(auth)) {
uni.navigateTo({
url: path,
diff --git a/src/pages/realtimeInfo/components/TodayNewsView/index.vue b/src/pages/realtimeInfo/components/TodayNewsView/index.vue
index d5261ad..c563039 100644
--- a/src/pages/realtimeInfo/components/TodayNewsView/index.vue
+++ b/src/pages/realtimeInfo/components/TodayNewsView/index.vue
@@ -1,17 +1,37 @@
-
-
-
+
+
+
-
-
\ No newline at end of file
+
diff --git a/src/pages/realtimeInfo/components/TopNewsView/index.vue b/src/pages/realtimeInfo/components/TopNewsView/index.vue
index c05b95a..eb5141d 100644
--- a/src/pages/realtimeInfo/components/TopNewsView/index.vue
+++ b/src/pages/realtimeInfo/components/TopNewsView/index.vue
@@ -1,6 +1,6 @@
-
+
-
- 1
- 小米将于6月26日发布新款YU7车型上市小米将于6月26日发布新款YU7车型上市
+
-
+
+ {{ index + 1 }}
+ {{ item.title }}
+
+
+
diff --git a/src/pages/topNews/index.vue b/src/pages/topNews/index.vue
index 805787c..3db3484 100644
--- a/src/pages/topNews/index.vue
+++ b/src/pages/topNews/index.vue
@@ -10,76 +10,263 @@
-
+
+ 24h AI追踪海外资讯
+
+
+ {{ chooseDate.startDate.split(" ")[0] }}
+
+
+
-
-
-
- 1
+
+
+
+ {{ index + 1 }}
- 三星生物风险投资基金将投资拓济医药
- 98.52
+ {{ item.title }}
+ {{ item.news_score }}
- 三星集团宣布,其生物风险基金将投资中国生物技术公司phronline
- Biopharma,以扩大其抗体药物偶联物(A ...
+ {{ item.summary }}
- 中国证券报
- 2025-06-23 11:51
-
-
-
-
- 1
-
-
- 三星生物风险投资基金将投资拓济医药
- 98.5
-
-
- 三星集团宣布,其生物风险基金将投资中国生物技术公司phronline
- Biopharma,以扩大其抗体药物偶联物(A ...
-
-
- 中国证券报
- 2025-06-23 11:51
+ {{ item.source }}
+ {{
+ dayjs(item.publish_time).format("YYYY-MM-DD hh:mm:ss")
+ }}
-
- 1
+
+ {{ index + 1 + topNum }}
- 三星生物风险投资基金将投资拓济医药三星生物风险投资基金将投资拓济医药
+ {{ item.title }}
- 98.5
+ {{ item.news_score }}
-
- 1
-
- 三星生物风险投资基金将投资拓济医药三星生物风险投资基金将投资拓济医药
-
- 98.5
-
-
- 1
-
- 三星生物风险投资基金将投资拓济医药三星生物风险投资基金将投资拓济医药
-
- 98.5
+
+
+ 查看更多
+
+
+
+
+
+
+
+
+
+
diff --git a/src/stores/shareStore.ts b/src/stores/shareStore.ts
index dc3d4d5..aa8e584 100644
--- a/src/stores/shareStore.ts
+++ b/src/stores/shareStore.ts
@@ -56,6 +56,7 @@ export const useShareStore = defineStore("share", {
}).then((res: any) => {
const data: IWxConfig = res.data.data;
// console.log("🚀 ~ getWeChatSdkData ~ data:", data);
+ if(!data?.appId) return;
wx.config({
debug: false,
appId: data.appId,
diff --git a/src/utils/storage.ts b/src/utils/storage.ts
index 30664d5..54c8bf6 100644
--- a/src/utils/storage.ts
+++ b/src/utils/storage.ts
@@ -43,24 +43,24 @@ export const Session = {
// 设置临时缓存
set(key: string, val: T) {
if (key === 'token' || key === 'userPhone') return Cookies.set(key, val);
- window.sessionStorage.setItem(Local.setKey(key), JSON.stringify(val));
+ window.localStorage.setItem(Local.setKey(key), JSON.stringify(val));
},
// 获取临时缓存
get(key: string) {
// console.log("🚀 ~ get ~ key:", key)
if (key === 'token' || key === 'userPhone') return Cookies.get(key);
- let json = window.sessionStorage.getItem(Local.setKey(key));
+ let json = window.localStorage.getItem(Local.setKey(key));
return JSON.parse(json);
},
// 移除临时缓存
remove(key: string) {
if (key === 'token' || key === 'userPhone') return Cookies.remove(key);
- window.sessionStorage.removeItem(Local.setKey(key));
+ window.localStorage.removeItem(Local.setKey(key));
},
// 移除全部临时缓存
clear() {
Cookies.remove('token');
Cookies.remove('userPhone');
- window.sessionStorage.clear();
+ window.localStorage.clear();
},
};