|
|
|
@ -15,12 +15,12 @@ |
|
|
|
<view @click="switchCollect(index)" class="lf-font-40"> |
|
|
|
<view v-if="item.is_collect" class="flex flex-direction justify-around align-center text-center" style="width: 100%;"> |
|
|
|
<u-icon name="heart-fill" color="#ff0f00"></u-icon> |
|
|
|
<text class="lf-font-24">取消收藏</text> |
|
|
|
<text class="collect-btn">取消收藏</text> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view v-else class="flex flex-direction justify-around align-center text-center" style="width: 100%;"> |
|
|
|
<u-icon name="heart"></u-icon> |
|
|
|
<text class="lf-font-24">添加收藏</text> |
|
|
|
<text class="collect-btn">添加收藏</text> |
|
|
|
</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
@ -133,4 +133,11 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
.collect-btn{ |
|
|
|
display: inline-block; |
|
|
|
padding: 2rpx 9rpx; |
|
|
|
border: 1rpx solid #333333; |
|
|
|
border-radius: 20rpx; |
|
|
|
font-size: 22rpx; |
|
|
|
} |
|
|
|
</style> |