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