From a9cfcff1c3091ddf7ec54c39c5f86f5d7a6ca7b6 Mon Sep 17 00:00:00 2001
From: peng <peng.com>
Date: 星期二, 29 七月 2025 16:17:42 +0800
Subject: [PATCH] 解决审核问题

---
 pages/tabbar/index/home.vue |   19 ++++++++++++++++---
 1 files changed, 16 insertions(+), 3 deletions(-)

diff --git a/pages/tabbar/index/home.vue b/pages/tabbar/index/home.vue
index dca4875..33aed35 100644
--- a/pages/tabbar/index/home.vue
+++ b/pages/tabbar/index/home.vue
@@ -189,7 +189,7 @@
 			<view style="display: flex;">
 				<image class="comment-avatar" :src="comment.userAvatar || '/static/default-avatar.png'"></image>
 				<view class="comment-content">
-				  <text class="nickname">{{comment.userNickname}}</text>
+				  <text class="nickname">{{comment.userNickname}} <text v-if="userId===comment.userId">(鎴�)</text> </text>
 				  <text class="content">{{comment.commentContent}}</text>
 				  <view style="position: relative;">
 					<text class="time">{{formatTime(comment.createTime)}}</text>
@@ -205,8 +205,8 @@
 				  <view class="reply-content">
 					<view style="display: flex;">
 						<image class="comment-reply-avatar" :src="reply.replyUserAvatar || '/static/default-avatar.png'"></image>
-						<text class="nickname">{{reply.userNickname}}</text>
-						<text v-if="reply.replyUserId && reply.masterCommentId !== reply.replyId" class="reply-to"><text style="margin-right: 10rpx;font-size: 28rpx;" class="iconfont">&#xe666;</text>{{reply.replyUserNickname}}</text>
+						<text class="nickname">{{reply.userNickname}}<text v-if="userId===comment.userId">(鎴�)</text></text>
+						<text v-if="reply.replyUserId && reply.masterCommentId !== reply.replyId" class="reply-to"><text style="margin-right: 10rpx;font-size: 28rpx;" class="iconfont">&#xe666;</text>{{reply.replyUserNickname}}<text v-if="userId===comment.userId">(鎴�)</text></text>
 					</view>
 					<text class="content">{{reply.commentContent}}</text>
 					<view class="reply-footer">
@@ -276,6 +276,7 @@
   },
   data() {
     return {
+		userId :'',
 		currentImgIndex: 0, // 鎾斁鍒扮鍑犲紶鍥�--绱㈠紩
 		currentGoodsIndex: 0, // 鎾斁鍒扮鍑犱釜鍟嗗搧--绱㈠紩
 		currentTime: 0,
@@ -359,6 +360,9 @@
     }
   },
   onShow() {
+	  if(!this.userId){
+		  this.getUserId()
+	  }
 	  // const token = storage.getAccessToken();
 	  // if (! token) {
 		 //  this.wxSilentLogin(() => {
@@ -368,6 +372,9 @@
 	  // 	  this.loadVideos();
 	  // }
 	  if (this.videoList.length < 1) {
+		  this.loading = false;
+		  this.videoNoMore = false;
+		  console.log('瑙﹀彂鏁版嵁鍔犺浇')
 		  this.loadVideos();
 	  }
 	  // 濡傛灉瑙嗛鎸変笅鏆傚仠鍚庡垏鎹㈤〉闈㈠啀鍥炲埌椤甸潰鏃讹紝鍙畻鏆傚仠鏃堕棿锛堝洜涓烘殏鍋滄椂闂村拰绂诲紑椤甸潰鏃堕棿鏄噸澶嶇殑锛屽彧绠椾竴涓級
@@ -380,6 +387,7 @@
   	this.startHidenTime = Date.now()
   },
   onLoad(option) {
+	
 	  console.log('-----------鍒嗕韩鍑虹殑鏁版嵁---------->',option)
 	  //澶勭悊鎵爜鍑烘潵鐨勮棰�
 	  this.marginBottom = uni.getSystemInfoSync().safeAreaInsets.bottom
@@ -439,6 +447,10 @@
   	}
   },
   methods: {  
+	  getUserId(){
+		  const {id} = uni.getStorageSync('user_info_obj_dev')
+		  this.userId = id;
+	  },
 	  // 瑙f瀽URL鍙傛暟
     parseUrlParams(url) {
       const params = {};
@@ -758,6 +770,7 @@
 		  getVideoComments(this.commentQuery).then(res => {
 			  this.commentsTotal = res.data.total;
 			  this.comments = res.data.data;
+			  console.log('------------------------>',this.comments)
 			  this.commentQuery.pageNumber += 2;
 			  this.commentQuery.pageSize /= 2;
 		  }).catch(() => {

--
Gitblit v1.8.0