|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
<template>
|
|
|
<app-view class="home-main">
|
|
<app-view class="home-main">
|
|
|
<template #header>
|
|
<template #header>
|
|
|
- <app-navbar :title="$t('app.name')" :show-back-button="false" />
|
|
|
|
|
|
|
+ <app-navbar :title="globalStore.getSystemInfo('appName')" :show-back-button="false" />
|
|
|
</template>
|
|
</template>
|
|
|
<Banner :data-list="topBanners" />
|
|
<Banner :data-list="topBanners" />
|
|
|
<PullRefresh class="home-main__container" v-model="refreshing" @refresh="onRefresh">
|
|
<PullRefresh class="home-main__container" v-model="refreshing" @refresh="onRefresh">
|
|
@@ -45,12 +45,13 @@ import { displayname, formatDate } from "@/filters"
|
|
|
import { queryImageConfigs } from "@/services/api/common"
|
|
import { queryImageConfigs } from "@/services/api/common"
|
|
|
import { queryNewTitles } from "@/services/api/news"
|
|
import { queryNewTitles } from "@/services/api/news"
|
|
|
import { useMarketSection } from '@/business/market'
|
|
import { useMarketSection } from '@/business/market'
|
|
|
-import { useNoticeStore } from '@/stores'
|
|
|
|
|
|
|
+import { useNoticeStore, useGlobalStore } from '@/stores'
|
|
|
import Banner from '@mobile/components/base/banner/index.vue'
|
|
import Banner from '@mobile/components/base/banner/index.vue'
|
|
|
import Iconfont from '@/components/base/iconfont/index.vue'
|
|
import Iconfont from '@/components/base/iconfont/index.vue'
|
|
|
|
|
|
|
|
// const globalStore = useGlobalStore()
|
|
// const globalStore = useGlobalStore()
|
|
|
const noticeStore = useNoticeStore()
|
|
const noticeStore = useNoticeStore()
|
|
|
|
|
+const globalStore = useGlobalStore()
|
|
|
const refreshing = shallowRef(false) // 是否处于加载中状态
|
|
const refreshing = shallowRef(false) // 是否处于加载中状态
|
|
|
const topBanners = shallowRef<string[]>([]); // 轮播图列表
|
|
const topBanners = shallowRef<string[]>([]); // 轮播图列表
|
|
|
const newsList = shallowRef<Model.NewTitlesRsp[]>([]) // 资讯列表
|
|
const newsList = shallowRef<Model.NewTitlesRsp[]>([]) // 资讯列表
|