Commit f74823ad9b593ceb520113123e98a0280ef545b0
1 parent
abd13935
样式优化
Showing
2 changed files
with
14 additions
and
1 deletions
src/components/dresserList/dresserList.less
| @@ -42,4 +42,14 @@ | @@ -42,4 +42,14 @@ | ||
| 42 | justify-content: flex-end; | 42 | justify-content: flex-end; |
| 43 | align-items: flex-end; | 43 | align-items: flex-end; |
| 44 | } | 44 | } |
| 45 | + .btn{ | ||
| 46 | + width:120px; | ||
| 47 | + height:48px; | ||
| 48 | + background:rgba(255,236,239,1); | ||
| 49 | + border-radius:26px; | ||
| 50 | + color: #FC1541; | ||
| 51 | + font-size: 26px; | ||
| 52 | + text-align: center; | ||
| 53 | + line-height: 48px; | ||
| 54 | + } | ||
| 45 | } | 55 | } |
src/components/dresserList/dresserList.vue
| @@ -10,7 +10,10 @@ | @@ -10,7 +10,10 @@ | ||
| 10 | {{item.user_title || item.titles}} | 10 | {{item.user_title || item.titles}} |
| 11 | </div> | 11 | </div> |
| 12 | </div> | 12 | </div> |
| 13 | - <img class="arrow_right" src="static/img/icon_arrow_right.png" /> | 13 | + <div v-if="item.is_fans" class="btn"> |
| 14 | + 关注 | ||
| 15 | + </div> | ||
| 16 | + <img v-else class="arrow_right" src="static/img/icon_arrow_right.png" /> | ||
| 14 | </div> | 17 | </div> |
| 15 | </div> | 18 | </div> |
| 16 | </template> | 19 | </template> |