Commit 61a4349ba52d3d3c3a81169776264a1d27f013c5
1 parent
1d0e5ce9
样式优化
Showing
2 changed files
with
7 additions
and
3 deletions
src/components/darenListBox/darenListBox.less
| @@ -10,5 +10,9 @@ | @@ -10,5 +10,9 @@ | ||
| 10 | > .item-box + .item-box { | 10 | > .item-box + .item-box { |
| 11 | margin-top: 30px; | 11 | margin-top: 30px; |
| 12 | } | 12 | } |
| 13 | + .borderBottom{ | ||
| 14 | + padding-bottom: 32px; | ||
| 15 | + border-bottom: solid 1px #F2F2F2; | ||
| 16 | + } | ||
| 13 | } | 17 | } |
| 14 | -} | ||
| 15 | \ No newline at end of file | 18 | \ No newline at end of file |
| 19 | +} |
src/components/darenListBox/darenListBox.vue
| @@ -5,9 +5,9 @@ | @@ -5,9 +5,9 @@ | ||
| 5 | <slot name="title-box"></slot> | 5 | <slot name="title-box"></slot> |
| 6 | 6 | ||
| 7 | <div class="box"> | 7 | <div class="box"> |
| 8 | - | 8 | + |
| 9 | <!-- 循环输出达人动态列表 --> | 9 | <!-- 循环输出达人动态列表 --> |
| 10 | - <div class="item-box" v-for="(item, index) in lists" :key="index"> | 10 | + <div class="item-box" :class="{borderBottom:lists.length>1}" v-for="(item, index) in lists" :key="index"> |
| 11 | <daren-list-com @userJump="userJump" @jump="jump" @goodsJump="goodsJump" @goodsPrimary="goodsPrimary" | 11 | <daren-list-com @userJump="userJump" @jump="jump" @goodsJump="goodsJump" @goodsPrimary="goodsPrimary" |
| 12 | :item="item"> | 12 | :item="item"> |
| 13 | </daren-list-com> | 13 | </daren-list-com> |