|
|
@@ -8,6 +8,7 @@
|
|
|
</keep-alive>
|
|
|
</RouterTransition>
|
|
|
</router-view>
|
|
|
+ <FloatingBubble v-model:offset="offset" icon="chat" v-if="false" />
|
|
|
<app-tabbar :data-list="tabList" :data-index="currentTab" @click="onTabClick" />
|
|
|
<app-updater :ios-update-url="iosUpdateUrl" />
|
|
|
</div>
|
|
|
@@ -15,6 +16,7 @@
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
import { shallowRef, nextTick, watch, onMounted, computed } from 'vue'
|
|
|
+import { FloatingBubble } from 'vant'
|
|
|
import { Tabbar } from '@mobile/components/base/tabbar/types'
|
|
|
import { useNavigation } from '@mobile/router/navigation'
|
|
|
import { useLoginStore } from '@/stores'
|
|
|
@@ -35,6 +37,8 @@ const cssTransition = shallowRef(true) // 是否使用css动画
|
|
|
const currentTab = shallowRef(0)
|
|
|
const marketSection = shallowRef() // 当前选中的板块
|
|
|
|
|
|
+const offset = shallowRef({ x: 0, y: 0 })
|
|
|
+
|
|
|
const tabIndex = computed(() => {
|
|
|
const value = window.sessionStorage.getItem('currentTab')
|
|
|
if (value) {
|
|
|
@@ -100,6 +104,11 @@ watch(() => route.name, () => {
|
|
|
|
|
|
onMounted(() => {
|
|
|
currentTab.value = tabIndex.value
|
|
|
+
|
|
|
+ offset.value = {
|
|
|
+ x: -1,
|
|
|
+ y: document.body.clientHeight - 120
|
|
|
+ }
|
|
|
})
|
|
|
</script>
|
|
|
|