|
@@ -2,7 +2,7 @@ import OHeader from '@/components/o-header'
|
|
|
import OSticky from '@/components/o-sticky'
|
|
|
import request from '@/helpers/request'
|
|
|
import { state } from '@/state'
|
|
|
-import { Cell, CellGroup, Picker, Popup, Tab, Tabs } from 'vant'
|
|
|
+import { Button, Cell, CellGroup, Picker, Popup, Tab, Tabs } from 'vant'
|
|
|
import { defineComponent, nextTick, onMounted, reactive, ref } from 'vue'
|
|
|
import styles from './index.module.less'
|
|
|
import iconOrchestra from './images/icon-or.png'
|
|
@@ -95,38 +95,7 @@ export default defineComponent({
|
|
|
document.documentElement.style.setProperty('--header-height', height + 'px')
|
|
|
}}
|
|
|
>
|
|
|
- <OHeader
|
|
|
- title="我的乐团"
|
|
|
- v-slots={{
|
|
|
- right: () => (
|
|
|
- <>
|
|
|
- {state.platformType == 'STUDENT' && (
|
|
|
- <>
|
|
|
- {(modelData.orchestra?.status === 'REGISTER' ||
|
|
|
- modelData.orchestra?.status === 'LEARNING') && (
|
|
|
- <span
|
|
|
- style={{ color: 'var(--van-primary)' }}
|
|
|
- onClick={() => {
|
|
|
- router.push({
|
|
|
- path: '/apply-withdrawal',
|
|
|
- query: {
|
|
|
- id: modelData.orchestra?.orchestraId
|
|
|
- }
|
|
|
- })
|
|
|
- }}
|
|
|
- >
|
|
|
- 申请退团
|
|
|
- </span>
|
|
|
- )}
|
|
|
- {modelData.orchestra?.status === 'AUTH' && (
|
|
|
- <span style={{ color: 'red' }}>申请退团中</span>
|
|
|
- )}
|
|
|
- </>
|
|
|
- )}
|
|
|
- </>
|
|
|
- )
|
|
|
- }}
|
|
|
- />
|
|
|
+ <OHeader title="我的乐团" />
|
|
|
</OSticky>
|
|
|
<OFullRefresh
|
|
|
v-model:modelValue={data.loading}
|
|
@@ -137,7 +106,7 @@ export default defineComponent({
|
|
|
getData()
|
|
|
})
|
|
|
}}
|
|
|
- style="min-height: calc(100vh - var(--van-nav-bar-height) - var(--header-height))"
|
|
|
+ style="min-height: calc(100vh - var(--van-nav-bar-height) - var(--header-height) - var(--footer-height))"
|
|
|
>
|
|
|
{!data.loading && !!data.orchestraList.length && (
|
|
|
<>
|
|
@@ -161,6 +130,8 @@ export default defineComponent({
|
|
|
background="transparent"
|
|
|
animated
|
|
|
swipeable
|
|
|
+ lineWidth={16}
|
|
|
+ lineHeight={4}
|
|
|
>
|
|
|
<Tab name="course" title="我的班级">
|
|
|
<div class={styles.content}>
|
|
@@ -193,6 +164,41 @@ export default defineComponent({
|
|
|
)}
|
|
|
</OFullRefresh>
|
|
|
|
|
|
+ {state.platformType == 'STUDENT' && (
|
|
|
+ <OSticky
|
|
|
+ position="bottom"
|
|
|
+ onGetHeight={(height: any) => {
|
|
|
+ document.documentElement.style.setProperty('--footer-height', height + 'px')
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ <div class="btnGroup" style="padding-top: 12px">
|
|
|
+ {(modelData.orchestra?.status === 'REGISTER' ||
|
|
|
+ modelData.orchestra?.status === 'LEARNING') && (
|
|
|
+ <Button
|
|
|
+ type="primary"
|
|
|
+ round
|
|
|
+ block
|
|
|
+ onClick={() => {
|
|
|
+ router.push({
|
|
|
+ path: '/apply-withdrawal',
|
|
|
+ query: {
|
|
|
+ id: modelData.orchestra?.orchestraId
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ 申请退团
|
|
|
+ </Button>
|
|
|
+ )}
|
|
|
+ {modelData.orchestra?.status === 'AUTH' && (
|
|
|
+ <Button type="primary" round block disabled>
|
|
|
+ 申请退团中
|
|
|
+ </Button>
|
|
|
+ )}
|
|
|
+ </div>
|
|
|
+ </OSticky>
|
|
|
+ )}
|
|
|
+
|
|
|
<Popup
|
|
|
v-model:show={modelData.orchestraStatus}
|
|
|
position="bottom"
|