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.

70 lines
1.6 KiB

enum FIXER_TYPE {
///空调组
AIR_CONDITION,
///电力组
ELECTRIC,
///水泥组
CEMENT,
}
class FixerModel {
String name;
String phone;
FixerModel({this.name, this.phone});
}
class FixerTypedModel {
FIXER_TYPE type;
String get typeName {
switch (type) {
case FIXER_TYPE.AIR_CONDITION:
return '空调组';
break;
case FIXER_TYPE.ELECTRIC:
return '电力组';
break;
case FIXER_TYPE.CEMENT:
return '水泥组';
break;
default:
return '';
}
}
List<FixerModel> fixers;
FixerTypedModel({
this.type,
this.fixers,
});
static List<FixerTypedModel> models = [
FixerTypedModel(
type: FIXER_TYPE.AIR_CONDITION,
fixers: [
FixerModel(name: '刘能建师傅', phone: '18923747283'),
FixerModel(name: '李惠政师傅', phone: '18910298345'),
FixerModel(name: '李慧珍师傅', phone: '17872342382'),
FixerModel(name: '林 芝师傅', phone: '18292847752'),
],
),
FixerTypedModel(
type: FIXER_TYPE.CEMENT,
fixers: [
FixerModel(name: '李雷师傅', phone: '18923747283'),
FixerModel(name: '林智师傅', phone: '18910298345'),
FixerModel(name: '刘凯欣师傅', phone: '17872342382'),
FixerModel(name: '张亮师傅', phone: '18292847752'),
],
),
FixerTypedModel(
type: FIXER_TYPE.ELECTRIC,
fixers: [
FixerModel(name: '李建国师傅', phone: '18923747283'),
FixerModel(name: '李历程师傅', phone: '18910298345'),
],
),
];
}