瀏覽代碼

问题修复

lex 1 年之前
父節點
當前提交
4e39a4dcea

+ 4 - 0
src/tenant/music/train-list/index.module.less

@@ -45,6 +45,10 @@
     }
 
   }
+
+  .titleActive {
+    color: #FE2451;
+  }
 }
 
 .listContainer {

+ 9 - 1
src/tenant/music/train-list/index.tsx

@@ -135,7 +135,15 @@ export default defineComponent({
                 v-slots={{
                   left: () => (
                     <DropdownMenu>
-                      <DropdownItem title="筛选" ref={searchRef}>
+                      <DropdownItem
+                        titleClass={
+                          params.subjectId || params.type || params.level
+                            ? styles.titleActive
+                            : ''
+                        }
+                        title="筛选"
+                        ref={searchRef}
+                      >
                         <div
                           class={styles.searchResult}
                           style={{ maxHeight: '45vh', overflowY: 'auto' }}

+ 16 - 16
src/tenant/music/train-tool/index.tsx

@@ -172,8 +172,10 @@ export default defineComponent({
         }
       })
 
+      state.loading = true
       await getDetails()
       await FetchList()
+      state.loading = false
     })
 
     const onSubmit = async () => {
@@ -365,22 +367,20 @@ export default defineComponent({
             </List>
           </div>
         </div>
-        {!state.loading &&
-          !state.details.ifBuy &&
-          baseState.platformType === 'STUDENT' && (
-            <TheSticky position="bottom">
-              <div class={styles.btnGroup}>
-                <Button
-                  round
-                  block
-                  color="#FE2451"
-                  onClick={() => (state.popupStatus = true)}
-                >
-                  购买教程
-                </Button>
-              </div>
-            </TheSticky>
-          )}
+        {!state.loading && baseState.platformType === 'STUDENT' && (
+          <TheSticky position="bottom">
+            <div class={styles.btnGroup}>
+              <Button
+                round
+                block
+                color="#FE2451"
+                onClick={() => (state.popupStatus = true)}
+              >
+                购买教程
+              </Button>
+            </div>
+          </TheSticky>
+        )}
         <Popup
           v-model:show={state.popupStatus}
           position="bottom"