Browse Source

品牌供应商取值

huangb 7 years ago
parent
commit
27e1c2981b
1 changed files with 3 additions and 2 deletions
  1. 3 2
      components/provider/ToggleStore.vue

+ 3 - 2
components/provider/ToggleStore.vue

@@ -96,13 +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.item === '供应商') {
+          if (value.detno === 2 && value.usedFor === 'mall_home_banner') {
             this.supplierArr.push(value.count)
           }
-          if (value.item === '品   牌') {
+          if (value.detno === 1 && value.usedFor === 'b2c_index') {
             this.brandArr.push(value.count)
           }
         })