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
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:
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
const { authStore, appStore, matchStore } = require('../../stores')
|
||||
const api = require('../../utils/api')
|
||||
// 顶部安全区:实测右上角胶囊按钮矩形,避免品牌栏「消息」入口被胶囊压住(见 utils/nav-metrics.js)
|
||||
// 顶部安全区:实测右上角胶囊按钮矩形,避免品牌栏入口被胶囊压住(见 utils/nav-metrics.js)
|
||||
const { navSafeData } = require('../../utils/nav-metrics')
|
||||
|
||||
// 4×2 宫格的视觉映射(tone → index.wxss 的 .tone-* 渐变砖;subtitle → 主标题下的说明行)。
|
||||
@@ -244,10 +244,7 @@ Page({
|
||||
const result = await matchStore.like(userId)
|
||||
this.setData({ recommendations: this.data.recommendations.filter((item) => item.userId !== userId) })
|
||||
if (result?.mutualMatch) {
|
||||
appStore.toastSuccess('双向喜欢!可以开始聊天了')
|
||||
if (result.matchedConversationId) {
|
||||
wx.navigateTo({ url: `/pages/chat/chat?id=${result.matchedConversationId}` })
|
||||
}
|
||||
appStore.toastSuccess('双向意向匹配成功,可查看公益服务')
|
||||
} else {
|
||||
appStore.toastSuccess('已表达喜欢')
|
||||
}
|
||||
@@ -327,7 +324,7 @@ Page({
|
||||
wx.navigateTo({ url: '/pages/anti-fraud/anti-fraud' })
|
||||
},
|
||||
onArticleTap(e) { wx.navigateTo({ url: `/pages/content-detail/content-detail?id=${e.currentTarget.dataset.id}` }) },
|
||||
onMessages() { wx.switchTab({ url: '/pages/messages/messages' }) },
|
||||
onMessages() { wx.navigateTo({ url: '/pages/notifications/notifications' }) },
|
||||
|
||||
formatDate(timestamp) {
|
||||
if (!timestamp) return ''
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="brand-actions" bindtap="onMessages">
|
||||
<text class="message-label">消息</text>
|
||||
<text class="message-label">通知</text>
|
||||
<text wx:if="{{unreadCount}}" class="badge">{{unreadCount}}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user