018A初步完成
This commit is contained in:
@ -135,30 +135,42 @@
|
||||
},
|
||||
methods: {
|
||||
getTypeStyle(styleType) {
|
||||
debugger;
|
||||
const styles = {
|
||||
success: {
|
||||
bgColor: '#f0fff0',
|
||||
borderColor: '#52c41a',
|
||||
bgColor: '#383934cc',
|
||||
borderColor: '#52c41a4d',
|
||||
textColor: '#389e0d',
|
||||
buttonBgColor: '#52c41a',
|
||||
buttonTextColor: '#FFFFFF'
|
||||
},
|
||||
error: {
|
||||
bgColor: '#fff0f0',
|
||||
borderColor: '#ff4d4f',
|
||||
bgColor: '#383934cc',
|
||||
borderColor: '#ff4d4f4d',
|
||||
textColor: '#cf1322',
|
||||
buttonBgColor: '#ff4d4f',
|
||||
buttonTextColor: '#FFFFFF'
|
||||
},
|
||||
info: {
|
||||
bgColor: '#e6f7ff',
|
||||
bgColor: '#383934cc',
|
||||
borderColor: '#1890ff',
|
||||
textColor: '#0050b3',
|
||||
buttonBgColor: '#1890ff',
|
||||
buttonTextColor: '#FFFFFF'
|
||||
},
|
||||
customer:{
|
||||
bgColor: '#383934cc',
|
||||
borderColor: '#52c41a4d',
|
||||
textColor: '#389e0d',
|
||||
buttonBgColor: '#52c41a',
|
||||
buttonTextColor: '#232323de'
|
||||
}
|
||||
}
|
||||
return styles[this.type][styleType]
|
||||
let f= styles[this.type];
|
||||
if(f){
|
||||
return f[styleType];
|
||||
}
|
||||
|
||||
},
|
||||
handleButtonClick() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user