Commit 0f45f94173811aca33d4350d8e91d21a4433b994
1 parent
71993ac4
tabbar颜色判断调优
Showing
1 changed file
with
3 additions
and
3 deletions
src/components/tabBox/tabBox.vue
| @@ -8,14 +8,14 @@ | @@ -8,14 +8,14 @@ | ||
| 8 | <div class="tabBox_main" ref="tabsSwiperBox"> | 8 | <div class="tabBox_main" ref="tabsSwiperBox"> |
| 9 | <div class="tabbar" v-for="(item, index) in tabbaromponents&&tabbaromponents.ads" :key="index"> | 9 | <div class="tabbar" v-for="(item, index) in tabbaromponents&&tabbaromponents.ads" :key="index"> |
| 10 | <!-- 关爱屋简介 --> | 10 | <!-- 关爱屋简介 --> |
| 11 | - <div :style="{backgroundColor:tabbar[0].color || tabbarBackgroud}" class="skeleton brief" ref="brief"> | 11 | + <div :style="{backgroundColor:(tabbar&&tabbar[0].color) || tabbarBackgroud}" class="skeleton brief" ref="brief"> |
| 12 | <html-box | 12 | <html-box |
| 13 | v-if="item.style === '14'" | 13 | v-if="item.style === '14'" |
| 14 | :htmls="item.content"> | 14 | :htmls="item.content"> |
| 15 | </html-box> | 15 | </html-box> |
| 16 | </div> | 16 | </div> |
| 17 | <!-- 精品推荐 --> | 17 | <!-- 精品推荐 --> |
| 18 | - <div :style="{backgroundColor:tabbar[1].color || tabbarBackgroud}" class="skeleton boutique" ref="boutique"> | 18 | + <div :style="{backgroundColor:(tabbar&&tabbar[0].color) || tabbarBackgroud}" class="skeleton boutique" ref="boutique"> |
| 19 | <img-list-box | 19 | <img-list-box |
| 20 | v-if="item.style === '12'" | 20 | v-if="item.style === '12'" |
| 21 | @detail="toDetail" | 21 | @detail="toDetail" |
| @@ -41,7 +41,7 @@ | @@ -41,7 +41,7 @@ | ||
| 41 | </style-7> | 41 | </style-7> |
| 42 | </div> | 42 | </div> |
| 43 | <!-- 商品推荐 --> | 43 | <!-- 商品推荐 --> |
| 44 | - <div :style="{backgroundColor:tabbar[2].color || tabbarBackgroud}" class="skeleton commodity" ref="commodity"> | 44 | + <div :style="{backgroundColor:(tabbar&&tabbar[0].color) || tabbarBackgroud}" class="skeleton commodity" ref="commodity"> |
| 45 | <!--infinite-scroll-immediate-check="true"可避免上拉多次调用接口问题--> | 45 | <!--infinite-scroll-immediate-check="true"可避免上拉多次调用接口问题--> |
| 46 | <!-- 渐变过度 --> | 46 | <!-- 渐变过度 --> |
| 47 | <div class="column-commodity-excessive"></div> | 47 | <div class="column-commodity-excessive"></div> |