|
|
|
@ -13,8 +13,16 @@ |
|
|
|
<view class="lf-m-l-10 lf-font-28 lf-line-1 shop-name">{{ item.goods.store.name }}</view> |
|
|
|
</view> |
|
|
|
<view @click="switchCollect(index)" class="lf-font-40"> |
|
|
|
<u-icon name="heart-fill" color="#ff0f00" v-if="item.is_collect"></u-icon> |
|
|
|
<u-icon name="heart" v-else></u-icon> |
|
|
|
<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> |
|
|
|
</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> |
|
|
|
</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="lf-m-t-20 lf-font-24 lf-color-gray">{{ item.created_at_text }}</view> |
|
|
|
@ -120,7 +128,7 @@ |
|
|
|
border-radius: 10rpx; |
|
|
|
} |
|
|
|
.shop-name{ |
|
|
|
width: 340rpx; |
|
|
|
width: 305rpx; |
|
|
|
color: #555555; |
|
|
|
} |
|
|
|
} |
|
|
|
|