|
@@ -69,25 +69,25 @@ import { formatDate } from "@/filters";
|
|
|
import { useNavigation } from '@mobile/router/navigation';
|
|
import { useNavigation } from '@mobile/router/navigation';
|
|
|
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 { useLoginStore, useGlobalStore } from '@/stores'
|
|
|
|
|
|
|
+import { 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 loginStore = useLoginStore();
|
|
|
|
|
|
|
+// const loginStore = useLoginStore();
|
|
|
const { routerTo } = useNavigation();
|
|
const { routerTo } = useNavigation();
|
|
|
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[]>([]); // 资讯列表
|
|
|
|
|
|
|
|
// 跳转导航页面
|
|
// 跳转导航页面
|
|
|
-const switchTab = (routeName: string) => {
|
|
|
|
|
- if (loginStore.token) {
|
|
|
|
|
- routerTo(routeName, true)
|
|
|
|
|
- } else {
|
|
|
|
|
- routerTo('user-login')
|
|
|
|
|
- }
|
|
|
|
|
-}
|
|
|
|
|
|
|
+// const switchTab = (routeName: string) => {
|
|
|
|
|
+// if (loginStore.token) {
|
|
|
|
|
+// routerTo(routeName, true)
|
|
|
|
|
+// } else {
|
|
|
|
|
+// routerTo('user-login')
|
|
|
|
|
+// }
|
|
|
|
|
+// }
|
|
|
|
|
|
|
|
// 下拉刷新
|
|
// 下拉刷新
|
|
|
const onRefresh = () => {
|
|
const onRefresh = () => {
|