与牧同行-小程序用户端
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.
 

45 lines
688 B

// 通知
function type(name) {
if(name=='紧急'){
return 'urgent'
}else if(name=='重要'){
return 'important'
}else{
return 'normal'
}
}
// 严重程度区分
function ztLevel(type) {
if(type=='轻度'){
return 'low'
}else if(type=='中度'){
return 'moderate'
}else{
return 'high'
}
}
// 药品标签
function medicineType(type) {
if(type=='处方药'){
return 'prescription'
}else if(type=='非处方药'){
return 'otc'
}else if(type=='中成药'){
return 'chinese'
}else{
return 'health'
}
}
module.exports = {
type:type,
ztLevel:ztLevel,
medicineType:medicineType
}