chore: 清理敏感与开发文档,仅同步代码

- 永久忽略并从仓库移除 开发文档/
- 移除并忽略 .env 与小程序私有配置
- 同步小程序/管理端/API与脚本改动

Made-with: Cursor
This commit is contained in:
卡若
2026-03-17 17:50:12 +08:00
parent 868b0a10d9
commit 76965adb23
443 changed files with 24175 additions and 64154 deletions

View File

@@ -5,6 +5,7 @@
*/
const app = getApp()
const { checkAndExecute } = require('../../utils/ruleEngine.js')
// 默认匹配类型配置
// 找伙伴:真正的匹配功能,匹配数据库中的真实用户
@@ -74,13 +75,16 @@ Page({
// 匹配价格(可配置)
matchPrice: 1,
extraMatches: 0
extraMatches: 0,
auditMode: false
},
onLoad() {
wx.showShareMenu({ withShareTimeline: true })
this.setData({
statusBarHeight: app.globalData.statusBarHeight || 44
statusBarHeight: app.globalData.statusBarHeight || 44,
auditMode: app.globalData.auditMode
})
this.loadMatchConfig()
this.loadStoredContact()
@@ -511,6 +515,8 @@ Page({
}
}
})
// 匹配后规则:引导填写 MBTI/行业信息
checkAndExecute('after_match', this)
} catch (e) {
console.log('上报匹配失败:', e)
}
@@ -744,9 +750,9 @@ Page({
wx.switchTab({ url: '/pages/chapters/chapters' })
},
// 打开设置
// 打开资料修改页(找伙伴右上角图标)
openSettings() {
wx.navigateTo({ url: '/pages/settings/settings' })
wx.navigateTo({ url: '/pages/profile-edit/profile-edit' })
},
// 阻止事件冒泡

View File

@@ -4,9 +4,7 @@
<!-- 自定义导航栏 -->
<view class="nav-bar" style="padding-top: {{statusBarHeight}}px;">
<view class="nav-content">
<view class="nav-settings" bindtap="openSettings">
<text class="settings-icon">⚙️</text>
</view>
<view class="nav-left-placeholder"></view>
<text class="nav-title">找伙伴</text>
<view class="nav-right-placeholder"></view>
</view>
@@ -17,11 +15,15 @@
<view style="height: 30rpx;"></view>
<!-- 匹配提示条 - 简化显示 -->
<view class="match-tip-bar" wx:if="{{matchesRemaining <= 0 && !hasFullBook}}">
<view class="match-tip-bar" wx:if="{{matchesRemaining <= 0 && !hasFullBook && !auditMode}}">
<text class="tip-icon">⚡</text>
<text class="tip-text">今日免费次数已用完</text>
<view class="tip-btn" bindtap="showUnlockModal">购买次数</view>
</view>
<view class="match-tip-bar" wx:if="{{matchesRemaining <= 0 && !hasFullBook && auditMode}}">
<text class="tip-icon">⚡</text>
<text class="tip-text">今日免费次数已用完,明天再来</text>
</view>
<!-- 主内容区 -->
<view class="main-content">
@@ -37,11 +39,16 @@
<view class="inner-sphere sphere-active">
<view class="sphere-gradient"></view>
<view class="sphere-content">
<block wx:if="{{needPayToMatch}}">
<block wx:if="{{needPayToMatch && !auditMode}}">
<text class="sphere-icon">⚡</text>
<text class="sphere-title gold-text">购买次数</text>
<text class="sphere-desc">¥1 = 1次匹配</text>
</block>
<block wx:elif="{{needPayToMatch && auditMode}}">
<text class="sphere-icon">⏳</text>
<text class="sphere-title">明天再来</text>
<text class="sphere-desc">今日次数已用完</text>
</block>
<block wx:else>
<text class="sphere-icon">👥</text>
<text class="sphere-title">开始匹配</text>
@@ -298,8 +305,8 @@
</view>
</view>
<!-- 解锁弹窗 -->
<view class="modal-overlay" wx:if="{{showUnlockModal}}" bindtap="closeUnlockModal">
<!-- 解锁弹窗(审核模式不展示) -->
<view class="modal-overlay" wx:if="{{showUnlockModal && !auditMode}}" bindtap="closeUnlockModal">
<view class="modal-content unlock-modal" catchtap="preventBubble">
<view class="unlock-icon">⚡</view>
<text class="unlock-title">购买匹配次数</text>

View File

@@ -27,15 +27,9 @@
padding: 0 32rpx;
}
.nav-settings {
.nav-left-placeholder {
width: 80rpx;
height: 80rpx;
flex-shrink: 0;
border-radius: 50%;
background: #1c1c1e;
display: flex;
align-items: center;
justify-content: center;
}
.nav-title {
@@ -51,10 +45,6 @@
flex-shrink: 0;
}
.settings-icon {
font-size: 36rpx;
}
.nav-placeholder {
width: 100%;
}