feat(match): 组织者卡片与其他成员一致显示推荐度与匹配理由,点卡片进合作分析,「主题分析 ›」改为卡片内独立入口
This commit is contained in:
@@ -132,17 +132,13 @@ Page({
|
||||
}
|
||||
},
|
||||
|
||||
// 点击拆约推荐列表项:自己→完善资料;组织者→主题分析;其他→合作分析
|
||||
// 点击拆约推荐列表项:自己→完善资料;其余(含组织者)→合作分析
|
||||
onMatchItemTap(e) {
|
||||
const { userId, self, organizer } = e.currentTarget.dataset;
|
||||
const { userId, self } = e.currentTarget.dataset;
|
||||
if (self) {
|
||||
wx.navigateTo({ url: '/pages/edit-profile/index' });
|
||||
return;
|
||||
}
|
||||
if (organizer) {
|
||||
this.showThemeAnalysis();
|
||||
return;
|
||||
}
|
||||
if (!this.data.isLoggedIn) {
|
||||
wx.showToast({ title: '登录后可查看合作分析', icon: 'none' });
|
||||
return;
|
||||
@@ -156,6 +152,11 @@ Page({
|
||||
});
|
||||
},
|
||||
|
||||
// 组织者卡片上的「主题分析 ›」入口
|
||||
onThemeTap() {
|
||||
this.showThemeAnalysis();
|
||||
},
|
||||
|
||||
// 组织者主题分析(有缓存用缓存,无则请求)
|
||||
async showThemeAnalysis() {
|
||||
if (this.data.themeAnalysis) {
|
||||
|
||||
@@ -104,8 +104,15 @@
|
||||
<text class="ai-match-hint">点击补充</text>
|
||||
</block>
|
||||
<block wx:elif="{{item.isOrganizer}}">
|
||||
<text class="ai-match-action">主题分析</text>
|
||||
<text class="ai-match-hint">点击查看</text>
|
||||
<block wx:if="{{item.matchScore !== null && item.matchScore !== undefined}}">
|
||||
<text class="ai-match-score">{{item.matchScore}}%</text>
|
||||
<text class="ai-match-label">{{item.matchLabel}}</text>
|
||||
</block>
|
||||
<block wx:else>
|
||||
<text class="ai-match-action">主题分析</text>
|
||||
<text class="ai-match-hint">点击查看</text>
|
||||
</block>
|
||||
<text class="ai-match-theme" catchtap="onThemeTap">主题分析 ›</text>
|
||||
</block>
|
||||
<block wx:elif="{{item.matchScore !== null && item.matchScore !== undefined}}">
|
||||
<text class="ai-match-score">{{item.matchScore}}%</text>
|
||||
@@ -118,8 +125,8 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 匹配理由(自己/组织者不显示) -->
|
||||
<view class="ai-suggestion-box" wx:if="{{!item.isSelf && !item.isOrganizer && item.aiSuggestion}}">
|
||||
<!-- 匹配理由(仅自己不显示) -->
|
||||
<view class="ai-suggestion-box" wx:if="{{!item.isSelf && item.aiSuggestion}}">
|
||||
<view class="ai-suggestion-header">
|
||||
<text class="ai-suggestion-icon">🤝</text>
|
||||
<text class="ai-suggestion-content">{{item.aiSuggestion}}</text>
|
||||
|
||||
@@ -299,6 +299,13 @@
|
||||
margin-top: 2rpx;
|
||||
}
|
||||
|
||||
.ai-match-theme {
|
||||
font-size: 20rpx;
|
||||
color: #b8860b;
|
||||
margin-top: 6rpx;
|
||||
padding: 4rpx 0;
|
||||
}
|
||||
|
||||
.ai-participant-card.is-self {
|
||||
background-color: #f5faff;
|
||||
border: 1rpx solid #d4e7fa;
|
||||
|
||||
Reference in New Issue
Block a user