Browse Source

feat(recommend): 移除喜欢用户后的聊天确认弹窗

- 移除了喜欢用户后显示的聊天确认对话框
- 直接显示已记录的成功提示
- 简化了用户喜欢操作的交互流程
李思佳 2 weeks ago
parent
commit
ec9f23dbb0
1 changed files with 2 additions and 17 deletions
  1. 2 17
      LiangZhiYUMao/pages/recommend/index.vue

+ 2 - 17
LiangZhiYUMao/pages/recommend/index.vue

@@ -730,27 +730,12 @@ export default {
 			if(u.userId){ 
 				try {
 					await api.recommend.feedback({ userId: uid, targetUserId: u.userId, type: 'like' });
+					// 直接显示成功提示,不弹出聊天确认框
+					uni.showToast({ title:'已记录', icon:'success' });
 				} catch(e) {
 					console.error('反馈失败', e);
 				}
 			}
-			
-			// 显示选择弹窗
-			uni.showModal({
-				title: '已喜欢 ❤️',
-				content: `你喜欢了 ${u.nickname || '该用户'},要立即发消息吗?`,
-				confirmText: '发消息',
-				cancelText: '继续浏览',
-				success: (res) => {
-					if (res.confirm) {
-						// 跳转到聊天页面
-						this.openChat(u);
-					} else {
-						// 继续浏览,显示成功提示
-						uni.showToast({ title:'已记录', icon:'success' });
-					}
-				}
-			});
 		},
 		
 		async openChat(user) {