优化:已知问题
This commit is contained in:
17
src/pages/index/Video.tsx
Normal file
17
src/pages/index/Video.tsx
Normal 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
|
||||
@@ -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} />}
|
||||
|
||||
Reference in New Issue
Block a user