From f3ea52bf97e61f6917ccaab904817d74d9d4860c Mon Sep 17 00:00:00 2001
From: cloudroam <cloudroam>
Date: 星期四, 17 七月 2025 09:55:36 +0800
Subject: [PATCH] init

---
 sub-pages/film-list/film-detail.vue |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/sub-pages/film-list/film-detail.vue b/sub-pages/film-list/film-detail.vue
index 2d73253..b20d2c6 100644
--- a/sub-pages/film-list/film-detail.vue
+++ b/sub-pages/film-list/film-detail.vue
@@ -11,7 +11,7 @@
                         </view>
                     </view>
                     <view class="opera-info">
-                        <button class="custom-btn">关注</button>
+<!--                        <button class="custom-btn">关注</button>-->
                         <up-icon name="/static/common/share2.png" size="40rpx" color="#999" @click="openSharePopup" />
                     </view>
                 </view>
@@ -45,14 +45,14 @@
                         <!-- <view v-html="filmInfo.filmContent||'暂无'" class="rich" style="overflow: scroll;"></view> -->
                     </view>
                     <view class="annotation content-item">
-                        <text>{{ formatRelativeTime(filmInfo?.createTime) }} 美国</text>
+<!--                        <text>{{ formatRelativeTime(filmInfo?.createTime) }} 美国</text>-->
                     </view>
                 </view>
 
                 <up-line></up-line>
 
                 <view class="comment">
-                    <view class="writer-view" @click="showCommentLayer">
+                    <view class="writer-view" @click="() => showCommentLayer()">
                         <up-icon name="chat-fill" size="60rpx" />
                         <view class="comment-operation">
                             <up-text size="12px" text="说点什么......" margin="0 0 0 20rpx" color="#B9B9B9" />
@@ -87,7 +87,7 @@
             <!-- 固定底部输入框 -->
             <view class="comment-box">
                 <view class="input-row">
-                    <view class="comment-input" @click="showCommentLayer">
+                    <view class="comment-input" @click="() => showCommentLayer()">
                         <up-text size="12px" text="说点什么......" margin="0 0 0 20rpx" color="#B9B9B9" />
                     </view>
 <!--                    <up-icon name="heart" size="60rpx" color="#B9B9B9" label="11" />-->
@@ -256,8 +256,11 @@
 }
 
 // film-detail.vue
-const showCommentLayer = (parentId?: number) => {
+const showCommentLayer = (parentId?: number | string) => {
   console.log('点击了评论按钮',parentId)
+  if (typeof parentId === 'object') {
+    parentId = ''
+  }
   commentShow.value = true
   // 如果有parentId,说明是回复评论,需要设置parentId
   // 如果没有parentId,说明是直接评论,不需要设置parentId

--
Gitblit v1.9.3