继续完善快速导航

This commit is contained in:
zhonghua.li
2026-04-15 17:17:06 +08:00
parent abe8672079
commit 446cba9cf0
2 changed files with 100 additions and 0 deletions

View File

@@ -18,6 +18,51 @@
<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>
</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>
</view>
<view class="function-item" @click="quickJumpReceptionTab('tag')">
<view class="function-icon">🏷</view>
<text class="function-name">标签管理</text>
<text class="function-desc">跳转到接待页标签管理tab</text>
</view>
</view>
</view>
<!-- 客户页面快捷入口 -->
<view class="category-section two-column">
<view class="category-header">
<text class="category-icon">👤</text>
<text class="category-title">客户页面快捷入口</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>
</view>
</view>
</view>
<!-- 录音和接待统计 -->
<view class="category-section two-column">
<view class="category-header">
@@ -389,6 +434,43 @@ export default {
})
}
})
},
quickJumpReceptionTab(tabKey) {
const allowedTabs = ['status', 'reception', 'tag'];
if (!allowedTabs.includes(tabKey)) {
return;
}
try {
uni.setStorageSync('workbench-reception-tab', tabKey);
} catch (e) {
console.warn('[AIAnalysis] 写入接待tab快捷跳转参数失败:', e);
}
uni.switchTab({
url: '/pages/furniture_reception/furniture_reception',
fail: (err) => {
console.error('[AIAnalysis] 快捷跳转接待页失败:', err);
uni.showToast({
title: '跳转失败,请稍后重试',
icon: 'none'
});
}
});
},
quickJumpCustomerTab(tabKey) {
const allowedTabs = ['service', 'customer'];
if (!allowedTabs.includes(tabKey)) {
return;
}
uni.navigateTo({
url: `/pages-subpackage/furniture_customer/furniture_customer?tab=${tabKey}`,
fail: (err) => {
console.error('[AIAnalysis] 快捷跳转客户页失败:', err);
uni.showToast({
title: '跳转失败,请稍后重试',
icon: 'none'
});
}
});
}
}
}
@@ -500,6 +582,19 @@ page {
padding: 10rpx;
}
.quick-links-section .function-item {
width: calc(33.333% - 10rpx);
background: #FFFFFF;
border-radius: 12rpx;
padding: 24rpx 12rpx;
margin: 5rpx;
text-align: center;
box-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.04);
transition: all 0.3s ease;
border: 1rpx solid #F0F0F0;
box-sizing: border-box;
}
/* 两列布局的分类 */
.two-column .function-item {
flex: 1;

View File

@@ -23,6 +23,10 @@
<text class="info-label">用户名</text>
<text class="info-value">{{loginUserInfo.userName || '未设置'}}</text>
</view>
<view class="info-row">
<text class="info-label">当前角色</text>
<text class="info-value">{{loginUserInfo.roleName || '未设置'}}</text>
</view>
<view class="info-row" v-if="loginUserInfo.phone">
<text class="info-label">手机号</text>
<text class="info-value">{{loginUserInfo.phone}}</text>
@@ -294,6 +298,7 @@
const loginResponse = uni.getStorageSync('backend-login-response') || {}
this.loginUserInfo = {
userName: loginResponse.userName || '',
roleName: loginResponse.roleName || '',
phone: loginResponse.phone || '',
email: loginResponse.email || '',
userId: loginResponse.userId || ''