feat: 同步管理端、用户端与后端业务,并接通线上 Web 接口

补齐平台订阅、外部登录、CRM 同步与用户端页面;Nginx 转发用户端接口,登录页使用 Google 与 Apple 标志。

Co-authored-by: Cursor <cursoragent@cursor.com>
这个提交包含在:
wikiboss
2026-09-23 18:01:47 +08:00
父节点 8ea9c25386
当前提交 62e0ae4435
共有 227 个文件被更改,包括 21855 次插入 和 5264 次删除

查看文件

@@ -80,7 +80,7 @@
<view class="metric-header-row">
<text class="metric-label">{{ t('metricTotal') }}</text>
<view class="metric-badge metric-badge-brand">
<text class="metric-badge-text">TOTAL</text>
<text class="metric-badge-text">{{ t('badgeTotal') }}</text>
</view>
</view>
<text class="metric-value text-brand">{{ state.summary.totalLeads }}</text>
@@ -96,7 +96,7 @@
<text class="metric-label text-hot">{{ t('metricHot') }}</text>
<view class="metric-badge metric-badge-hot">
<view class="hot-spark-dot"></view>
<text class="metric-badge-text text-hot">HOT</text>
<text class="metric-badge-text text-hot">{{ t('badgeHot') }}</text>
</view>
</view>
<text class="metric-value text-hot">{{ state.summary.hotLeads }}</text>
@@ -111,7 +111,7 @@
<view class="metric-header-row">
<text class="metric-label">{{ t('metricWon') }}</text>
<view class="metric-badge metric-badge-won">
<text class="metric-badge-text text-won">WON</text>
<text class="metric-badge-text text-won">{{ t('badgeWon') }}</text>
</view>
</view>
<text class="metric-value text-won">{{ state.summary.wonLeads }}</text>
@@ -126,7 +126,7 @@
<view class="metric-header-row">
<text class="metric-label">{{ t('metricRate') }}</text>
<view class="metric-badge metric-badge-rate">
<text class="metric-badge-text text-brand">CVR</text>
<text class="metric-badge-text text-brand">{{ t('badgeRate') }}</text>
</view>
</view>
<text class="metric-value text-brand">{{ state.summary.overallRate }}%</text>
@@ -142,7 +142,7 @@
<view class="card-header-bar">
<view class="card-title-group">
<text class="card-title">{{ t('funnelTitle') }}</text>
<text class="card-title-badge">4 STAGES</text>
<text class="card-title-badge">{{ t('funnelStages') }}</text>
</view>
</view>
@@ -196,7 +196,7 @@
<view class="channel-accent-dot" :class="'accent-dot-' + ch.source"></view>
<text class="channel-name">{{ ch.label }}</text>
</view>
<text class="channel-cvr-pill">{{ ch.conversionRate }}% CVR</text>
<text class="channel-cvr-pill">{{ ch.conversionRate }}% {{ t('badgeRate') }}</text>
</view>
<view class="channel-data-row">
@@ -295,17 +295,18 @@ const pageRtlClass = computed((): string => {
return isRtl(getCurrentLocale()) ? 'stats-rtl' : '';
});
/** R31: bar flex from API counts only; zero when empty, never fallback filler */
const healthHotFlex = computed((): number => {
return state.summary.hotLeads > 0 ? state.summary.hotLeads : 1;
return state.summary.hotLeads > 0 ? state.summary.hotLeads : 0;
});
const healthWarmFlex = computed((): number => {
const warm = state.summary.totalLeads - state.summary.hotLeads - state.summary.wonLeads;
return warm > 0 ? warm : 1;
return warm > 0 ? warm : 0;
});
const healthCoolFlex = computed((): number => {
return 1;
return 0;
});
function t(key: string): string {