feat: disable user messaging and retain公益 service guidance
CI/CD Pipeline / Test Shell Guard (Phase 23 Gate) (push) Canceled after 0s
CI/CD Pipeline / Backend Build & Test (push) Canceled after 0s
CI/CD Pipeline / Admin Web Build (push) Canceled after 0s
CI/CD Pipeline / Mini Program Compile Check (push) Canceled after 0s
CI/CD Pipeline / Migration Validation (push) Canceled after 0s
CI/CD Pipeline / UI Contracts (source-structure gates) (push) Canceled after 0s
CI/CD Pipeline / E2E (live stack) (push) Canceled after 0s

This commit is contained in:
WorkBuddy
2026-10-15 13:38:17 +08:00
parent 3c2b967274
commit 8b505d9133
37 changed files with 150 additions and 189 deletions
+2 -10
View File
@@ -141,12 +141,7 @@ Page({
wx.navigateTo({ url: to.detail(userId) });
},
/** 互相喜欢 → 开始聊天(已 Mutual,符合第 3 条) */
onStartChat(e) {
const conversationId = e.currentTarget.dataset.conversationId;
if (!conversationId) return;
wx.navigateTo({ url: to.chat(conversationId) });
},
/** 互相喜欢 → 查看资料和公益服务 */
/**
* 喜欢我的人 → 喜欢 TA(like-back)
@@ -163,12 +158,9 @@ Page({
likersList: matchStore.state.likersList.filter((u) => u.userId !== userId),
});
if (result && result.mutualMatch) {
appStore.toastSuccess('双向喜欢!可以开始聊天了');
appStore.toastSuccess('双向意向匹配成功,可查看公益服务');
// 刷新互相喜欢列表
try { await matchStore.fetchMutualList({ pageSize: PAGE_SIZE }); } catch (e2) { /* ignore */ }
if (result.matchedConversationId) {
wx.navigateTo({ url: to.chat(result.matchedConversationId) });
}
} else {
appStore.toastSuccess('已表达喜欢');
}
+2 -2
View File
@@ -34,7 +34,7 @@
<view class="item" wx:for="{{mutualList}}" wx:key="conversationId">
<ui-user-card user="{{item}}" bind:tap="onViewDetail">
<view slot="actions">
<button class="btn-primary" catchtap="onStartChat" data-conversation-id="{{item.conversationId}}">开始聊天</button>
<button class="btn-primary" catchtap="onViewDetail" data-user-id="{{item.userId}}">查看资料</button>
</view>
</ui-user-card>
</view>
@@ -45,7 +45,7 @@
wx:else
illustration="heart"
title="还没有互相喜欢的人"
description="去「找对象」遇见合适的人,互相喜欢就能聊天啦"
description="去「找对象」遇见合适的人,双方匹配后可查看公益服务"
actions="{{[{text:'去「找对象', event:'discover', variant:'primary'}]}}"
bind:action="onEmptyAction"
/>