li.shaoyi 4 bulan lalu
induk
melakukan
e082d57a21

+ 1 - 1
src/hooks/hqchart/candlestick/dataset.ts

@@ -41,7 +41,7 @@ export function useDataset(goodsCode: string, cycleType = ChartCycleType.Minutes
                 cycleType: state.cycleType,
                 goodsCode,
                 count: 1440,
-                endTime: moment(new Date).format('YYYY-MM-DD HH:mm:ss')
+                //endTime: moment(new Date).format('YYYY-MM-DD HH:mm:ss')
             }
         }).then((res) => {
             cache = res.data.reverse()

+ 9 - 0
src/packages/tss/views/home/index.vue

@@ -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>