common.js 671 B

12345678910111213141516171819202122232425262728293031323334
  1. "use strict";
  2. const formatTagColor = (type) => {
  3. switch (type) {
  4. case "1":
  5. return "#00B97B";
  6. case "2":
  7. return "#F59701";
  8. case "3":
  9. return "#FF3B1D";
  10. }
  11. };
  12. const formatTagBgColor = (type) => {
  13. switch (type) {
  14. case "1":
  15. return "#00B97B33";
  16. case "2":
  17. return "#F5970133";
  18. case "3":
  19. return "#FF3B1D33";
  20. }
  21. };
  22. const formatTagStr = (type) => {
  23. switch (type) {
  24. case "1":
  25. return "已通过";
  26. case "2":
  27. return "待审核";
  28. case "3":
  29. return "已拒绝";
  30. }
  31. };
  32. exports.formatTagBgColor = formatTagBgColor;
  33. exports.formatTagColor = formatTagColor;
  34. exports.formatTagStr = formatTagStr;