增加录音功能调整页面布局。

This commit is contained in:
zhonghua.li
2026-04-16 09:20:13 +08:00
parent 826d9082ad
commit 8f556e2168
11 changed files with 222 additions and 48 deletions

View File

@@ -18,47 +18,47 @@
<view class="content">
<!-- 功能分类展示 -->
<scroll-view class="content-scroll" scroll-y="true" :style="{ top: computedContentTop || contentTop, bottom: contentBottom || '96rpx' }">
<!-- 接待页面快捷入口 -->
<!-- 接待 -->
<view class="category-section quick-links-section">
<view class="category-header">
<text class="category-icon">🚀</text>
<text class="category-title">接待页面快捷入口</text>
<text class="category-title">接待</text>
</view>
<view class="function-grid">
<view class="function-item" @click="quickJumpReceptionTab('status')">
<view class="function-icon">📋</view>
<text class="function-name">服务状态</text>
<text class="function-desc">跳转到接待页服务状态tab</text>
</view>
<view class="function-item" @click="quickJumpReceptionTab('reception')">
<view class="function-icon">🤝</view>
<text class="function-name">开始接待</text>
<text class="function-desc">跳转到接待页开始接待tab</text>
<text class="function-desc"></text>
</view>
<view class="function-item" @click="quickJumpReceptionTab('status')">
<view class="function-icon">📋</view>
<text class="function-name">服务状态</text>
<text class="function-desc"></text>
</view>
<view class="function-item" @click="quickJumpReceptionTab('tag')">
<view class="function-icon">🏷</view>
<text class="function-name">标签管理</text>
<text class="function-desc">跳转到接待页标签管理tab</text>
<text class="function-desc"></text>
</view>
</view>
</view>
<!-- 客户页面快捷入口 -->
<!-- AI分析 -->
<view class="category-section two-column">
<view class="category-header">
<text class="category-icon">👤</text>
<text class="category-title">客户页面快捷入口</text>
<text class="category-title">AI分析</text>
</view>
<view class="function-grid">
<view class="function-item" @click="quickJumpCustomerTab('service')">
<view class="function-icon">📝</view>
<text class="function-name">服务记录</text>
<text class="function-desc">跳转到客户页服务记录tab</text>
</view>
<view class="function-item" @click="quickJumpCustomerTab('customer')">
<view class="function-icon">👥</view>
<text class="function-name">客户列表</text>
<text class="function-desc">跳转到客户页客户列表tab</text>
<text class="function-desc"></text>
</view>
<view class="function-item" @click="quickJumpCustomerTab('service')">
<view class="function-icon">📝</view>
<text class="function-name">服务记录</text>
<text class="function-desc"></text>
</view>
</view>
</view>
@@ -73,12 +73,12 @@
<view class="function-item" @click="navigateToPage('recording_duration')">
<view class="function-icon"></view>
<text class="function-name">录音时长</text>
<text class="function-desc">统计录音总时长</text>
<text class="function-desc"></text>
</view>
<view class="function-item" @click="navigateToPage('customer_count')">
<view class="function-icon">👥</view>
<text class="function-name">接待客户数</text>
<text class="function-desc">统计接待客户数量</text>
<text class="function-desc"></text>
</view>
</view>
</view>
@@ -93,12 +93,12 @@
<view class="function-item" @click="showQualityCoveragePopup">
<view class="function-icon">📊</view>
<text class="function-name">质检覆盖率</text>
<text class="function-desc">质检录音覆盖统计</text>
<text class="function-desc"></text>
</view>
<view class="function-item" @click="navigateToPage('speech_rating')">
<view class="function-icon">🗣</view>
<text class="function-name">员工话术评分</text>
<text class="function-desc">员工沟通质量评分</text>
<text class="function-desc"></text>
</view>
</view>
</view>
@@ -113,17 +113,17 @@
<view class="function-item full-row-item" @click="navigateToPage('intent_level')">
<view class="function-icon">🎯</view>
<text class="function-name">客户意向分级</text>
<text class="function-desc">客户购买意向分析</text>
<text class="function-desc"></text>
</view>
<view class="function-item full-row-item" @click="navigateToPage('deal_attribution')">
<view class="function-icon">💰</view>
<text class="function-name">成交归因</text>
<text class="function-desc">成交成功因素分析</text>
<text class="function-desc"></text>
</view>
<view class="function-item full-row-item new-line-item" @click="navigateToPage('opening_rate')">
<view class="function-icon">🚪</view>
<text class="function-name">开口率</text>
<text class="function-desc">客户主动开口统计</text>
<text class="function-desc"></text>
</view>
</view>
</view>
@@ -138,12 +138,12 @@
<view class="function-item" @click="navigateToPage('over_commitment')">
<view class="function-icon">🚨</view>
<text class="function-name">过度承诺统计</text>
<text class="function-desc">监控过度承诺情况</text>
<text class="function-desc"></text>
</view>
<view class="function-item" @click="navigateToPage('red_line_touch')">
<view class="function-icon">🔴</view>
<text class="function-name">触及红线统计</text>
<text class="function-desc">违规行为监控统计</text>
<text class="function-desc"></text>
</view>
</view>
</view>

View File

@@ -26,7 +26,11 @@ export default {
const allowed = ['status', 'reception', 'tag'];
const tab = (uni.getStorageSync('workbench-reception-tab') || '').toString();
if (allowed.includes(tab)) {
this.incomingTab = tab;
// 先清空再赋值,确保同一个 tabKey 也能触发子组件 watcher
this.incomingTab = '';
this.$nextTick(() => {
this.incomingTab = tab;
});
uni.removeStorageSync('workbench-reception-tab');
}
} catch (e) {

View File

@@ -27,6 +27,10 @@
<text class="info-label">当前角色</text>
<text class="info-value">{{loginUserInfo.roleName || '未设置'}}</text>
</view>
<view class="info-row">
<text class="info-label">场景</text>
<text class="info-value">{{loginUserInfo.scenario || '未设置'}}</text>
</view>
<view class="info-row" v-if="loginUserInfo.phone">
<text class="info-label">手机号</text>
<text class="info-value">{{loginUserInfo.phone}}</text>
@@ -299,6 +303,7 @@
this.loginUserInfo = {
userName: loginResponse.userName || '',
roleName: loginResponse.roleName || '',
scenario: loginResponse.scenario || uni.getStorageSync('backend-scenario') || '',
phone: loginResponse.phone || '',
email: loginResponse.email || '',
userId: loginResponse.userId || ''