|
@@ -14,7 +14,7 @@
|
|
</div> -->
|
|
</div> -->
|
|
<div class="main">
|
|
<div class="main">
|
|
<!-- 搜索结果分类 -->
|
|
<!-- 搜索结果分类 -->
|
|
- <div class="classilfy">
|
|
|
|
|
|
+ <div class="classilfy" v-if="!hasGCLSCode">
|
|
<div
|
|
<div
|
|
v-for="(item, i) in classilfyList"
|
|
v-for="(item, i) in classilfyList"
|
|
:key="i + item"
|
|
:key="i + item"
|
|
@@ -83,6 +83,7 @@ import ClassicalCourse from '@/components/learnCenter/ClassicalCourse'
|
|
import Course from '@/components/learnCenter/Course'
|
|
import Course from '@/components/learnCenter/Course'
|
|
import Textbook from '@/components/learnCenter/Textbook'
|
|
import Textbook from '@/components/learnCenter/Textbook'
|
|
import { updateWordPack } from '@/utils/i18n'
|
|
import { updateWordPack } from '@/utils/i18n'
|
|
|
|
+import Cookies from 'js-cookie'
|
|
export default {
|
|
export default {
|
|
props: [],
|
|
props: [],
|
|
components: {
|
|
components: {
|
|
@@ -105,12 +106,13 @@ export default {
|
|
targetPage: 1,
|
|
targetPage: 1,
|
|
loading: false,
|
|
loading: false,
|
|
classilfyList: [],
|
|
classilfyList: [],
|
|
- classilfyIndex: 0,
|
|
|
|
|
|
+ classilfyIndex: Cookies.get('GCLSCode') ? 1 : 0,
|
|
classilfyID: null,
|
|
classilfyID: null,
|
|
isData: false,
|
|
isData: false,
|
|
pageSizes: [8, 16, 32, 64],
|
|
pageSizes: [8, 16, 32, 64],
|
|
pageSizes1: [8, 16, 32, 64],
|
|
pageSizes1: [8, 16, 32, 64],
|
|
pageSizes2: [10, 20, 30, 40],
|
|
pageSizes2: [10, 20, 30, 40],
|
|
|
|
+ hasGCLSCode: Cookies.get('GCLSCode'),
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -232,8 +234,8 @@ export default {
|
|
this.classilfyID = this.$route.query.id
|
|
this.classilfyID = this.$route.query.id
|
|
// classilfyIndex
|
|
// classilfyIndex
|
|
// if (this.$route.query.id == "COURSE") {
|
|
// if (this.$route.query.id == "COURSE") {
|
|
- this.classilfyIndex = 0
|
|
|
|
- this.getData('课程')
|
|
|
|
|
|
+ this.classilfyIndex = Cookies.get('GCLSCode') ? 1 : 0
|
|
|
|
+ this.getData(Cookies.get('GCLSCode') ? '教材' : '课程')
|
|
// } else {
|
|
// } else {
|
|
// this.getData("教材");
|
|
// this.getData("教材");
|
|
// this.classilfyIndex = 1;
|
|
// this.classilfyIndex = 1;
|
|
@@ -252,7 +254,9 @@ export default {
|
|
],
|
|
],
|
|
})
|
|
})
|
|
this.isData = true
|
|
this.isData = true
|
|
- this.classilfyList = [this.$t('Key215'), this.$t('Key44')]
|
|
|
|
|
|
+ this.classilfyList = Cookies.get('GCLSCode')
|
|
|
|
+ ? [this.$t('Key44')]
|
|
|
|
+ : [this.$t('Key215'), this.$t('Key44')]
|
|
},
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|