feat(crm): 新增独立潜客经营与漏斗统计中心(pages/owner/stats.uvue),解耦高频潜客管理并支持全渠道转化分析
这个提交包含在:
@@ -18,6 +18,9 @@
|
||||
<view class="radar-hot-dot"></view>
|
||||
<text class="radar-hot-text">{{ hotUnreadText }}</text>
|
||||
</view>
|
||||
<view class="header-stats-btn" @click="openStats">
|
||||
<text class="header-stats-text">{{ statsLabel }}</text>
|
||||
</view>
|
||||
<view class="header-refresh-btn" @click="handleSearch">
|
||||
<text class="header-refresh-text">{{ refreshText }}</text>
|
||||
</view>
|
||||
@@ -285,6 +288,10 @@ const hotUnreadText = computed((): string => {
|
||||
return formatHotUnread(state.hotUnread);
|
||||
});
|
||||
|
||||
const statsLabel = computed((): string => {
|
||||
return getCurrentLocale() === 'zh-CN' ? '统计' : 'Stats';
|
||||
});
|
||||
|
||||
const leadsCountSummary = computed((): string => {
|
||||
const count = state.total > 0 ? state.total : state.list.length;
|
||||
return `${count}`;
|
||||
@@ -423,6 +430,12 @@ function openRadar(): void {
|
||||
openRadarPage();
|
||||
}
|
||||
|
||||
function openStats(): void {
|
||||
uni.navigateTo({
|
||||
url: '/pages/owner/stats',
|
||||
});
|
||||
}
|
||||
|
||||
async function handleSearch(): Promise<void> {
|
||||
await refreshLeads(state);
|
||||
}
|
||||
@@ -541,6 +554,28 @@ onShow(() => {
|
||||
color: var(--oc-error, #F04438);
|
||||
}
|
||||
|
||||
.header-stats-btn {
|
||||
min-height: 32px;
|
||||
padding-inline: 10px;
|
||||
background-color: var(--oc-primary-soft, #EBF5FF);
|
||||
border: 1px solid #B2DDFF;
|
||||
border-radius: var(--oc-radius-btn, 14px);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: opacity 150ms cubic-bezier(0.2, 0.8, 0.2, 1);
|
||||
}
|
||||
|
||||
.header-stats-btn:active {
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
.header-stats-text {
|
||||
font-size: 12px;
|
||||
color: var(--oc-primary, #0B5CFF);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.header-refresh-btn {
|
||||
min-height: 32px;
|
||||
padding-inline: 10px;
|
||||
|
||||
在新工单中引用
屏蔽一个用户