예제 #1
0
 public function summary($re = false)
 {
     $vlist = getMemberMoneySummary($this->uid);
     $this->assign("vo", $vlist);
     $this->assign('pcount', get_personal_count($this->uid));
     $minfo = getMinfo($this->uid, true);
     $this->assign("minfo", $minfo);
     $this->assign('benefit', get_personal_benefit($this->uid));
     //收入
     $this->assign('out', get_personal_out($this->uid));
     //支出
     ////////////////////////////////////////////////////////////////////
     $data['html'] = $this->fetch();
     exit(json_encode($data));
 }
예제 #2
0
 public function summary()
 {
     $this->assign("vo", getMemberMoneySummary($this->uid));
     $data['html'] = $this->fetch();
     exit(json_encode($data));
 }
예제 #3
0
 public function summary()
 {
     $jsoncode = file_get_contents("php://input");
     $arr = array();
     $arr = json_decode($jsoncode, true);
     //alogsm("changepwd",0,1,$jsoncode);
     if (intval($arr['uid']) != $this->uid) {
         ajaxmsg("用户错误!", 0);
     }
     $vlist = getMemberMoneySummary($this->uid);
     $minfo = getMinfo($this->uid, true);
     $benefit = get_personal_benefit($this->uid);
     //收入
     $out = get_personal_out($this->uid);
     //支出
     $pcount = get_personal_count($this->uid);
     //可用现金金额:
     $canuse = $minfo['account_money'] + $minfo['back_money'];
     $data['canuse'] = empty($canuse) ? '0.00' : (string) $canuse;
     //待收总额:
     $data['money_collect'] = empty($minfo['money_collect']) ? '0.00' : (string) $minfo['money_collect'];
     //冻结总额:
     $data['money_freeze'] = empty($minfo['money_freeze']) ? '0.00' : (string) $minfo['money_freeze'];
     //账户资金总额:
     $all_money = $minfo['account_money'] + $minfo['back_money'] + $minfo['money_collect'] + $minfo['money_freeze'];
     $data['all_money'] = empty($all_money) ? '0.00' : (string) $all_money;
     //净赚利息:
     $data['getinterest'] = empty($benefit['interest']) ? '0.00' : (string) $benefit['interest'];
     //净付利息:
     $data['outinterest'] = empty($out['interest']) ? '0.00' : (string) $out['interest'];
     //支付会员认证费:
     $data['authenticate'] = empty($out['authenticate']) ? '0.00' : (string) $out['authenticate'];
     //借款管理费
     $data['borrow_manage'] = empty($out['borrow_manage']) ? '0.00' : (string) $out['borrow_manage'];
     //逾期及催收费用:
     $data['overdue'] = empty($out['overdue']) ? '0.00' : (string) $out['overdue'];
     //累计提现手续费:
     $data['withdraw_fee'] = empty($out['withdraw_fee']) ? '0.00' : (string) $out['withdraw_fee'];
     //累计投标奖励:
     $data['ireward'] = empty($benefit['ireward']) ? '0.00' : (string) $benefit['ireward'];
     //累计支付投标奖励:
     $data['pay_tender'] = empty($out['pay_tender']) ? '0.00' : (string) $out['pay_tender'];
     //累计推广奖励:
     $data['spread_reward'] = empty($benefit['spread_reward']) ? '0.00' : (string) $benefit['spread_reward'];
     //累计线下充值奖励:
     $data['re_reward'] = empty($benefit['re_reward']) ? '0.00' : (string) $benefit['re_reward'];
     //累计续投奖励:
     $data['con_reward'] = empty($benefit['con_reward']) ? '0.00' : (string) $benefit['con_reward'];
     //累计充值手续费:
     $data['czfee'] = empty($benefit['czfee']) ? '0.00' : (string) $benefit['czfee'];
     //累计盈亏总额:
     $iomoney = $benefit['total'] - $out['total'];
     $data['iomoney'] = empty($iomoney) ? '0.00' : (string) $iomoney;
     //累计投资金额:
     $data['ljtz'] = empty($pcount['ljtz']) ? '0.00' : (string) $pcount['ljtz'];
     //累计借入金额:
     $data['jrje'] = empty($pcount['jrje']) ? '0.00' : (string) $pcount['jrje'];
     //累计充值金额
     $data['payonline'] = empty($pcount['payonline']) ? '0.00' : (string) $pcount['payonline'];
     //累计提现金额:
     $data['withdraw'] = empty($pcount['withdraw']) ? '0.00' : (string) $pcount['withdraw'];
     //累计支付管理费:
     $data['commission'] = empty($pcount['commission']) ? '0.00' : (string) $pcount['commission'];
     //待收利息总额:
     $data['interest_collection'] = empty($benefit['interest_collection']) ? '0.00' : (string) $benefit['interest_collection'];
     //待付利息总额:
     $data['interest_pay'] = empty($benefit['interest_pay']) ? '0.00' : (string) $benefit['interest_pay'];
     ajaxmsg($data);
 }