优化:已知问题

This commit is contained in:
2025-07-22 13:27:07 +08:00
parent 2b5ff62ff0
commit 505afb8c0d
29 changed files with 2144 additions and 6 deletions

17
src/pages/index/Video.tsx Normal file
View File

@@ -0,0 +1,17 @@
import { useEffect } from 'react'
const MyPage = () => {
useEffect(() => {
}, [])
return (
<div className={'px-3'}>
<video controls className="w-full max-w-2xl mx-auto">
<source src="https://oss.wsdns.cn/20250722/018be1bd1c8b4cc4a15076ad0578b88d.mp4" type="video/mp4" />
</video>
</div>
)
}
export default MyPage

View File

@@ -3,10 +3,11 @@ import Taro from '@tarojs/taro';
import {useEffect, useState} from "react";
import {getSiteInfo} from "@/api/layout";
import Login from "./Login";
import Banner from "./Banner";
// import Banner from "./Banner";
import Menu from "./Menu";
import Image from "./Image";
import SimpleH5TabBar from "@/components/SimpleH5TabBar";
import Video from "./Video";
function Home() {
const [loading, setLoading] = useState<boolean>(false)
@@ -44,7 +45,8 @@ function Home() {
{!IsLogin && search ? (<Login done={handleLogin}/>) : (<>
<Image/>
<Menu/>
<Banner/>
{/*<Banner/>*/}
<Video />
</>)}
{/* H5模式下显示自定义TabBar */}
{process.env.TARO_ENV === 'h5' && <SimpleH5TabBar current={0} />}