|
|
@@ -1,4 +1,4 @@
|
|
|
-import React, { useState } from 'react'
|
|
|
+import React, { useEffect, useState } from 'react'
|
|
|
import styles from './index.module.scss'
|
|
|
import { isPc, myData } from '@/utils/http'
|
|
|
import classNames from 'classnames'
|
|
|
@@ -9,7 +9,7 @@ import IsDev from '@/components/IsDev'
|
|
|
function A0base() {
|
|
|
const [currentBase, setCurrentBase] = useState(0)
|
|
|
const [isOpenInteract, setIsOpenInteract] = useState(false)
|
|
|
- const [isOpenGuideVideo, setIsOpenGuideVideo] = useState(false)
|
|
|
+ const [showIsDev, setShowIsDev] = useState(false)
|
|
|
|
|
|
const goto = (e: React.MouseEvent, path: string) => {
|
|
|
e.preventDefault()
|
|
|
@@ -17,6 +17,13 @@ function A0base() {
|
|
|
window.location.replace(path)
|
|
|
}
|
|
|
|
|
|
+ useEffect(() => {
|
|
|
+ showIsDev && setTimeout(() => {
|
|
|
+ setShowIsDev(false)
|
|
|
+ }, 2000)
|
|
|
+ }, [showIsDev])
|
|
|
+
|
|
|
+
|
|
|
return (
|
|
|
<div className={classNames(isPc ? '' : styles.A0baseMo, styles.A0base)}>
|
|
|
<div className='A0baseContainner'>
|
|
|
@@ -40,10 +47,10 @@ function A0base() {
|
|
|
|
|
|
{/* 互动 */}
|
|
|
<div className='interact'>
|
|
|
- <div className={`inter_content ${isOpenInteract ? 'inter_content_active' : ''}`}>
|
|
|
- <div className='inter' onClick={() => setIsOpenGuideVideo(true)} > 碑影智绘</div>
|
|
|
- <div className='inter' onClick={() => setIsOpenGuideVideo(true)} > 展览图谱</div>
|
|
|
- <div className='inter' onClick={() => setIsOpenGuideVideo(true)}> AI问答</div>
|
|
|
+ <div className={`inter_content ${isOpenInteract ? 'inter_content_active' : ''}`} onClick={() => setShowIsDev(true)}>
|
|
|
+ <div className='inter' > 碑影智绘</div>
|
|
|
+ <div className='inter' > 展览图谱</div>
|
|
|
+ <div className='inter'> AI问答</div>
|
|
|
</div >
|
|
|
<div className='icon' onClick={() => setIsOpenInteract(!isOpenInteract)}>
|
|
|
<img src={require('@/assets/img/interaction.png')} alt='' />
|
|
|
@@ -55,16 +62,13 @@ function A0base() {
|
|
|
</div>
|
|
|
|
|
|
{/* 先导片 */}
|
|
|
- <div className='guideVideo' onClick={() => setIsOpenGuideVideo(true)}>
|
|
|
+ <div className='guideVideo'>
|
|
|
<img src={require('@/assets/img/guideVideo.png')} alt='' />
|
|
|
<div className='guideVideoTitle'>先导片</div>
|
|
|
</div>
|
|
|
|
|
|
- {
|
|
|
- isOpenGuideVideo && (
|
|
|
- <IsDev closeFn={() => setIsOpenGuideVideo(false)} />
|
|
|
- )
|
|
|
- }
|
|
|
+ <IsDev txt='加急开发中!' isShow={showIsDev} />
|
|
|
+
|
|
|
</div >
|
|
|
)
|
|
|
}
|