This commit is contained in:
zhaofang
2022-11-14 19:47:22 +08:00
parent feb32a7b36
commit 00cf84c906
3 changed files with 10 additions and 5 deletions

View File

@@ -25,10 +25,6 @@
<view class="interact-bar-icon" v-else><image style="width:40upx;height: 40upx;" src="/static/images/icon/artice-praise.png" alt="" ></view>
<!-- <view class="interact-bar-txt">{{data.praises}}</view> -->
</view>
<view v-if="shares" @click="addShare" class="interact-bar-item">
<view class="interact-bar-icon"><image style="width:40upx;height: 40upx;" src="/static/images/icon/share.png" alt=""></view>
<!-- <view class="interact-bar-txt">分享</view> -->
</view>
<view v-if="favorites" @click="addFavorite()" class="interact-bar-item">
<view class="interact-bar-icon" v-if="isFavorite"><image style="width:40upx;height: 40upx;" src="/static/images/icon/favorite-active.png" alt="" ></view>
<view class="interact-bar-icon" v-else><image style="width:40upx;height: 40upx;" src="/static/images/icon/favorite.png" alt="" ></view>
@@ -36,6 +32,10 @@
<!-- <view class="interact-bar-txt">{{data.favorites}}</view> -->
<!-- 这里需要一个是否已经收藏的变量来控制已收藏就显示收藏数 -->
</view>
<view v-if="shares" @click="addShare" class="interact-bar-item">
<view class="interact-bar-icon"><image style="width:40upx;height: 40upx;" src="/static/images/icon/share.png" alt=""></view>
<!-- <view class="interact-bar-txt">分享</view> -->
</view>
</view>
</view>