From 12af499e64f38b7ff3a79fcc5bf527855cf359f3 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期二, 03 六月 2025 16:41:49 +0800 Subject: [PATCH] 视频主页基本信息接口对接 --- pages/tabbar/index/home.vue | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/pages/tabbar/index/home.vue b/pages/tabbar/index/home.vue index d6a2f29..356bd51 100644 --- a/pages/tabbar/index/home.vue +++ b/pages/tabbar/index/home.vue @@ -75,16 +75,16 @@ <view class="avatar-container"> <image class="avatar" @click="() => jumpToHomePage(item.authorId)" :src="item.authorAvatar" mode="aspectFill"></image> <!-- 鍏虫敞鍥炬爣 - 浣跨敤缁濆瀹氫綅 --> - <view v-if="!item.subscribeThisAuthor" class="follow-icon" @click="subscribeAuth(index, item.authorId)"> + <view v-if="!item.subscribeThisAuthor" class="follow-icon" @click="() => subscribeAuth(index, item.authorId)"> <text class="iconfont"></text> </view> </view> - <view class="action-item" @click="toggleCollect(item, index)"> + <view class="action-item" @click="() => toggleCollect(item, index)"> <text class="iconfont" v-if="item.collected"></text> <text class="iconfont" v-else></text> <text style="font-size: 10px;font-weight: lighter;">{{item.collectNum}}</text> </view> - <view class="action-item" @click="showComments(item)"> + <view class="action-item" @click="() => showComments(item)"> <text class="iconfont"></text> <text style="font-size: 10px;font-weight: lighter;">{{item.commentNum}}</text> </view> @@ -495,7 +495,6 @@ async loadVideos() { if (this.loading) return; this.loading = true; - getRecommendVideos({pageNumber: this.page, pageSize: this.pageSize}).then(res => { console.log(res, "瑙嗛鏁版嵁"); if (this.page === 1) { -- Gitblit v1.8.0