Commit 5401e898d9948f6545b8b1f89a031213bef9d50d

Authored by zhiyangdu
1 parent 23d445c2

数据优化

src/components/tabBox/tabBox.vue
... ... @@ -77,8 +77,8 @@
77 77 this.tabbaromponents = this.tabbar.find((item)=>{
78 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 83 methods: {
84 84 onChange(name, title) {
... ... @@ -86,10 +86,10 @@
86 86 this.tabbaromponents = this.tabbar.find((item)=>{
87 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 126 */
127 127 shopRecommendGoods(page) {
128 128 // 判断必要参数
129   - if (this.tabbaromponents.shop_id) {
  129 + if (this.tabbar[2].shop_id) {
130 130  
131 131 // 加载中
132 132 this.$set(this.paging.commodity, "loading", true);
... ... @@ -136,7 +136,7 @@
136 136  
137 137 // 请求接口
138 138 this.http("/Api/" + (this.getApiVersion().index) + "/shopGoodsList", {
139   - shop_id: this.tabbaromponents.shop_id,
  139 + shop_id: this.tabbar[2].shop_id,
140 140 page: page
141 141 }, this.shopRecommendGoodsCallback, {
142 142 method: "POST"
... ...