|
|
@@ -379,6 +379,29 @@ export default {
|
|
|
console.error(err);
|
|
|
});
|
|
|
},
|
|
|
+ //获取banner
|
|
|
+ getbanndBanner() {
|
|
|
+ // const loading = this.openLoading(document.querySelector(".main_box"));
|
|
|
+ let params = {
|
|
|
+ oid: this.oid,
|
|
|
+ lang: this.lang.lang,
|
|
|
+ };
|
|
|
+ this.ajax
|
|
|
+ .get(this.$store.state.api + "selectBarOid", params)
|
|
|
+ .then((res) => {
|
|
|
+ console.log(res);
|
|
|
+ if (res.data[0].length > 0) {
|
|
|
+ this.bannerList = res.data[0];
|
|
|
+ }else if(res.data[1].length > 0){
|
|
|
+ this.bannerList = res.data[1];
|
|
|
+ }else{
|
|
|
+ this.bannerList = res.data[2];
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch((err) => {
|
|
|
+ console.error(err);
|
|
|
+ });
|
|
|
+ },
|
|
|
getCourse(typeName, ftypeId, typeid, type) {
|
|
|
this.page = 1;
|
|
|
this.zoneClass = [];
|
|
|
@@ -677,9 +700,9 @@ export default {
|
|
|
// this.selectType({
|
|
|
// data: [res.data[1], res.data[2], res.data[3], res.data[4]],
|
|
|
// });
|
|
|
- this.getBanner({
|
|
|
- data: [res.data[6], res.data[5], res.data[7]],
|
|
|
- });
|
|
|
+ // this.getBanner({
|
|
|
+ // data: [res.data[6], res.data[5], res.data[7]],
|
|
|
+ // });
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
console.error(err);
|
|
|
@@ -717,9 +740,9 @@ export default {
|
|
|
// this.selectType({
|
|
|
// data: [res.data[1], res.data[2], res.data[3], res.data[4]],
|
|
|
// });
|
|
|
- this.getBanner({
|
|
|
- data: [res.data[6], res.data[5], res.data[7]],
|
|
|
- });
|
|
|
+ // this.getBanner({
|
|
|
+ // data: [res.data[6], res.data[5], res.data[7]],
|
|
|
+ // });
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
console.error(err);
|
|
|
@@ -972,6 +995,7 @@ export default {
|
|
|
let typea = this.$route.query.typea
|
|
|
let typeb = this.$route.query.typeb
|
|
|
let typed = this.$route.query.typed
|
|
|
+ this.getbanndBanner()
|
|
|
if(this.oidArray.indexOf(this.oid) !== -1){
|
|
|
this.typeCheck2 = true
|
|
|
}
|