|
@@ -1,4 +1,4 @@
|
|
|
-import React, { useCallback, useRef, useState } from 'react'
|
|
|
+import React, { useCallback, useEffect, useRef, useState } from 'react'
|
|
|
import styles from './index.module.scss'
|
|
|
import BaseImg from '@/components/BaseImg'
|
|
|
import { baseURL, myData } from '@/utils/http'
|
|
@@ -62,6 +62,14 @@ function A6xian() {
|
|
|
|
|
|
const videoRef = useRef<HTMLVideoElement>(null)
|
|
|
|
|
|
+ useEffect(() => {
|
|
|
+ if (window.location.href.includes('t=xian')) {
|
|
|
+ setTimeout(() => {
|
|
|
+ if (videoRef.current) videoRef.current.play()
|
|
|
+ }, 100)
|
|
|
+ }
|
|
|
+ }, [])
|
|
|
+
|
|
|
return (
|
|
|
<div className={styles.A6xian}>
|
|
|
{/* 初始静态图 */}
|
|
@@ -139,8 +147,8 @@ function A6xian() {
|
|
|
|
|
|
{/* 底部按钮 */}
|
|
|
<div className='A6XimgBoxBtn'>
|
|
|
- <div onClick={() => history.push('/yun?t=xian')}>四神云气图</div>
|
|
|
<div onClick={() => history.push('/xian?t=xian')}>卜千秋墓中的升仙图</div>
|
|
|
+ <div onClick={() => history.push('/yun?t=xian')}>四神云气图</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
) : null}
|