|
|
@ -6,7 +6,7 @@ import Tabs, {OnChangOpt, TabList} from "@/components/tabs/tabs"; |
|
|
|
import {CoursesKey} from "@/api/public"; |
|
|
|
import {CoursesKey} from "@/api/public"; |
|
|
|
import Taro from '@tarojs/taro' |
|
|
|
import Taro from '@tarojs/taro' |
|
|
|
import {Profile} from '@/store' |
|
|
|
import {Profile} from '@/store' |
|
|
|
// import {Search} from "@/pages/index/components/search";
|
|
|
|
import {Search} from "./components/search"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const Index: FC = () => { |
|
|
|
const Index: FC = () => { |
|
|
@ -28,8 +28,7 @@ const Index: FC = () => { |
|
|
|
<> |
|
|
|
<> |
|
|
|
<View className={styles.content} style={`paddingTop:${globalData.statusBarHeight}px`}> |
|
|
|
<View className={styles.content} style={`paddingTop:${globalData.statusBarHeight}px`}> |
|
|
|
{process.env.TARO_ENV !== "h5" && <View className='text-center font-weight font-34 mt-3'>医学道</View>} |
|
|
|
{process.env.TARO_ENV !== "h5" && <View className='text-center font-weight font-34 mt-3'>医学道</View>} |
|
|
|
|
|
|
|
<Search/> |
|
|
|
{/*<Search/>*/} |
|
|
|
|
|
|
|
<Tabs tabList={category} onChange={tabChange} current={categoryKey}/> |
|
|
|
<Tabs tabList={category} onChange={tabChange} current={categoryKey}/> |
|
|
|
<VideoList categoryKey={categoryKey} ready={!!token}/> |
|
|
|
<VideoList categoryKey={categoryKey} ready={!!token}/> |
|
|
|
</View> |
|
|
|
</View> |
|
|
|