| 
					
				 | 
			
			
				@@ -117,41 +117,41 @@ Component({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.setData({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 profile1List2, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if (profile1List2.length != 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                console.log('信息', this.data.profile1List2); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                let Profilequery = new Parse.Query('AIMoment'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                Profilequery.equalTo('company', company); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                Profilequery.equalTo('isVisible', true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                Profilequery.notEqualTo('isDeleted', true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                Profilequery.equalTo('profile', profile1List2[0].objectId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                Profilequery.descending('createdAt'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                let moments = await Profilequery.find(); // 查找所有动态 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                if (moments.length) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    this.setData({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        circlecount: moments.length 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    // 获取所有动态的ID 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    let momentIds = moments.map(moment => moment.id); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    // 创建对 AIMomentLike 表的查询 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    let LikeQuery = new Parse.Query('AIMomentLike'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    LikeQuery.equalTo('isLiked', true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    LikeQuery.equalTo('company', company); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    LikeQuery.notEqualTo('isDeleted', true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    LikeQuery.containedIn('moment', momentIds); // 使用 containedIn 来一次性查询多个动态的点赞 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    // 统计点赞数量 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    let likesCount = await LikeQuery.count(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    // 这里可以进一步处理 likesCount,按动态分配点赞数量 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    console.log(`总点赞数量: ${likesCount}`); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    this.setData({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        likesCount, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            console.log('信息', this.data.profile1List2); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            let Profilequery = new Parse.Query('AIMoment'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            Profilequery.equalTo('company', company); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            Profilequery.equalTo('isVisible', true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            Profilequery.notEqualTo('isDeleted', true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // Profilequery.equalTo('profile', profile1List2[0].objectId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            Profilequery.equalTo('user', currentUser.id); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            Profilequery.descending('createdAt'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            let moments = await Profilequery.find(); // 查找所有动态 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (moments.length) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.setData({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    circlecount: moments.length 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                // 获取所有动态的ID 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                let momentIds = moments.map(moment => moment.id); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                // 创建对 AIMomentLike 表的查询 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                let LikeQuery = new Parse.Query('AIMomentLike'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                LikeQuery.equalTo('isLiked', true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                LikeQuery.equalTo('company', company); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                LikeQuery.notEqualTo('isDeleted', true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                LikeQuery.containedIn('moment', momentIds); // 使用 containedIn 来一次性查询多个动态的点赞 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                // 统计点赞数量 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                let likesCount = await LikeQuery.count(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                // 这里可以进一步处理 likesCount,按动态分配点赞数量 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                console.log(`总点赞数量: ${likesCount}`); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.setData({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    likesCount, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }, 
			 |