| | |
| | | |
| | | @Override |
| | | public void initView(@Nullable Bundle savedInstanceState) { |
| | | isAddCountTimer = false; |
| | | downTime = 30; |
| | | isAddCountTimer = true; |
| | | normalConfig(); |
| | | getDB().setModel(getVM()); |
| | | } |
| | |
| | | getVM().loginCabinet(getDB().etName.getText().toString(),getDB().etPw.getText().toString()); |
| | | break; |
| | | case 3: |
| | | //显示加载 |
| | | getDB().clProgress.setVisibility(View.VISIBLE); |
| | | getDB().clTip.setVisibility(View.GONE); |
| | | finish(); |
| | | break; |
| | | case 4: |
| | | getDB().clProgress.setVisibility(View.GONE); |
| | |
| | | case 5: |
| | | startActivity(ManageCabinetActivity.class); |
| | | finish(); |
| | | break; |
| | | case 6: |
| | | //显示加载 |
| | | getDB().clProgress.setVisibility(View.VISIBLE); |
| | | getDB().clTip.setVisibility(View.GONE); |
| | | break; |
| | | default: |
| | | break; |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | protected void timeChange(String djs) { |
| | | getDB().tvDjs.setText(djs); |
| | | } |
| | | } |