|
|
@@ -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 = '';
|