11wqe1 14 hours ago
parent
commit
35cb048fce
1 changed files with 18 additions and 16 deletions
  1. 18 16
      src/components/pages/liyuan/page/courseCenter.vue

+ 18 - 16
src/components/pages/liyuan/page/courseCenter.vue

@@ -65,7 +65,9 @@
   </div>
 </template>
 <script>
+import { myMixin } from "@/mixins/mixin.js";
 export default {
+  mixins: [ myMixin ],
   name: "courseCenter",
   data() {
     return {
@@ -106,22 +108,22 @@ export default {
         });
     },
     async entCourse(item) {
-      // let _str = "";
-      // if (item.state == 1) {
-      //   _str = "course_stageMode_open";
-      // }
-      // if (item.state == 2) {
-      //   _str = "course_taskMode_open";
-      // }
-      // if (item.state == 3) {
-      //   _str = "course_easyMode_open";
-      // }
-      // if (item.state == 5) {
-      //   _str = "course_aiMode_open";
-      // }
-      // if (item.state == 6) {
-      //   _str = "course_aiEasyMode_open";
-      // }
+      let _str = "";
+      if (item.state == 1) {
+        _str = "course_stageMode_open";
+      }
+      if (item.state == 2) {
+        _str = "course_taskMode_open";
+      }
+      if (item.state == 3) {
+        _str = "course_easyMode_open";
+      }
+      if (item.state == 5) {
+        _str = "course_aiMode_open";
+      }
+      if (item.state == 6) {
+        _str = "course_aiEasyMode_open";
+      }
       const user = await this.getUser();
 
       let url = '';