隐藏部分模块、显示应用场景
This commit is contained in:
parent
46139845de
commit
48fe125145
|
|
@ -95,7 +95,7 @@ function Feature(props) {
|
|||
<img src={featureright2} alt="" />
|
||||
</div>
|
||||
</div>
|
||||
<div className="content-bottom">
|
||||
{/* <div className="content-bottom">
|
||||
<div className='center'>
|
||||
<h3>软件工厂标准(众创版本)</h3>
|
||||
</div>
|
||||
|
|
@ -115,9 +115,7 @@ function Feature(props) {
|
|||
})
|
||||
}
|
||||
</div>
|
||||
{/* <img className="content-bottom-gif" src={gif3} alt="" />
|
||||
<img src={featureBottom1} alt="" /> */}
|
||||
</div>
|
||||
</div> */}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ function Index(props) {
|
|||
const contentRef = useRef(null);
|
||||
const bannerRef = useRef(null);
|
||||
const resourceRef = useRef(null);
|
||||
const resource2Ref = useRef(null);
|
||||
// const resource2Ref = useRef(null);
|
||||
const [isVisible, setIsVisible] = useState(false);
|
||||
const [banner2isVisible, setBanner2IsVisible] = useState(false);
|
||||
const [firstV, setFirstV] = useState(true)
|
||||
|
|
@ -101,8 +101,8 @@ function Index(props) {
|
|||
|
||||
useEffect(() => {
|
||||
const resource = resourceRef.current;
|
||||
const resource2 = resource2Ref.current;
|
||||
if (!resource || !resource2) return;
|
||||
// const resource2 = resource2Ref.current;
|
||||
if (!resource) return;
|
||||
const cleanup = [];
|
||||
|
||||
const pinContainer = ScrollTrigger.create({
|
||||
|
|
@ -119,7 +119,7 @@ function Index(props) {
|
|||
return () => {
|
||||
cleanup.forEach(fn => fn());
|
||||
};
|
||||
}, [resourceRef, resource2Ref]);
|
||||
}, [resourceRef]);
|
||||
|
||||
const setupScrollListeners = () => {
|
||||
window.addEventListener('scroll', helpScroll);
|
||||
|
|
@ -244,8 +244,8 @@ function Index(props) {
|
|||
<News zoneId={factoryZoneId} />
|
||||
<Feature />
|
||||
<Resource zoneId={factoryZoneId} ref={resourceRef} />
|
||||
<Resource2 zoneId={factoryZoneId} ref={resource2Ref} />
|
||||
{/* <Scene zoneId={factoryZoneId} /> */}
|
||||
{/* <Resource2 zoneId={factoryZoneId} ref={resource2Ref} /> */}
|
||||
<Scene zoneId={factoryZoneId} />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ function Index(props) {
|
|||
})
|
||||
}
|
||||
</div>
|
||||
<div className="manual">
|
||||
{/* <div className="manual">
|
||||
<h2>用户手册</h2>
|
||||
<div className="manual-content">
|
||||
<div className="manual-left">
|
||||
|
|
@ -101,7 +101,7 @@ function Index(props) {
|
|||
})
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div> */}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@
|
|||
display: flex;
|
||||
margin-top: 59px;
|
||||
justify-content: flex-start;
|
||||
margin-bottom: 90px;
|
||||
overflow-x: auto;
|
||||
|
||||
.version-item {
|
||||
width: 448px;
|
||||
|
|
|
|||
Loading…
Reference in New Issue