选择城市前不可选择小区

pull/1/head
张萌 3 years ago
parent d9a60356c3
commit 9dfbbf84f8

@ -94,6 +94,11 @@ class _SelectCommunityState extends State<SelectCommunity> {
); );
var selectCommunity = GestureDetector( var selectCommunity = GestureDetector(
onTap: () async { onTap: () async {
if (UserTool.appProvider.pickedCityAndCommunity?.cityModel==null) {
BotToast.showText(text: '请选择城市');
return ;
}
var cancel = BotToast.showLoading(); var cancel = BotToast.showLoading();
List<CommunityModel> _communities = []; List<CommunityModel> _communities = [];
var base = await NetUtil().get(SAASAPI.login.allCommunity, params: { var base = await NetUtil().get(SAASAPI.login.allCommunity, params: {

Loading…
Cancel
Save