修改收益页面刷新,布局
This commit is contained in:
parent
f78ba226f9
commit
9795d46941
@ -103,8 +103,23 @@ public class MyArnActivity extends AbsOTOActivity {
|
||||
@Override
|
||||
protected void onResume() {
|
||||
super.onResume();
|
||||
page = 1;
|
||||
refreshMyArn();
|
||||
OTONetManager.getInstance(mContext).getFriendAppMoneySum(new HttpCallback<FriendAppMoneySumModel>() {
|
||||
@Override
|
||||
public void onSuccess(FriendAppMoneySumModel data) {
|
||||
todayEarnings.setText(data.getToday());
|
||||
cumulativeIncome.setText(data.getSum());
|
||||
withdrawalSum.setText(data.getWithdrawalModel().getSum());
|
||||
StringBuffer stringBuffer = new StringBuffer();
|
||||
stringBuffer.append("$ ")
|
||||
.append(data.getWithdrawalModel().getMoney());
|
||||
withdrawalMoney.setText(stringBuffer.toString());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(String error) {
|
||||
ToastUtil.show(error);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private void refreshMyArn() {
|
||||
@ -132,24 +147,24 @@ public class MyArnActivity extends AbsOTOActivity {
|
||||
}
|
||||
|
||||
private void initData() {
|
||||
OTONetManager.getInstance(mContext).getFriendAppMoneySum(new HttpCallback<FriendAppMoneySumModel>() {
|
||||
@Override
|
||||
public void onSuccess(FriendAppMoneySumModel data) {
|
||||
todayEarnings.setText(data.getToday());
|
||||
cumulativeIncome.setText(data.getSum());
|
||||
withdrawalSum.setText(data.getWithdrawalModel().getSum());
|
||||
StringBuffer stringBuffer = new StringBuffer();
|
||||
stringBuffer.append("$ ")
|
||||
.append(data.getWithdrawalModel().getMoney());
|
||||
withdrawalMoney.setText(stringBuffer.toString());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(String error) {
|
||||
ToastUtil.show(error);
|
||||
}
|
||||
});
|
||||
// refreshMyArn();
|
||||
// OTONetManager.getInstance(mContext).getFriendAppMoneySum(new HttpCallback<FriendAppMoneySumModel>() {
|
||||
// @Override
|
||||
// public void onSuccess(FriendAppMoneySumModel data) {
|
||||
// todayEarnings.setText(data.getToday());
|
||||
// cumulativeIncome.setText(data.getSum());
|
||||
// withdrawalSum.setText(data.getWithdrawalModel().getSum());
|
||||
// StringBuffer stringBuffer = new StringBuffer();
|
||||
// stringBuffer.append("$ ")
|
||||
// .append(data.getWithdrawalModel().getMoney());
|
||||
// withdrawalMoney.setText(stringBuffer.toString());
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void onError(String error) {
|
||||
// ToastUtil.show(error);
|
||||
// }
|
||||
// });
|
||||
refreshMyArn();
|
||||
}
|
||||
|
||||
private void onConversationListLoadMore() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user