{"remainingRequest":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/thread-loader/dist/cjs.js!/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/babel-loader/lib/index.js!/data/jenkins/workspace/mer.ws.baibaodun.com.cn/src/filters/user.js","dependencies":[{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/src/filters/user.js","mtime":1701742078548},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/babel.config.js","mtime":1701742078504},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/thread-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/babel-loader/lib/index.js","mtime":456789000000}],"contextDependencies":[],"result":["// +----------------------------------------------------------------------\n// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]\n// +----------------------------------------------------------------------\n// | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.\n// +----------------------------------------------------------------------\n// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权\n// +----------------------------------------------------------------------\n// | Author: CRMEB Team <admin@crmeb.com>\n// +----------------------------------------------------------------------\n\n//会员过滤器\n\n/**\n * 等级\n */\nexport function levelFilter(status) {\n  if (!status) {\n    return '';\n  }\n  var arrayList = JSON.parse(localStorage.getItem('levelKey'));\n  var array = arrayList.filter(function (item) {\n    return status === item.id;\n  });\n  if (array.length) {\n    return array[0].name;\n  } else {\n    return '';\n  }\n}\n\n/**\n * 用户注册类型\n */\nexport function registerTypeFilter(status) {\n  var statusMap = {\n    wechat: '公众号',\n    routine: '小程序',\n    h5: 'H5',\n    iosWx: '微信ios',\n    androidWx: '微信安卓',\n    ios: 'ios'\n  };\n  return statusMap[status];\n}\n\n/**\n * 用户类型\n */\nexport function filterIsPromoter(status) {\n  var statusMap = {\n    true: '推广员',\n    false: '普通用户'\n  };\n  return statusMap[status];\n}",null]}