| | |
| | | TipUtil.show(RechargeActivity.this, "卡片读取失败"); |
| | | } |
| | | |
| | | readAllData(intent); |
| | | // readAllData(intent); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | CrashReport.postCatchedException(e); |
| | |
| | | binding.redRemainderBlance.setText(MornyUtil.changeF2Y(balance)); |
| | | binding.redStatu.setText(stateText.toString()); |
| | | binding.redInitCode.setText(initPeasantCode); |
| | | |
| | | if ("00".equals(state)) { |
| | | binding.rechargeRegistBtn.setVisibility(View.VISIBLE); |
| | | stateText.append("启用"); |
| | | userCard.setState("00"); |
| | | userCard.setBalance(balance); |
| | |
| | | } |
| | | binding.redStatu.setText(stateText.toString()); |
| | | binding.rechargeLL.setVisibility(View.GONE); |
| | | binding.rechargeRegistBtn.setVisibility(View.GONE); |
| | | binding.rechargeRegistBtn.setVisibility(View.GONE); |
| | | TipUtil.show(RechargeActivity.this, stateText.toString()); |
| | | } catch (Exception e) { |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | protected void onDestroy() { |
| | | super.onDestroy(); |
| | | rechargeActivity=null; |
| | | rechargeActivity = null; |
| | | } |
| | | } |