fix(IndexCheckInPage): 将点赞事件从div移至图标元素
修复点赞功能触发区域过大的问题,现在只有点击图标才会触发点赞事件
Showing
1 changed file
with
3 additions
and
3 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2025-05-29 15:34:17 | 2 | * @Date: 2025-05-29 15:34:17 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2025-06-06 20:29:45 | 4 | + * @LastEditTime: 2025-06-06 21:26:30 |
| 5 | * @FilePath: /mlaj/src/views/checkin/IndexCheckInPage.vue | 5 | * @FilePath: /mlaj/src/views/checkin/IndexCheckInPage.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> |
| ... | @@ -138,8 +138,8 @@ | ... | @@ -138,8 +138,8 @@ |
| 138 | /> | 138 | /> |
| 139 | </div> | 139 | </div> |
| 140 | </div> | 140 | </div> |
| 141 | - <div class="post-footer" @click="handLike(post)"> | 141 | + <div class="post-footer"> |
| 142 | - <van-icon name="good-job" class="like-icon" :color="post.is_liked ? 'red' : ''" /> | 142 | + <van-icon @click="handLike(post)"name="good-job" class="like-icon" :color="post.is_liked ? 'red' : ''" /> |
| 143 | <span class="like-count">{{ post.likes }}</span> | 143 | <span class="like-count">{{ post.likes }}</span> |
| 144 | </div> | 144 | </div> |
| 145 | </div> | 145 | </div> | ... | ... |
-
Please register or login to post a comment