feat:"完成页面接口的对接"

This commit is contained in:
2026-01-29 17:58:19 +08:00
parent 2774a539bf
commit 2b69da3c15
98 changed files with 9504 additions and 592 deletions

View File

@@ -6,8 +6,8 @@
export const ENV = {
// 开发环境
development: {
baseUrl: 'http://localhost:3000/api',
imageBaseUrl: 'http://localhost:3000'
baseUrl: 'http://192.168.1.43:3000/api',
imageBaseUrl: 'http://192.168.1.43:3000'
},
// 生产环境
production: {
@@ -67,7 +67,22 @@ export const SOFA_CATEGORIES = [
// 翻新服务类型
export const SERVICE_TYPES = [
{ id: 'repair', name: '局部修复', icon: '/static/icons/repair.png' },
{ id: 'recolor', name: '改色翻新', icon: '/static/icons/recolor.png' },
{ id: 'refurbish', name: '整体翻新', icon: '/static/icons/refurbish.png' },
{ id: 'custom', name: '定制换皮', icon: '/static/icons/custom.png' }
{ id: 'refurbish', name: '整体翻新', icon: '/static/icons/refurbish.png' }
]
/**
* 获取服务类型名称
*/
export const getServiceTypeName = (type : string) : string => {
const map : Map<string, string> = new Map([
['leather', '真皮翻新'],
['fabric', '布艺翻新'],
['functional', '功能维修'],
['antique', '古董修复'],
['office', '办公沙发'],
['cleaning', '清洁保养'],
['repair', '维修改装'],
['custom', '定制沙发']
])
return map.get(type) ?? type
}