Commit 32b419447677232832502a5e19676e19efe85fa7
1 parent
d5d7e0e2
默认展示第二个tab内容
Showing
1 changed file
with
3 additions
and
3 deletions
src/components/tabBox/tabBox.vue
| ... | ... | @@ -70,7 +70,7 @@ |
| 70 | 70 | name: 'name', |
| 71 | 71 | data () { |
| 72 | 72 | return { |
| 73 | - active: 0, | |
| 73 | + active: 1, | |
| 74 | 74 | tabbaromponents: null, // 组件库 |
| 75 | 75 | commoditys: { // 全部推荐 |
| 76 | 76 | list: [] |
| ... | ... | @@ -96,8 +96,8 @@ |
| 96 | 96 | }, |
| 97 | 97 | created(){ |
| 98 | 98 | // 初始化的时选中关爱屋 |
| 99 | - if(this.tabbar&&this.tabbar[0]&&this.tabbar[0].ads){ | |
| 100 | - this.tabbaromponents = this.tabbar[0] | |
| 99 | + if(this.tabbar&&this.tabbar[1]&&this.tabbar[1].ads){ | |
| 100 | + this.tabbaromponents = this.tabbar[1] | |
| 101 | 101 | } |
| 102 | 102 | // 获取爱心屋全部商品数据 |
| 103 | 103 | this.shopRecommendGoods(this.paging.commodity.page) | ... | ... |