{"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/wx.js","dependencies":[{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/src/filters/wx.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//小程序 微信过滤器\nimport Cookies from 'js-cookie';\n/**\n * @description 小程序所属类目\n */\nexport function wxCategoryFilter(status) {\n  if (!status) {\n    return '';\n  }\n  if (!Cookies.get('WxCategory')) {\n    return;\n  }\n  var arrayList = JSON.parse(Cookies.get('WxCategory'));\n  if (arrayList.filter(function (item) {\n    return Number(status) === Number(item.id);\n  }).length < 1) {\n    return '';\n  }\n  return arrayList.filter(function (item) {\n    return Number(status) === Number(item.id);\n  })[0].name;\n}\n\n/**\n * @description 小程序模板类型\n */\nexport function wxTypeFilter(status) {\n  var statusMap = {\n    2: '一次性订阅',\n    3: '长期订阅'\n  };\n  return statusMap[status];\n}",null]}