cankao-h5/src/pages/minihome/index.vue

45 lines
918 B
Vue
Raw Normal View History

2025-08-13 11:53:14 +08:00
<template>
<!-- 顶部 banner 区域 -->
<view class="all">
<Navbar title="中证参考" :hasBack="false"></Navbar>
2025-08-13 12:18:25 +08:00
<RankListMini :newsList="newsList"></RankListMini>
2025-08-13 11:53:14 +08:00
<tabbar></tabbar>
</view>
</template>
<script setup>
import { ref, onMounted, onUnmounted, reactive } from "vue";
import tabbar from "@/components/mini/Tabbar.vue";
import Navbar from '@/components/mini/Navbar.vue'
2025-08-13 12:18:25 +08:00
import RankListMini from "@/components/RankListMini.vue";
import {
getindustryCount,
getConceptCount,
getTopNews,
getTopIndustry_d,
getTopConcept_d,
getNews_cnt_d,
newsInfoScore,
} from "@/api/newsInfo";
const newsList = ref([]);
// 概念标签贴标
async function getNewsList() {
newsList.value = await getTopNews({});
}
2025-08-13 11:53:14 +08:00
const tabIndex = ref(0);
function tabChange(index) {
tabIndex.value = index;
}
2025-08-13 12:18:25 +08:00
onMounted(async () => {
getNewsList()
});
2025-08-13 11:53:14 +08:00
</script>
<style scoped lang="scss"></style>