import OHeader from '@/components/o-header' import OSticky from '@/components/o-sticky' import request from '@/helpers/request' import { Sticky, Tab, Tabs } from 'vant' import { defineComponent, onMounted, ref } from 'vue' import Information from './compontent/information' import Photo from './compontent/photo' import Plan from './compontent/plan' import styles from './orchestra-detail.module.less' export default defineComponent({ name: 'orchestra-detail', setup() { const tabs = sessionStorage.getItem('orchestra-detail-tab') // console.log(tabs, 'tabs') const tabValue = ref(tabs || 'information') sessionStorage.removeItem('orchestra-detail-tab') const tabHeight = ref('auto') const termTimes = ref({ start: '09-01', end: '03-01' }) // 获取头部高度 const onGetHeight = (height: any) => { tabHeight.value = height } const getDefaultParams = async () => { // last_term_time 上学期 // next_term_time 下学期 const { data } = await request.get('/api-school/sysParamConfig/queryByParamNameList', { params: { paramNames: 'last_term_time,next_term_time' } }) ;(data || []).forEach((item: any) => { if (item.paramName === 'last_term_time') { termTimes.value.start = item.paramValue } else if (item.paramName === 'next_term_time') { termTimes.value.end = item.paramValue } }) } getDefaultParams() return () => (
{/* */} {tabValue.value === 'information' && } {tabValue.value === 'plan' && } {tabValue.value === 'photo' && }
) } })