예제 #1
0
 @Override
 protected void onPostExecute(ActionResultInfo result) {
   //		mSwipeRefreshLayout.setRefreshing(false);
   Log.i("result", "result ==" + result);
   if (result == null || result.toString().equals("null")) {
     _handler.sendEmptyMessage(-1);
   } else if (result.ret.equals("0")) {
     //				String title = result.title;
     //				String productID = result.productID;
     //				String minInvestment = result.minInvestment;
     //				String progress = result.progress;
     //				String extraIncome = result.extraIncome;
     //				String deadline = result.deadline;
     //
     //				mProgress = Integer.parseInt(progress);
     //				tv_title.setText(title);
     //				tv_extraIncome.setText(extraIncome);
     //				tv_progress.setText(progress);
     //				tv_deadline.setText(deadline);
     //				tv_minInvestment.setText(minInvestment);
     //
     _handler.sendEmptyMessage(0);
   } else {
     Toast.makeText(ActRegisterSucceed.this, result.msg, Toast.LENGTH_SHORT).show();
   }
 }
예제 #2
0
    @Override
    protected void onPostExecute(ActionResultInfo result) {
      if (result == null || result.equals(null)) {
        _handler.sendEmptyMessage(-1);
      } else if (result.ret.equals("0")) {
        tv_loggingname.setText(result.username);
        tv_phone.setText(
            result.phone.substring(0, 3)
                + " **** "
                + result.phone.substring(result.phone.length() - 4));
        if (result.payAccount.equals(
            "0") /*|| userAccountType != null && userAccountType.equals("0")*/) {
          rl_openhuifu.setClickable(true);
          rl_openhuifu.setOnClickListener(ActAccountCenter.this);
          tv_openhuifu.setText("马上开通");
          tv_openhuifu.setTextColor(Color.RED);
        } else {
          rl_openhuifu.setClickable(false);
          tv_openhuifu.setText(
              result.payAccount.substring(0, result.payAccount.length() / 4 + 1)
                  + "****"
                  + result.payAccount.substring(result.payAccount.length() * 3 / 4));
          tv_openhuifu.setTextColor(Color.GRAY);
        }
        if (result.userAccountType != null && result.userAccountType.equals("0")) {
          tv_renzheng.setText("未认证");
        } else {
          tv_renzheng.setText("已认证");
        }
        new BgView(ActAccountCenter.this, result.iconurl, riv_account);

        _handler.sendEmptyMessage(0);
      } else {
        _handler.sendEmptyMessage(1);
        Toast.makeText(ActAccountCenter.this, result.msg, Toast.LENGTH_SHORT).show();
      }
    }