|
|
@@ -9,7 +9,6 @@ import android.widget.TextView;
|
|
|
|
|
|
import com.tongyu.luck.happywork.R;
|
|
|
import com.tongyu.luck.happywork.baselibrary.AppConstant;
|
|
|
-import com.tongyu.luck.happywork.baselibrary.utils.DateUtils;
|
|
|
import com.tongyu.luck.happywork.bean.WalletBean;
|
|
|
import com.tongyu.luck.happywork.ui.base.BaseViewHolder;
|
|
|
|
|
|
@@ -103,14 +102,14 @@ public class WalletDetailAdapter extends BaseAdapter {
|
|
|
case AppConstant.WALLET_IN_REWARD:
|
|
|
tvTitle.setText(R.string.mine_wallet_in_reward);
|
|
|
break;
|
|
|
- case AppConstant.WALLET_OPEM_MEMBER:
|
|
|
+ case AppConstant.WALLET_OPEN_MEMBER:
|
|
|
tvTitle.setText(R.string.mine_wallet_open_member);
|
|
|
break;
|
|
|
case AppConstant.WALLET_CASH_PAYMENT:
|
|
|
tvTitle.setText(R.string.mine_wallet_cash_payment);
|
|
|
break;
|
|
|
}
|
|
|
- tvDate.setText(TextUtils.isEmpty(bean.getUpdateDate()) ? "" : DateUtils.getFormatStrToStrYMD(bean.getUpdateDate()));
|
|
|
+ tvDate.setText(TextUtils.isEmpty(bean.getUpdateDate()) ? "" : bean.getUpdateDate());
|
|
|
//积分
|
|
|
int money = 0;
|
|
|
if (!TextUtils.isEmpty(bean.getMoney())) {
|
|
|
@@ -119,8 +118,8 @@ public class WalletDetailAdapter extends BaseAdapter {
|
|
|
} catch (Exception e) {//防止类型转换错误
|
|
|
}
|
|
|
}
|
|
|
- if (money < 0) {//扣积分
|
|
|
- tvMoney.setText(bean.getMoney() + "");
|
|
|
+ if (AppConstant.WALLET_WITHDRAWAL == bean.getMoneyType() || AppConstant.WALLET_OPEN_MEMBER == bean.getMoneyType() || AppConstant.WALLET_CASH_PAYMENT == bean.getMoneyType()) {//扣积分
|
|
|
+ tvMoney.setText("-" + bean.getMoney());
|
|
|
tvMoney.setTextColor(mContext.getResources().getColorStateList(R.color.text_black));
|
|
|
} else {
|
|
|
tvMoney.setText("+" + bean.getMoney());
|