|
@@ -127,9 +127,16 @@ class _LoginPageState extends State < LoginPage > {
|
|
|
setKey('stationName', stationObj.data[i].name);
|
|
setKey('stationName', stationObj.data[i].name);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- Navigator.pushReplacement(context, MaterialPageRoute(builder: (context){
|
|
|
|
|
- return HomePage();
|
|
|
|
|
- }));
|
|
|
|
|
|
|
+ getCompanyInfo().then((resp){
|
|
|
|
|
+ if(isNotError(context, resp) && this.mounted){
|
|
|
|
|
+ CompanyInfoChild companyInfo = CompanyInfo.fromJson(resp.data).data;
|
|
|
|
|
+ setKey('companyName',companyInfo.name);
|
|
|
|
|
+ setKey('companyCustomerPhone',companyInfo.customerPhone);
|
|
|
|
|
+ Navigator.pushReplacement(context, MaterialPageRoute(builder: (context){
|
|
|
|
|
+ return HomePage();
|
|
|
|
|
+ }));
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
}else{
|
|
}else{
|