|
|
@@ -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) {
|