|
|
@@ -223,7 +223,7 @@
|
|
|
<view class="justify-between align-center" v-if="!isFocus">
|
|
|
<view :class="[liveItem.showType === 1 ? 'horizontal' : 'vertical','icon-bg','ml20']"
|
|
|
style="position: relative;">
|
|
|
- <LikeButton :initialCount="100" :heartsPerClick="5" @like="onLike" />
|
|
|
+ <LikeButton style="z-index: 99999;" :initialCount="100" :heartsPerClick="5" @like="onLike" />
|
|
|
<view class="num">{{liveViewData && liveViewData.like||0}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -2246,6 +2246,7 @@
|
|
|
},
|
|
|
// 点赞
|
|
|
async onLike() {
|
|
|
+ console.log("点到了")
|
|
|
if (!this.liveId) return;
|
|
|
try {
|
|
|
const res = await liveDataLike(this.liveId);
|