Commit c7678733 by 李伟康

commit 提交

1 parent 72064277
......@@ -137,8 +137,8 @@ export default {
})
}
uni.$api.commonApi.getCarBrandsList({
brandId: 2978||e.brandId,
childBrandId:3454|| e.id
brandId: e.brandId,
childBrandId: e.id
}).then(res => {
uni.hideLoading()
this.carlist = res
......
......@@ -224,8 +224,8 @@ export default {
},
isLast (index, ind, children) {
let result = false
if (ind && children) result = ind == children.length - 1 && index == this.detailInfo.length - 1
else result = index == this.detailInfo.length - 1
if (ind > - 1 && children) result = ind == children.length - 1 && index == this.detailInfo.length - 1
else result = (index == this.detailInfo.length - 1 && !this.detailInfo[index].children.length)
return result ? 'last' : ''
},
isActive (item) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!