|
@@ -18,13 +18,12 @@ import { shallowRef, nextTick, watch, onMounted, onActivated, computed } from 'v
|
|
|
import { Tabbar } from '@mobile/components/base/tabbar/types'
|
|
import { Tabbar } from '@mobile/components/base/tabbar/types'
|
|
|
import { useNavigation } from '@mobile/router/navigation'
|
|
import { useNavigation } from '@mobile/router/navigation'
|
|
|
import { useMarketSection } from '@/business/market'
|
|
import { useMarketSection } from '@/business/market'
|
|
|
-import { useLoginStore, useFuturesStore, useGlobalStore } from '@/stores'
|
|
|
|
|
|
|
+import { useLoginStore, useFuturesStore } from '@/stores'
|
|
|
import { i18n } from '@/stores'
|
|
import { i18n } from '@/stores'
|
|
|
import { displayname } from "@/filters"
|
|
import { displayname } from "@/filters"
|
|
|
import AppTabbar from '@mobile/components/base/tabbar/index.vue'
|
|
import AppTabbar from '@mobile/components/base/tabbar/index.vue'
|
|
|
import AppUpdater from '@mobile/components/base/updater/index.vue'
|
|
import AppUpdater from '@mobile/components/base/updater/index.vue'
|
|
|
import RouterTransition from '@mobile/components/base/router-transition/index.vue'
|
|
import RouterTransition from '@mobile/components/base/router-transition/index.vue'
|
|
|
-import { dialog } from '@/utils/vant'
|
|
|
|
|
|
|
|
|
|
const { global: { t } } = i18n
|
|
const { global: { t } } = i18n
|
|
|
|
|
|
|
@@ -35,7 +34,6 @@ defineProps({
|
|
|
const { route, routerTo } = useNavigation()
|
|
const { route, routerTo } = useNavigation()
|
|
|
const loginStore = useLoginStore()
|
|
const loginStore = useLoginStore()
|
|
|
const futuresStore = useFuturesStore()
|
|
const futuresStore = useFuturesStore()
|
|
|
-const globalStore = useGlobalStore()
|
|
|
|
|
const cssTransition = shallowRef(true) // 是否使用css动画
|
|
const cssTransition = shallowRef(true) // 是否使用css动画
|
|
|
const currentTab = shallowRef(0)
|
|
const currentTab = shallowRef(0)
|
|
|
const marketSection = shallowRef() // 当前选中的板块
|
|
const marketSection = shallowRef() // 当前选中的板块
|
|
@@ -182,14 +180,7 @@ onActivated(() => {
|
|
|
// 页面显示时刷新盘面(待优化)
|
|
// 页面显示时刷新盘面(待优化)
|
|
|
if (loginStore.token && futuresStore.goodsList.length) {
|
|
if (loginStore.token && futuresStore.goodsList.length) {
|
|
|
futuresStore.getQuoteDay()
|
|
futuresStore.getQuoteDay()
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- // 是否需要弹出提示信息
|
|
|
|
|
- const showLoginAlert = globalStore.getSystemInfo('showLoginAlert')
|
|
|
|
|
- if (showLoginAlert) {
|
|
|
|
|
- dialog({message: t('user.login.tips7'), confirmButtonText: t('operation.confirm')})
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
|
|
+ }
|
|
|
})
|
|
})
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|