lsc 4 days ago
parent
commit
ce56cf7ec9
1 changed files with 8 additions and 8 deletions
  1. 8 8
      src/components/pptEasyClass/index.vue

+ 8 - 8
src/components/pptEasyClass/index.vue

@@ -20,16 +20,16 @@
             <span>{{ courseDetail.title }}</span>
           </div>
           <div class="free-browse-switch" v-if="courseDetail.userid == userid">
-            <span class="switch-label" :class="{ active: freeBrowse }">{{ freeBrowse ? '自由浏览' : '跟随模式' }}</span>
             <el-switch
               v-model="freeBrowse"
-              :active-value="true"
-              :inactive-value="false"
+              :active-value="false"
+              :inactive-value="true"
               class="custom-switch"
-              active-color="#FCCF00"
-              inactive-color="#F53F3F"
+              active-color="#03ae2b"
+              inactive-color="#d8d8d8"
               @change="onFreeBrowseChange"
             ></el-switch>
+            <span class="switch-label" :class="{ active: freeBrowse }">{{ freeBrowse ? '自由浏览' : '跟随模式' }}</span>
           </div>
           <div class="free-browse-switch" v-if="tType == 2">
             <span class="switch-label" :class="{ active: freeBrowse }">{{ freeBrowse ? '自由浏览' : '跟随模式' }}</span>
@@ -459,9 +459,9 @@ export default {
 }
 
 .switch-label {
-  background: linear-gradient(to right, #F53F3F, #FCCF00);
-  -webkit-background-clip: text;
-  color: transparent;
+  /* background: linear-gradient(to right, #F53F3F, #FCCF00); */
+  /* -webkit-background-clip: text; */
+  color: #000;
 }
 
 .refresh_icon {