lex 2 年 前
コミット
fa3f10cb39
1 ファイル変更35 行追加34 行削除
  1. 35 34
      src/views/mine-orchestra/index.tsx

+ 35 - 34
src/views/mine-orchestra/index.tsx

@@ -164,40 +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>
-        )}
+        {state.platformType == 'STUDENT' &&
+          ['REGISTER', 'LEARNING', 'AUTH'].includes(modelData.orchestra?.status) && (
+            <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}