Commit 345ffb37 authored by Damon's avatar Damon

fix: 选择配件文案

parent 39238e59
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
:num="num" :num="num"
:btnStatus="partNum > 0" :btnStatus="partNum > 0"
:show-checked="false" :show-checked="false"
submit-txt="去提交" submit-txt="确定"
@submit="submit" @submit="submit"
/> />
</view> </view>
...@@ -139,16 +139,16 @@ export default { ...@@ -139,16 +139,16 @@ export default {
this.getCategaryList() this.getCategaryList()
} }
} }
}, },
onShow() { onShow() {
let pages = getCurrentPages(); let pages = getCurrentPages();
let page = pages[pages.length - 1]; let page = pages[pages.length - 1];
let selectedItem = page.selectedItem; let selectedItem = page.selectedItem;
if (selectedItem) { if (selectedItem) {
page.selectedItem = null page.selectedItem = null
this.selectBrand(selectedItem.item, selectedItem.index) this.selectBrand(selectedItem.item, selectedItem.index)
this.scrollId = `brand${selectedItem.id}` this.scrollId = `brand${selectedItem.id}`
} }
}, },
methods: { methods: {
// 获取品类 // 获取品类
...@@ -221,7 +221,7 @@ export default { ...@@ -221,7 +221,7 @@ export default {
return v return v
}) })
this.lists = this.lists.concat(lists) this.lists = this.lists.concat(lists)
this.pageNumber++ this.pageNumber++
this.loadStatus = lists.length < this.pageSize ? "nomore" : "loadmore" this.loadStatus = lists.length < this.pageSize ? "nomore" : "loadmore"
} else { } else {
this.loadStatus = "nomore" this.loadStatus = "nomore"
...@@ -269,10 +269,10 @@ export default { ...@@ -269,10 +269,10 @@ export default {
if (this.loadStatus !== "nomore") { if (this.loadStatus !== "nomore") {
this.getPartsList(); this.getPartsList();
} }
}, },
// 点击更多 // 点击更多
handleClick() { handleClick() {
this.$u.route({url: 'pages/order/document-tag' + '?categoryId=' + this.categaryId + '&selectedId=' + this.brandId}) this.$u.route({url: 'pages/order/document-tag' + '?categoryId=' + this.categaryId + '&selectedId=' + this.brandId})
}, },
// 加入申请 // 加入申请
apply(item, index) { apply(item, index) {
......
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