Commit 98ec3b8c authored by Damon's avatar Damon

fix: 申请配件

parent 925c2828
...@@ -120,10 +120,11 @@ export default { ...@@ -120,10 +120,11 @@ export default {
} }
}, },
onLoad(e) { onLoad(e) {
getApp().trackPage('选择配件页') getApp().trackPage('选择配件页')
if (e) { if (e) {
this.categoryId = e.categaryId this.categaryId = e.categaryId
this.brandId = e.brandId this.brandId = e.brandId
this.type = e.type
this.getBrandList() this.getBrandList()
} else { } else {
this.getCategaryList() this.getCategaryList()
...@@ -211,8 +212,8 @@ export default { ...@@ -211,8 +212,8 @@ export default {
this.categaryId = this.categary[this.categaryIndex || 0].categoryId this.categaryId = this.categary[this.categaryIndex || 0].categoryId
this.brandIndex = '' this.brandIndex = ''
this.show = false this.show = false
this.pageNumber = 1
this.getBrandList() this.getBrandList()
this.getPartsList()
}, },
// 下拉选择品牌 // 下拉选择品牌
changeBrand(data) { changeBrand(data) {
...@@ -220,6 +221,7 @@ export default { ...@@ -220,6 +221,7 @@ export default {
this.brandId = this.brand[this.brandIndex].brandId this.brandId = this.brand[this.brandIndex].brandId
this.scrollId = `brand${this.brandId}` this.scrollId = `brand${this.brandId}`
this.lists = [] this.lists = []
this.pageNumber = 1
this.getPartsList() this.getPartsList()
}, },
// 点击选择品牌 // 点击选择品牌
...@@ -228,6 +230,7 @@ export default { ...@@ -228,6 +230,7 @@ export default {
this.brandIndex = index this.brandIndex = index
this.brandId = item.brandId this.brandId = item.brandId
this.lists = [] this.lists = []
this.pageNumber = 1
this.getPartsList() this.getPartsList()
}, },
// 加载更多 // 加载更多
......
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