|
@@ -302,6 +302,26 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ } else if (typeName == "主题") {
|
|
|
+ if (type == 1) {
|
|
|
+ if (this.typeE.indexOf(typeid) != -1) {
|
|
|
+ this.typeE.splice(this.typeE.indexOf(typeid), 1);
|
|
|
+ } else {
|
|
|
+ this.typeE.push(typeid);
|
|
|
+ if (this.typeb != "") {
|
|
|
+ this.typeb = "";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if (this.typeb == typeid) {
|
|
|
+ this.typeb = "";
|
|
|
+ } else {
|
|
|
+ this.typeb = typeid;
|
|
|
+ if (this.typeE.indexOf(ftypeId) != -1) {
|
|
|
+ this.typeE.splice(this.typeE.indexOf(ftypeId), 1);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
} else if (typeName == "学院") {
|
|
|
if (type == 1) {
|
|
|
if (this.typeE.indexOf(typeid) != -1) {
|
|
@@ -392,11 +412,27 @@ export default {
|
|
|
},
|
|
|
//获取banner
|
|
|
getBanner() {
|
|
|
+ let params = {
|
|
|
+ oid: this.oid,
|
|
|
+ };
|
|
|
+ this.ajax
|
|
|
+ .get(this.$store.state.api + "selectBannerByOid", params)
|
|
|
+ .then((res) => {
|
|
|
+ if (res.data[0].length > 0) {
|
|
|
+ this.bannerList = res.data[0];
|
|
|
+ } else {
|
|
|
+ this.getOldBanner();
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch((err) => {
|
|
|
+ console.error(err);
|
|
|
+ });
|
|
|
+ },
|
|
|
+ getOldBanner() {
|
|
|
this.ajax
|
|
|
.get(this.$store.state.api + "getBanner", "")
|
|
|
.then((res) => {
|
|
|
this.bannerList = res.data[0];
|
|
|
- console.log(this.bannerList);
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
console.error(err);
|
|
@@ -411,6 +447,11 @@ export default {
|
|
|
if (!this.cid) {
|
|
|
this.courseTypeId[res.data[0][i].id] = "";
|
|
|
}
|
|
|
+ if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
|
|
|
+ if (res.data[0][i].name == "栏目") {
|
|
|
+ this.CourseType[0][i].name = "主题";
|
|
|
+ }
|
|
|
+ }
|
|
|
for (var j = 0; j < res.data[1].length; j++) {
|
|
|
if (res.data[0][i].id == res.data[1][j].pid) {
|
|
|
if (!this.CourseTypeJson[res.data[0][i].id]) {
|
|
@@ -461,7 +502,7 @@ export default {
|
|
|
|
|
|
<style scoped>
|
|
|
@media screen and (max-width: 1024px) {
|
|
|
- .box_course{
|
|
|
+ .box_course {
|
|
|
margin: 0px 5px 20px 5px !important;
|
|
|
}
|
|
|
}
|