|
|
|
@ -26,7 +26,7 @@
|
|
|
|
|
<script>
|
|
|
|
|
import createOpt from "./opt";
|
|
|
|
|
import { getHomeBrandSourceType0528 } from "@/api/home";
|
|
|
|
|
import {getBrandName} from "@/api/comm"
|
|
|
|
|
import {getBrandName,getUserSeriesName} from "@/api/comm"
|
|
|
|
|
export default {
|
|
|
|
|
name: "spread-the-sound",
|
|
|
|
|
data() {
|
|
|
|
@ -99,14 +99,25 @@ export default {
|
|
|
|
|
this.setBrand({brandname: res.data})
|
|
|
|
|
this.$router.push("/modelInsight");
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
let brand = ele.axisValueLabel;
|
|
|
|
|
this.getUserSeriesName(brand); //同步车型
|
|
|
|
|
this.setBrand({brandname: brand});
|
|
|
|
|
this.setHeaderType(3);
|
|
|
|
|
this.$router.push("/brandInsight");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// 获取车型
|
|
|
|
|
getUserSeriesName(brandName) {
|
|
|
|
|
this.form.token = this.getToken;
|
|
|
|
|
this.form.sBrandName = brandName;
|
|
|
|
|
getUserSeriesName(this.form).then((res) => {
|
|
|
|
|
let data = res.data || [];
|
|
|
|
|
this.models = data;
|
|
|
|
|
this.chooseModel = this.models[0];
|
|
|
|
|
this.setModel(this.chooseModel);
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|