Beispiel #1
0
 /**
  * @param holder
  * @param youbi
  */
 private void setDetailData(ViewHolder holder, UserYoubiDetail youbi) {
   String text = null;
   ImageViewUtil.showImage(holder.image, youbi.getUserIcon(), R.drawable.postbar_thumbimg_default);
   if (youbi.getBusinessType() == 1) {
     if (youbi.getChannel() == 1) {
       text = "支付宝充值" + DoubleUtil.getDoubleFormat(youbi.getAmountRmb()) + "元";
     } else if (youbi.getChannel() == 2) {
       text = "微信充值" + DoubleUtil.getDoubleFormat(youbi.getAmountRmb()) + "元";
     }
   } else if (youbi.getBusinessType() == 2) {
     text = "陪玩收入";
   } else if (youbi.getBusinessType() == 3) {
     text = "支付陪玩";
   } else if (youbi.getBusinessType() == 4) {
     text = "提现" + DoubleUtil.getDoubleFormat(youbi.getAmountRmb()) + "元";
   } else if (youbi.getBusinessType() == 5) {
     if (youbi.getAmountYoubi() > 0) {
       text = "系统赠送";
     } else {
       text = "系统扣除";
     }
   } else if (youbi.getBusinessType() == 6) {
     text = "支付陪玩技术服务费";
   }
   holder.paytitle.setText(text);
   LogUtil.d("pay", youbi.getCreateTime() + "");
   holder.paytime.setText(
       new SimpleDateFormat("yyyy-MM-dd HH:mm").format(new Date(youbi.getCreateTime())));
   holder.paymoney.setText(DoubleUtil.getDoubleFormat(youbi.getAmountYoubi()) + "U币");
   getTradeText(youbi, holder.paystatus);
 }