Commit 8dc7cbd3 by 李伟康

修改代码

1 parent 0e0bff28
...@@ -97,8 +97,12 @@ export default { ...@@ -97,8 +97,12 @@ export default {
}) })
}, },
showCarType (i, item) { showCarType (i, item) {
this.showLoading()
let { brandInfo } = this let { brandInfo, carTypeList } = this
if (brandInfo.vehicleSeriesId == i.id && carTypeList.length) {
this.showType = true
return
}
this.brandInfo = { this.brandInfo = {
...brandInfo, ...brandInfo,
vehicleSubBrandId: item.id, vehicleSubBrandId: item.id,
...@@ -107,6 +111,7 @@ export default { ...@@ -107,6 +111,7 @@ export default {
vehicleSeriesName: i.name vehicleSeriesName: i.name
} }
this.carTypeList = [] this.carTypeList = []
this.showLoading()
carLifeApi.getCarTypeList(i.id).then(data => { carLifeApi.getCarTypeList(i.id).then(data => {
this.hideLoading() this.hideLoading()
if (!data || !data.length) this.showToast('暂无该车型') if (!data || !data.length) this.showToast('暂无该车型')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!