【fix】优化代码
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
<template>
|
||||
<view class="home-container" :style="{ 'margin-top': `${statusBarHeight}px` }">
|
||||
<view
|
||||
class="home-container"
|
||||
:style="{ 'margin-top': `${statusBarHeight}px` }">
|
||||
<CanvasPage />
|
||||
<!-- h5 tabbar 底部 -->
|
||||
<!-- <view class="h5-tabbar-height"></view> -->
|
||||
@ -11,7 +13,7 @@
|
||||
<script setup>
|
||||
import { ref } from 'vue'
|
||||
import { onLoad, onReachBottom, onShareAppMessage, onShareTimeline } from '@dcloudio/uni-app'
|
||||
import { useMainStore } from '@/store/store'
|
||||
import { useMainStore } from '@/store/modules/useMainStore'
|
||||
import { useRouter } from "@/hooks/useRouter";
|
||||
import CanvasPage from '@/components/canvasShow/canvasShowPage.vue'
|
||||
import ReturnTop from "@/components/ReturnTop/index.vue"
|
||||
@ -20,6 +22,7 @@ import UvIcon from "@/uni_modules/uv-icon/components/uv-icon/uv-icon.vue";
|
||||
import { useScroll } from "@/hooks/useScroll";
|
||||
import { homeLogoIcon } from "@/utils/images";
|
||||
import { useShare } from "@/hooks/useShare";
|
||||
|
||||
const main = useMainStore()
|
||||
const {push} = useRouter()
|
||||
const recommendRef = ref(null)
|
||||
@ -53,7 +56,7 @@ onLoad(() => {
|
||||
});
|
||||
})
|
||||
|
||||
const {shareAppMessage,shareTimeline} = useShare();
|
||||
const {shareAppMessage, shareTimeline} = useShare();
|
||||
onShareAppMessage(shareAppMessage)
|
||||
onShareTimeline(shareTimeline)
|
||||
const {scrollTop} = useScroll()
|
||||
@ -64,6 +67,7 @@ const {scrollTop} = useScroll()
|
||||
.home-container {
|
||||
width: 100%;
|
||||
position: relative;
|
||||
|
||||
.header-row {
|
||||
.logo-col {
|
||||
@include useFlex(flex-start, center);
|
||||
|
Reference in New Issue
Block a user