浏览代码

修改头部问题

lex 1 年之前
父节点
当前提交
fbd2bf7e29

+ 2 - 0
src/teacher/video-class/video-detail.tsx

@@ -12,6 +12,7 @@ import ColSticky from '@/components/col-sticky'
 import LiveItem from '@/views/live-class/live-item'
 import { state } from '@/state'
 import { postMessage } from '@/helpers/native-message'
+import ColHeader from '@/components/col-header'
 export default defineComponent({
   name: 'VideoDetail',
   data() {
@@ -140,6 +141,7 @@ export default defineComponent({
   render() {
     return (
       <div class={[styles['video-detail'], 'mb12']}>
+        <ColHeader />
         {this.userInfo.id && <UserDetail userInfo={this.userInfo} />}
         <SectionDetail border>
           <p class={styles.introduction}>{this.userInfo.lessonDesc}</p>

+ 6 - 1
src/tenant/music/search/header.tsx

@@ -260,7 +260,12 @@ export default defineComponent({
         <div class={styles.search}>
           <div class={styles.sticky}>
             <TheSticky position="top">
-              <ColHeader isFixed={false} background="transparent" title=" " />
+              <ColHeader
+                isFixed={false}
+                background="transparent"
+                isBack={false}
+                title=" "
+              />
               <Search
                 modelValue={keyword.value}
                 background="transparent"

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

@@ -114,29 +114,29 @@ export default defineComponent({
 
         if (state.subjectCounts) {
           state.activeTab = 'SUBJECT'
-        } else if (state.ensembleCounts) {
-          state.activeTab = 'ENSEMBLE'
         } else if (state.musicCounts) {
           state.activeTab = 'MUSIC'
+        } else if (state.ensembleCounts) {
+          state.activeTab = 'ENSEMBLE'
         }
         // 带的参数
         if (route.query.subjectType == 'SUBJECT' && state.subjectCounts) {
           state.activeTab = 'SUBJECT'
+        } else if (route.query.subjectType == 'MUSIC' && state.musicCounts) {
+          state.activeTab = 'MUSIC'
         } else if (
           route.query.subjectType == 'ENSEMBLE' &&
           state.ensembleCounts
         ) {
           state.activeTab = 'ENSEMBLE'
-        } else if (route.query.subjectType == 'MUSIC' && state.musicCounts) {
-          state.activeTab = 'MUSIC'
         }
         // subjectType 缓存
         if (subjectType == 'SUBJECT' && state.subjectCounts) {
           state.activeTab = 'SUBJECT'
-        } else if (subjectType == 'ENSEMBLE' && state.ensembleCounts) {
-          state.activeTab = 'ENSEMBLE'
         } else if (subjectType == 'MUSIC' && state.musicCounts) {
           state.activeTab = 'MUSIC'
+        } else if (subjectType == 'ENSEMBLE' && state.ensembleCounts) {
+          state.activeTab = 'ENSEMBLE'
         }
       } catch {
         //

+ 1 - 1
vite.config.ts

@@ -12,7 +12,7 @@ function resolve(dir: string) {
 // https://vitejs.dev/config/
 // https://github.com/vitejs/vite/issues/1930 .env
 // const proxyUrl = 'https://online.colexiu.com/';
-const proxyUrl = 'https://dev.colexiu.com/'
+const proxyUrl = 'https://test.colexiu.com/'
 // const proxyUrl = 'http://192.168.3.143:8000/'
 export default defineConfig({
   base: './',