|
@@ -117,7 +117,8 @@ export default {
|
|
|
pagenum: 0,
|
|
|
pagesize: 20,
|
|
|
list: [],
|
|
|
- scroll: null
|
|
|
+ scroll: null,
|
|
|
+ currentSource: ''
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -125,7 +126,7 @@ export default {
|
|
|
return this.$store.getters['common/sourceList']
|
|
|
},
|
|
|
businessLogo () {
|
|
|
- const result = this.sourceList.filter(item => item.value === this.source)
|
|
|
+ const result = this.sourceList.filter(item => item.value === this.currentSource)
|
|
|
if (result.length) {
|
|
|
return result[0].logo
|
|
|
}
|
|
@@ -153,6 +154,7 @@ export default {
|
|
|
this.getList()
|
|
|
},
|
|
|
async getList () {
|
|
|
+ const source = this.source
|
|
|
if (this.finished) {
|
|
|
return
|
|
|
}
|
|
@@ -165,7 +167,7 @@ export default {
|
|
|
const { status, data, msg } = await apiGoodsSearch({
|
|
|
page: this.pagenum,
|
|
|
page_size: this.pagesize,
|
|
|
- source: this.source,
|
|
|
+ source: source,
|
|
|
keyword: this.keyword,
|
|
|
sort: this.sort
|
|
|
})
|
|
@@ -188,6 +190,7 @@ export default {
|
|
|
this.finished = true
|
|
|
}
|
|
|
this.list = this.list.concat(list)
|
|
|
+ this.currentSource = source
|
|
|
|
|
|
this.$nextTick(() => {
|
|
|
if (!this.scroll) {
|