|
|
@ -93,9 +93,10 @@ class _MyHousePageState extends State<MyHousePage> {
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
GestureDetector(
|
|
|
|
GestureDetector(
|
|
|
|
onTap: () async {
|
|
|
|
onTap: () async {
|
|
|
|
|
|
|
|
print(model.id);
|
|
|
|
var base = await NetUtil().get(
|
|
|
|
var base = await NetUtil().get(
|
|
|
|
SAASAPI.profile.house.switchDefaultEstate,
|
|
|
|
SAASAPI.profile.house.switchDefaultEstate,
|
|
|
|
params: {'estateId': model.isDefault});
|
|
|
|
params: {'estateId': model.id});
|
|
|
|
if (base.success) {
|
|
|
|
if (base.success) {
|
|
|
|
await UserTool.userProvider.updateMyHouseInfo();
|
|
|
|
await UserTool.userProvider.updateMyHouseInfo();
|
|
|
|
_refreshController.callRefresh();
|
|
|
|
_refreshController.callRefresh();
|
|
|
|