|
|
@@ -78,8 +78,8 @@ export default {
|
|
|
name: 'excellent-suppliers',
|
|
|
data () {
|
|
|
return {
|
|
|
- supplierArr: [],
|
|
|
- brandArr: []
|
|
|
+ supplierArr: '',
|
|
|
+ brandArr: ''
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -96,15 +96,14 @@ export default {
|
|
|
return this.$store.state.provider.stores.originalCount.data
|
|
|
},
|
|
|
count () {
|
|
|
- console.log(this.$store.state.option.counter.data)
|
|
|
let allCount = this.$store.state.option.counter.data ? this.$store.state.option.counter.data : []
|
|
|
if (allCount) {
|
|
|
allCount.forEach((value) => {
|
|
|
- if (value.detno === 2 && value.usedFor === 'mall_home_banner') {
|
|
|
- this.supplierArr.push(value.count)
|
|
|
+ if (value.item === '供应商') {
|
|
|
+ this.supplierArr = value.count
|
|
|
}
|
|
|
- if (value.detno === 1 && value.usedFor === 'b2c_index') {
|
|
|
- this.brandArr.push(value.count)
|
|
|
+ if (value.item === '品牌') {
|
|
|
+ this.brandArr = value.count
|
|
|
}
|
|
|
})
|
|
|
}
|