Commit 32b419447677232832502a5e19676e19efe85fa7

Authored by zhiyangdu
1 parent d5d7e0e2

默认展示第二个tab内容

src/components/tabBox/tabBox.vue
@@ -70,7 +70,7 @@ @@ -70,7 +70,7 @@
70 name: 'name', 70 name: 'name',
71 data () { 71 data () {
72 return { 72 return {
73 - active: 0, 73 + active: 1,
74 tabbaromponents: null, // 组件库 74 tabbaromponents: null, // 组件库
75 commoditys: { // 全部推荐 75 commoditys: { // 全部推荐
76 list: [] 76 list: []
@@ -96,8 +96,8 @@ @@ -96,8 +96,8 @@
96 }, 96 },
97 created(){ 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 this.shopRecommendGoods(this.paging.commodity.page) 103 this.shopRecommendGoods(this.paging.commodity.page)