Commit f40d59e6 authored by Facius's avatar Facius

配件选择页传参

parent b0d2f05a
...@@ -126,13 +126,16 @@ export default { ...@@ -126,13 +126,16 @@ export default {
}, },
onLoad(e) { onLoad(e) {
getApp().trackPage('选择配件页') getApp().trackPage('选择配件页')
if (e) { if (e) {
this.categaryId = e.categaryId if (e.type == 1) {
this.type = e.type this.categaryId = e.categaryId || ''
this.getBrandList(e.brandId) this.type = e.type
} else { this.getBrandList(e.brandId)
this.getCategaryList() } else if (e.type == 2) {
} this.type = e.type
this.getCategaryList()
}
}
}, },
methods: { methods: {
// 获取品类 // 获取品类
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment