|
|
@@ -2,13 +2,8 @@ import React, { useState, useRef, useEffect } from 'react'
|
|
|
import styles from './index.module.scss'
|
|
|
import { useSelector } from 'react-redux'
|
|
|
import { RootState } from '@/store'
|
|
|
-import { Toast } from 'antd-mobile'
|
|
|
import iosTouch from '@/utils/iosTouch'
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
type InfoCardProps = {
|
|
|
time: string
|
|
|
location: string
|
|
|
@@ -151,11 +146,10 @@ function Sinicize({ setGotopage }: { setGotopage: (page: number) => void }) {
|
|
|
<>
|
|
|
<div
|
|
|
id='A7Sinicize'
|
|
|
-
|
|
|
className={styles.Sinicize}
|
|
|
onWheel={handleWheel}
|
|
|
- // onTouchMove={handleOriTouchMove}
|
|
|
- // onTouchStart={handleTouchStart}
|
|
|
+ // onTouchMove={handleOriTouchMove}
|
|
|
+ // onTouchStart={handleTouchStart}
|
|
|
>
|
|
|
<div className='SinicizeScroll' ref={originRef}>
|
|
|
<div ref={sinicize1Ref} className={styles.Sinicize1}>
|
|
|
@@ -236,14 +230,16 @@ function Sinicize({ setGotopage }: { setGotopage: (page: number) => void }) {
|
|
|
style={{ backgroundImage: `url(${sItem.bgPath})` }}
|
|
|
onClick={() => handleYearItemClick(index)}
|
|
|
>
|
|
|
- <div className="yearContainner">
|
|
|
+ <div className='yearContainner'>
|
|
|
<div className='txt songFont'>{sItem.time}</div>
|
|
|
{/* <div className='front'>{sItem.desc}</div> */}
|
|
|
</div>
|
|
|
-
|
|
|
</div>
|
|
|
|
|
|
- <div id='sinicizeDetail' className={`${selectedTime === index ? 'detailShow' : 'detailHide'}`}>
|
|
|
+ <div
|
|
|
+ id='sinicizeDetail'
|
|
|
+ className={`${selectedTime === index ? 'detailShow' : 'detailHide'}`}
|
|
|
+ >
|
|
|
{/* {selectedTime === index && ( */}
|
|
|
<>
|
|
|
<div className='left'>
|
|
|
@@ -256,10 +252,11 @@ function Sinicize({ setGotopage }: { setGotopage: (page: number) => void }) {
|
|
|
/> */}
|
|
|
<div
|
|
|
style={{
|
|
|
- backgroundImage: `url(${isShowLine[0]?.isShow
|
|
|
- ? sItem.imgItems[0].srcLine
|
|
|
- : sItem.imgItems[0].src
|
|
|
- })`
|
|
|
+ backgroundImage: `url(${
|
|
|
+ isShowLine[0]?.isShow
|
|
|
+ ? sItem.imgItems[0].srcLine
|
|
|
+ : sItem.imgItems[0].src
|
|
|
+ })`
|
|
|
}}
|
|
|
className={`pic ${isShowLine[0]?.isShow ? 'picLine' : ''}`}
|
|
|
/>
|
|
|
@@ -309,11 +306,13 @@ function Sinicize({ setGotopage }: { setGotopage: (page: number) => void }) {
|
|
|
</div> */}
|
|
|
<div
|
|
|
style={{
|
|
|
- backgroundImage: `url(${isShowLine[index2 + 1]?.isShow ? i.srcLine : i.src
|
|
|
- })`
|
|
|
+ backgroundImage: `url(${
|
|
|
+ isShowLine[index2 + 1]?.isShow ? i.srcLine : i.src
|
|
|
+ })`
|
|
|
}}
|
|
|
- className={`pic ${isShowLine[index2 + 1]?.isShow ? 'picLine' : ''
|
|
|
- }`}
|
|
|
+ className={`pic ${
|
|
|
+ isShowLine[index2 + 1]?.isShow ? 'picLine' : ''
|
|
|
+ }`}
|
|
|
/>
|
|
|
{!isShowLine[index2 + 1]?.isShow ? (
|
|
|
<InfoCard
|
|
|
@@ -349,14 +348,11 @@ function Sinicize({ setGotopage }: { setGotopage: (page: number) => void }) {
|
|
|
</div>
|
|
|
))}
|
|
|
<div className='yearItem'>
|
|
|
- <div
|
|
|
- className='year year-zongjie'
|
|
|
- >
|
|
|
- <div className="yearContainner">
|
|
|
+ <div className='year year-zongjie'>
|
|
|
+ <div className='yearContainner'>
|
|
|
<div className='txt songFont'>{myData.sinicizeDataStatic.zongjie.title}</div>
|
|
|
<div className='front'>{myData.sinicizeDataStatic.zongjie.txt}</div>
|
|
|
</div>
|
|
|
-
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|