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 | 8 | <div class="tabBox_main" ref="tabsSwiperBox"> |
| 9 | 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 | 12 | <html-box |
| 13 | 13 | v-if="item.style === '14'" |
| 14 | 14 | :htmls="item.content"> |
| 15 | 15 | </html-box> |
| 16 | 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 | 19 | <img-list-box |
| 20 | 20 | v-if="item.style === '12'" |
| 21 | 21 | @detail="toDetail" |
| ... | ... | @@ -41,7 +41,7 @@ |
| 41 | 41 | </style-7> |
| 42 | 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 | 45 | <!--infinite-scroll-immediate-check="true"可避免上拉多次调用接口问题--> |
| 46 | 46 | <!-- 渐变过度 --> |
| 47 | 47 | <div class="column-commodity-excessive"></div> | ... | ... |