|
|
@ -1,5 +1,5 @@ |
|
|
|
import {FC, useState} from "react"; |
|
|
|
import {FC, useState} from "react"; |
|
|
|
import {View} from "@tarojs/components"; |
|
|
|
import {View, Text} from "@tarojs/components"; |
|
|
|
import styles from './index.module.scss' |
|
|
|
import styles from './index.module.scss' |
|
|
|
import {VideoList} from "@/pages/index/components/videoList"; |
|
|
|
import {VideoList} from "@/pages/index/components/videoList"; |
|
|
|
import Tabs, {OnChangOpt, TabList} from "@/components/tabs/tabs"; |
|
|
|
import Tabs, {OnChangOpt, TabList} from "@/components/tabs/tabs"; |
|
|
@ -25,19 +25,19 @@ const Index: FC = () => { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<> |
|
|
|
<View className={styles.content} style={`paddingTop:${globalData.statusBarHeight}px`}> |
|
|
|
<View className={styles.content}> |
|
|
|
|
|
|
|
{ !token ? |
|
|
|
{ !token ? |
|
|
|
<LoginView height={globalData.windowHeight-100}></LoginView> |
|
|
|
<LoginView></LoginView> |
|
|
|
: |
|
|
|
: |
|
|
|
<> |
|
|
|
<> |
|
|
|
|
|
|
|
<View className="flex justify-center align-center" style={{height:`${(globalData.menu.top-globalData.statusBarHeight)*2+globalData.menu.height}px`}}> |
|
|
|
|
|
|
|
<Text className="font-28 text-white">学习课程</Text> |
|
|
|
|
|
|
|
</View> |
|
|
|
<Tabs tabList={category} onChange={tabChange} current={categoryKey}/> |
|
|
|
<Tabs tabList={category} onChange={tabChange} current={categoryKey}/> |
|
|
|
<VideoList categoryKey={categoryKey} setCategoryKey={(categoryKey) => setCategoryKey(categoryKey)}/> |
|
|
|
<VideoList categoryKey={categoryKey} setCategoryKey={(categoryKey) => setCategoryKey(categoryKey)}/> |
|
|
|
</> |
|
|
|
</> |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
</View> |
|
|
|
</View> |
|
|
|
</> |
|
|
|
|
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|