与牧同行-小程序用户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
688 B

2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
  1. // 通知
  2. function type(name) {
  3. if(name=='紧急'){
  4. return 'urgent'
  5. }else if(name=='重要'){
  6. return 'important'
  7. }else{
  8. return 'normal'
  9. }
  10. }
  11. // 严重程度区分
  12. function ztLevel(type) {
  13. if(type=='轻度'){
  14. return 'low'
  15. }else if(type=='中度'){
  16. return 'moderate'
  17. }else{
  18. return 'high'
  19. }
  20. }
  21. // 药品标签
  22. function medicineType(type) {
  23. if(type=='处方药'){
  24. return 'prescription'
  25. }else if(type=='非处方药'){
  26. return 'otc'
  27. }else if(type=='中成药'){
  28. return 'chinese'
  29. }else{
  30. return 'health'
  31. }
  32. }
  33. module.exports = {
  34. type:type,
  35. ztLevel:ztLevel,
  36. medicineType:medicineType
  37. }