发货方式优化及消息功能优化
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
// 消息类型对应的标签主题色:0=系统消息(蓝),1=公告消息(橙),2=需求消息(绿)
|
||||
function tagTheme(type) {
|
||||
var map = {
|
||||
'0': 'primary',
|
||||
'1': 'warning',
|
||||
'2': 'success'
|
||||
};
|
||||
return map[String(type)] || 'default';
|
||||
}
|
||||
module.exports = {
|
||||
tagTheme: tagTheme
|
||||
}
|
||||
Reference in New Issue
Block a user