Commit 5401e898d9948f6545b8b1f89a031213bef9d50d
1 parent
23d445c2
数据优化
Showing
1 changed file
with
8 additions
and
8 deletions
src/components/tabBox/tabBox.vue
| @@ -77,8 +77,8 @@ | @@ -77,8 +77,8 @@ | ||
| 77 | this.tabbaromponents = this.tabbar.find((item)=>{ | 77 | this.tabbaromponents = this.tabbar.find((item)=>{ |
| 78 | return item.title === "关爱屋" | 78 | return item.title === "关爱屋" |
| 79 | }); | 79 | }); |
| 80 | - // 获取领头雁电商精品推荐 | ||
| 81 | -// this.getActivityAdsGoods(this.paging.boutique.page); | 80 | + // 获取爱心屋全部商品数据 |
| 81 | + this.shopRecommendGoods(this.paging.commodity.page) | ||
| 82 | }, | 82 | }, |
| 83 | methods: { | 83 | methods: { |
| 84 | onChange(name, title) { | 84 | onChange(name, title) { |
| @@ -86,10 +86,10 @@ | @@ -86,10 +86,10 @@ | ||
| 86 | this.tabbaromponents = this.tabbar.find((item)=>{ | 86 | this.tabbaromponents = this.tabbar.find((item)=>{ |
| 87 | return item.title === title | 87 | return item.title === title |
| 88 | }); | 88 | }); |
| 89 | - if(title==='全部商品'){ | ||
| 90 | - // 爱心屋项目全部商品 | ||
| 91 | - this.shopRecommendGoods(this.paging.commodity.page); | ||
| 92 | - } | 89 | +// if(title==='全部商品'){ |
| 90 | +// // 爱心屋项目全部商品 | ||
| 91 | +// this.shopRecommendGoods(this.paging.commodity.page); | ||
| 92 | +// } | ||
| 93 | 93 | ||
| 94 | }, | 94 | }, |
| 95 | /** | 95 | /** |
| @@ -126,7 +126,7 @@ | @@ -126,7 +126,7 @@ | ||
| 126 | */ | 126 | */ |
| 127 | shopRecommendGoods(page) { | 127 | shopRecommendGoods(page) { |
| 128 | // 判断必要参数 | 128 | // 判断必要参数 |
| 129 | - if (this.tabbaromponents.shop_id) { | 129 | + if (this.tabbar[2].shop_id) { |
| 130 | 130 | ||
| 131 | // 加载中 | 131 | // 加载中 |
| 132 | this.$set(this.paging.commodity, "loading", true); | 132 | this.$set(this.paging.commodity, "loading", true); |
| @@ -136,7 +136,7 @@ | @@ -136,7 +136,7 @@ | ||
| 136 | 136 | ||
| 137 | // 请求接口 | 137 | // 请求接口 |
| 138 | this.http("/Api/" + (this.getApiVersion().index) + "/shopGoodsList", { | 138 | this.http("/Api/" + (this.getApiVersion().index) + "/shopGoodsList", { |
| 139 | - shop_id: this.tabbaromponents.shop_id, | 139 | + shop_id: this.tabbar[2].shop_id, |
| 140 | page: page | 140 | page: page |
| 141 | }, this.shopRecommendGoodsCallback, { | 141 | }, this.shopRecommendGoodsCallback, { |
| 142 | method: "POST" | 142 | method: "POST" |