first commit
This commit is contained in:
114
src/config/inquireCategories.js
Normal file
114
src/config/inquireCategories.js
Normal file
@@ -0,0 +1,114 @@
|
||||
/**
|
||||
* 与 tyc-webview-v2 `inquireCategories.js` 对齐的二级分类(当前首页使用 vehicle)
|
||||
*/
|
||||
export const inquireCategoryConfig = {
|
||||
/** 车辆查询 */
|
||||
vehicle: {
|
||||
title: '车辆查询',
|
||||
banner: 'car_banner.png',
|
||||
items: [
|
||||
{
|
||||
name: '名下车辆查询',
|
||||
feature: 'toc_VehiclesUnderName',
|
||||
desc: '个人名下车辆信息',
|
||||
icon: 'mxcl_icon.svg',
|
||||
iconFrom: 'category',
|
||||
},
|
||||
{
|
||||
name: '人车核验(简版)',
|
||||
feature: 'toc_PersonVehicleVerification',
|
||||
desc: '根据车牌与号牌类型核验车辆与人员是否匹配',
|
||||
icon: 'rchyjb.svg',
|
||||
iconFrom: 'category',
|
||||
},
|
||||
{
|
||||
name: '人车核验(详版)',
|
||||
feature: 'toc_PersonVehicleVerificationDetail',
|
||||
desc: '提供更丰富的人车匹配详细信息',
|
||||
icon: 'rchyxb.svg',
|
||||
iconFrom: 'category',
|
||||
},
|
||||
{
|
||||
name: '名下车辆(车牌)',
|
||||
feature: 'toc_VehiclesUnderNamePlate',
|
||||
desc: '按身份证与姓名查询名下车辆信息',
|
||||
icon: 'mxcl_icon.svg',
|
||||
iconFrom: 'category',
|
||||
},
|
||||
{
|
||||
name: '名下车辆(数量)',
|
||||
feature: 'toc_VehiclesUnderNameCount',
|
||||
desc: '查询名下车辆数量',
|
||||
icon: 'mxcl_icon.svg',
|
||||
iconFrom: 'category',
|
||||
},
|
||||
{
|
||||
name: '车辆静态信息查询',
|
||||
feature: 'toc_VehicleStaticInfo',
|
||||
desc: '车辆静态信息',
|
||||
icon: 'clxx.svg',
|
||||
iconFrom: 'category',
|
||||
},
|
||||
{
|
||||
name: '车辆里程记录(混合查询)',
|
||||
feature: 'toc_VehicleMileageMixed',
|
||||
desc: '车辆里程混合查询',
|
||||
icon: 'clcx.svg',
|
||||
iconFrom: 'category',
|
||||
},
|
||||
{
|
||||
name: '二手车VIN估值',
|
||||
feature: 'toc_VehicleVinValuation',
|
||||
desc: '按VIN查询二手车估值',
|
||||
icon: 'escgz.svg',
|
||||
iconFrom: 'category',
|
||||
},
|
||||
{
|
||||
name: '车辆过户简版查询',
|
||||
feature: 'toc_VehicleTransferSimple',
|
||||
desc: '车辆过户简版',
|
||||
icon: 'esc.svg',
|
||||
iconFrom: 'category',
|
||||
},
|
||||
{
|
||||
name: '车辆过户详版查询',
|
||||
feature: 'toc_VehicleTransferDetail',
|
||||
desc: '车辆过户详版',
|
||||
icon: 'esc.svg',
|
||||
iconFrom: 'category',
|
||||
},
|
||||
{
|
||||
name: '车辆维保简版查询',
|
||||
feature: 'toc_VehicleMaintenanceSimple',
|
||||
desc: '车辆维保简版',
|
||||
icon: 'clxx.svg',
|
||||
iconFrom: 'category',
|
||||
},
|
||||
{
|
||||
name: '车辆出险记录核验',
|
||||
feature: 'toc_VehicleClaimVerify',
|
||||
desc: '车辆出险记录核验',
|
||||
icon: 'cxcl.svg',
|
||||
iconFrom: 'category',
|
||||
},
|
||||
],
|
||||
},
|
||||
}
|
||||
|
||||
export function getInquireCategoryConfig(category) {
|
||||
return inquireCategoryConfig[category] || null
|
||||
}
|
||||
|
||||
export function getInquireCategoryTitle(category) {
|
||||
const c = inquireCategoryConfig[category]
|
||||
return c ? c.title : '选择查询'
|
||||
}
|
||||
|
||||
/** 列表图标:与 H5 `InquireCategory.vue` 的 `/inquire_icons/` + category 映射等效,统一走 static */
|
||||
export function getInquiryItemIconUrl(item) {
|
||||
if (!item?.icon)
|
||||
return '/static/home/icons/icon-claim-detail.svg'
|
||||
if (item.iconFrom === 'category')
|
||||
return `/static/inquire/category/${item.icon}`
|
||||
return `/static/inquire/category/${item.icon}`
|
||||
}
|
||||
2148
src/config/toolboxRegistry.js
Normal file
2148
src/config/toolboxRegistry.js
Normal file
File diff suppressed because it is too large
Load Diff
46
src/config/vehicleReportRegistry.js
Normal file
46
src/config/vehicleReportRegistry.js
Normal file
@@ -0,0 +1,46 @@
|
||||
/**
|
||||
* 车辆类报告模块:apiID(产品能力编码)→ 展示名称
|
||||
* 与后端 ProductFeature / 上游 api 约定对齐;未列出的 apiID 仍可由接口 featureName 兜底。
|
||||
*/
|
||||
export const VEHICLE_API_TITLES = {
|
||||
QCXG9F5C: '疑似营运车辆注册平台数',
|
||||
QCXG3B8Z: '疑似运营车辆查询(月度里程)',
|
||||
QCXGP1W3: '疑似运营车辆查询(季度里程)',
|
||||
QCXGM7R9: '疑似运营车辆查询(半年度里程)',
|
||||
QCXGU2K4: '疑似运营车辆查询(年度里程)',
|
||||
QCXGY7F2: '二手车 VIN 估值',
|
||||
QCXG5U0Z: '车辆静态信息查询',
|
||||
QCXG3M7Z: '人车关系核验(ETC)',
|
||||
QCXG1U4U: '车辆里程记录(混合查询)',
|
||||
QCXG2T6S: '车辆里程记录(品牌查询)',
|
||||
QCXG3Y6B: '车辆维保简版查询',
|
||||
QCXG3Z3L: '车辆维保详细版查询',
|
||||
QCXG1H7Y: '车辆过户简版查询',
|
||||
QCXG4I1Z: '车辆过户详版查询',
|
||||
QCXGGB2Q: '车辆二要素核验 V1',
|
||||
QCXGP00W: '车辆出险详版查询',
|
||||
QCXGYTS2: '车辆二要素核验 V2',
|
||||
QCXGGJ3A: '车辆 VIN 码查询号牌简版',
|
||||
QCXGJJ2A: '车辆 VIN 码查车辆信息详版',
|
||||
QCXG5F3A: '名下车辆车牌查询 B',
|
||||
QCXG4D2E: '名下车辆数量查询',
|
||||
QCXG6B4E: '车辆出险记录核验',
|
||||
QCXG8A3D: '车辆七项信息核验',
|
||||
QCXG9P1C: '名下车辆车牌查询 A',
|
||||
/** H5 BaseReport 常用:名下车辆(人数) */
|
||||
QCXG7A2B: '名下车辆',
|
||||
}
|
||||
|
||||
export function getVehicleModuleTitle(apiId, featureName) {
|
||||
if (!apiId || apiId === '__UNLABELED__') {
|
||||
if (featureName?.trim())
|
||||
return featureName.trim()
|
||||
return '报告模块'
|
||||
}
|
||||
const t = VEHICLE_API_TITLES[apiId]
|
||||
if (t)
|
||||
return t
|
||||
if (featureName?.trim())
|
||||
return featureName.trim()
|
||||
return apiId
|
||||
}
|
||||
Reference in New Issue
Block a user