edu-plan.wxs 753 B

12345678910111213141516171819202122232425262728293031323334353637
  1. var convertLive = function (status) {
  2. var statusText
  3. switch (status) {
  4. case 0:
  5. statusText = '未直播'
  6. break;
  7. case 1:
  8. statusText = '直播中'
  9. break;
  10. case 2:
  11. statusText = '直播结束'
  12. break;
  13. default:
  14. statusText = '未知状态'
  15. }
  16. return statusText
  17. }
  18. var convert = function (status) {
  19. var statusText
  20. switch (status) {
  21. case 1:
  22. statusText = '仪式'
  23. break;
  24. case 2:
  25. statusText = '活动'
  26. break;
  27. default:
  28. statusText = '未知'
  29. }
  30. return statusText
  31. }
  32. module.exports = {
  33. convertLive: convertLive,
  34. convert: convert
  35. }