zhaoxiaoqiang1
2026-01-04 f1d30d03186c79ca2cbcfe60d6d2ce7d73fba97b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
var auths = {
    '1': '文件缺失',
    '2': '未审核',
    '3': '文件异常',
    '4': '已审核通过',
}
 
var credits = {
    'Y': '是',
    'N': '否'
}
 
var _type_maps = {
    'auth': auths,
    'credit': credits
}
 
 
/**
 *键值翻译
 *
 * @param {*} value 值
 * @param {*} type 翻译类型
 * @returns value对应的中文名称
 */
function _transform(value,type) {
    if(!value || !type) return "";
    if(!_type_maps[type]) return "";
    if(!_type_maps[type][value]) return "";
    return _type_maps[type][value];
}