diff --git a/src/api/newsInfo.ts b/src/api/newsInfo.ts
index 43b43f7..54df9c7 100644
--- a/src/api/newsInfo.ts
+++ b/src/api/newsInfo.ts
@@ -29,6 +29,12 @@ export const getTopNews = (data: any) => {
// 概念标签贴标
export const getTopNewsAll = (data: any) => {
return request.get("/top_news_release_h5_all", data);
+ // return request.get("/news_release_ratingrank_h5_d", data);
+};
+
+// 概念标签贴标 release
+export const getTopNewsAllRelease = (data: any) => {
+ return request.get("/news_release_ratingrank_h5_d?input_date=" + data.input_date + "&limit_num=10");
};
// 热门行业top10:
diff --git a/src/pages/realtimeInfo/indexRelease.vue b/src/pages/realtimeInfo/indexRelease.vue
index 5be70e8..5459ec9 100644
--- a/src/pages/realtimeInfo/indexRelease.vue
+++ b/src/pages/realtimeInfo/indexRelease.vue
@@ -79,6 +79,7 @@
+
@@ -93,11 +94,41 @@
+
+
+ {{ chooseDate.startDate.split(" ")[0] }}
+
+
+
+
退出登录
+
+
+
{
const topNum = ref({});
+const d = new Date();
+const year = d.getFullYear();
+let month = d.getMonth() + 1;
+month = month < 10 ? `0${month}` : month;
+const date = d.getDate();
+const maxDate = ref(`${year}-${month}-${date} 23:59:59`);
+const minDate = ref(`${year}-${month}-${date}`);
+
+const calendarShow = ref(false);
+
+const chooseDate = reactive({
+ startDate: `${year}-${month}-${date}`,
+ endDate: null,
+});
+function showCalendar() {
+ calendarShow.value = true;
+}
+
+function calendarConfirm(dateList) {
+ console.log("🚀 ~ calendarConfirm ~ dateList:", dateList);
+ if (dateList && dateList.length > 0) {
+ chooseDate.startDate = dateList[0] + " 00:00:00";
+ chooseDate.endDate = dateList[dateList.length - 1] + " 23:59:59";
+ }
+ getNewsList();
+ calendarShow.value = false;
+ console.log("🚀 ~ calendarConfirm ~ chooseDate:", chooseDate);
+}
+
// 获取顶部两个统计数据
async function getTopNum() {
let res1 = await getindustryCount({});
@@ -170,7 +231,11 @@ async function getTopNum() {
// 概念标签贴标
async function getNewsList() {
- newsList.value = await getTopNewsAll({});
+ console.log(`🚀 ~ getNewsList ~ chooseDate.startDate.split(" ")[0]:`, chooseDate.startDate.split(" ")[0]);
+
+ newsList.value = await getTopNewsAllRelease({
+ input_date: chooseDate.startDate.split(" ")[0],
+ });
}
// 热门行业top10