|
|
|
@ -5,11 +5,11 @@ import {CourseDepData} from "@/api"; |
|
|
|
|
import Collapse from "@/components/collapse/collapse"; |
|
|
|
|
import Hours from "@/pages/business/videoInfo/components/hours"; |
|
|
|
|
import Taro from "@tarojs/taro"; |
|
|
|
|
import CustomPageContainer from "@/components/custom-page-container/custom-page-container"; |
|
|
|
|
import MyButton from "@/components/button/MyButton"; |
|
|
|
|
import curRecord from '@/static/img/curRecord.png' |
|
|
|
|
import hourRecord from '@/static/img/hourRecord.png' |
|
|
|
|
import videoEvents from "@/hooks/videoEvents"; |
|
|
|
|
import curRecord from '@/static/img/curRecord.png' |
|
|
|
|
import hourRecord from "@/static/img/hourRecord.png" |
|
|
|
|
import {PageContainerInner} from "@/components/custom-page-container/custom-page-container"; |
|
|
|
|
|
|
|
|
|
interface Props { |
|
|
|
|
data: CourseDepData | null |
|
|
|
@ -25,7 +25,7 @@ const tabList = [ |
|
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const Catalogue: FC<Props> = ({data, setHors, id, playId,}) => { |
|
|
|
|
const Catalogue: FC<Props> = ({data, setHors, id, playId}) => { |
|
|
|
|
const [current, setCurrent] = useState(1) |
|
|
|
|
const [show, setShow] = useState(false) |
|
|
|
|
const [playing, setPlaying] = useState(false) |
|
|
|
@ -156,36 +156,32 @@ const Catalogue: FC<Props> = ({data, setHors, id, playId,}) => { |
|
|
|
|
|
|
|
|
|
<View className='Videobutton'> |
|
|
|
|
{ |
|
|
|
|
playing ? <MyButton onClick={onPause}>暂停</MyButton> |
|
|
|
|
: <MyButton onClick={learning}>立即学习</MyButton> |
|
|
|
|
playing ? <MyButton style={{flex: '1'}} onClick={onPause}>暂停</MyButton> |
|
|
|
|
: <MyButton style={{flex: '1'}} onClick={learning}>立即学习</MyButton> |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
<View className='px-3' onClick={() => setShow(true)}>...</View> |
|
|
|
|
</View> |
|
|
|
|
|
|
|
|
|
<CustomPageContainer |
|
|
|
|
<PageContainerInner |
|
|
|
|
show={show} |
|
|
|
|
position='bottom' |
|
|
|
|
onClickOverlay={() => setShow(false)}> |
|
|
|
|
<View className='more'> |
|
|
|
|
<View>更多操作</View> |
|
|
|
|
|
|
|
|
|
<View className='flex justify-around'> |
|
|
|
|
<View onClick={() => Taro.navigateTo({url: '/pages/business/curHistory/curHistory?course_id=' + id})}> |
|
|
|
|
<Image src={curRecord} className='image'/> |
|
|
|
|
课程记录 |
|
|
|
|
</View> |
|
|
|
|
|
|
|
|
|
<View onClick={jumCurHistory} className={playId ? undefined : 'filter-saturate'}> |
|
|
|
|
<Image src={hourRecord} className='image'/> |
|
|
|
|
当前课时学习记录 |
|
|
|
|
</View> |
|
|
|
|
|
|
|
|
|
</View> |
|
|
|
|
|
|
|
|
|
<MyButton onClick={() => setShow(false)} type='default' fillet>取消</MyButton> |
|
|
|
|
</View> |
|
|
|
|
</CustomPageContainer> |
|
|
|
|
</PageContainerInner> |
|
|
|
|
</> |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|