d
This commit is contained in:
@@ -365,13 +365,21 @@ public class MainFragment extends BaseFragment<FragmentMainBinding> implements V
|
||||
// Intent intent = new Intent(getContext(), PropertyActivity.class);
|
||||
// startActivity(intent);
|
||||
|
||||
// String fangchan = (String) SPUtils.getSp(getActivity(), DoConfig.FANGCHAN_DATA, "0");
|
||||
// if(fangchan.equals("0")){
|
||||
// Intent intent = new Intent(getActivity(), MyPropertyActivity.class);
|
||||
// intent.putExtra("usertitile", "我的房产");
|
||||
// startActivityForResult(intent, 0);
|
||||
// return;
|
||||
// }
|
||||
if( (Config.getInstance(getContext()).getUser()==null)){
|
||||
Intent intent =new Intent(getContext(),LoginActivity.class);
|
||||
startActivity(intent);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
String fangchan = (String) SPUtils.getSp(getActivity(), DoConfig.FANGCHAN_DATA, "0");
|
||||
Log.e("fangchan",fangchan);
|
||||
if(fangchan.equals("0")){
|
||||
Intent intent = new Intent(getActivity(), MyPropertyActivity.class);
|
||||
intent.putExtra("usertitile", "我的房产");
|
||||
startActivityForResult(intent, 0);
|
||||
return;
|
||||
}
|
||||
|
||||
Intent intent = new Intent(getContext(), HistoryRecordActivitytwo.class);
|
||||
final RegisterUser user =
|
||||
@@ -432,7 +440,15 @@ public class MainFragment extends BaseFragment<FragmentMainBinding> implements V
|
||||
startActivity(intent);
|
||||
break;
|
||||
case R.id.entrancegurd://门禁
|
||||
|
||||
if( (Config.getInstance(getContext()).getUser()==null)){
|
||||
intent =new Intent(getContext(),LoginActivity.class);
|
||||
startActivity(intent);
|
||||
return;
|
||||
}
|
||||
|
||||
String fangchan = (String) SPUtils.getSp(getActivity(), DoConfig.FANGCHAN_DATA, "0");
|
||||
Log.e("fangchan",fangchan);
|
||||
if(fangchan.equals("0")){
|
||||
intent = new Intent(getActivity(), MyPropertyActivity.class);
|
||||
intent.putExtra("usertitile", "我的房产");
|
||||
|
||||
Reference in New Issue
Block a user