feat(web): 增强消息提醒声音与语音朗读
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { Button, Form, Spin, Switch } from 'antd'
|
||||
import type { FormInstance } from 'antd'
|
||||
import NotificationPreferences from '@/components/common/NotificationPreferences'
|
||||
import type { SaveSettingsFn } from './types'
|
||||
|
||||
interface NotifySectionProps {
|
||||
@@ -12,7 +13,8 @@ interface NotifySectionProps {
|
||||
/** 通知设置:新会话、留言与日报偏好 */
|
||||
const NotifySection = ({ notifyForm, loading, saving, onSave }: NotifySectionProps) => {
|
||||
return (
|
||||
<div className="bg-white rounded-2xl border border-slate-200/80 shadow-xs p-6 md:p-8">
|
||||
<>
|
||||
<div className="bg-white rounded-2xl border border-slate-200/80 shadow-xs p-6 md:p-8">
|
||||
{loading ? (
|
||||
<div className="py-16 text-center"><Spin /></div>
|
||||
) : (
|
||||
@@ -32,7 +34,7 @@ const NotifySection = ({ notifyForm, loading, saving, onSave }: NotifySectionPro
|
||||
|
||||
<div className="space-y-3 mb-6">
|
||||
{[
|
||||
{ name: 'notify_new_session', title: '新会话提醒', desc: '有新访客进线时提醒;浏览器通知与声音可在工作台铃铛中配置' },
|
||||
{ name: 'notify_new_session', title: '新会话提醒', desc: '有新访客进线时提醒;声音、朗读与浏览器通知可在下方本机设置中调整' },
|
||||
{ name: 'notify_offline_leave', title: '离线留言通知', desc: '访客在离线时段提交留言时发送系统提醒' },
|
||||
{ name: 'notify_daily_report', title: '服务日报推送', desc: '每日定时汇总推送坐席接待与满意度数据摘要' },
|
||||
].map(item => (
|
||||
@@ -63,7 +65,12 @@ const NotifySection = ({ notifyForm, loading, saving, onSave }: NotifySectionPro
|
||||
</div>
|
||||
</Form>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="mt-5">
|
||||
<NotificationPreferences />
|
||||
</div>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ export const tabGroups: TabGroup[] = [
|
||||
groupName: '自动化与通知',
|
||||
items: [
|
||||
{ key: 'autoreply', label: '自动回复', desc: '多段欢迎语(含图片)与离线留言提示', icon: <MessageOutlined /> },
|
||||
{ key: 'notify', label: '通知设置', desc: '新会话、留言与日报偏好', icon: <BellOutlined /> },
|
||||
{ key: 'notify', label: '通知设置', desc: '声音、朗读、新会话与留言提醒', icon: <BellOutlined /> },
|
||||
],
|
||||
},
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user