public function borrowdetail()
 {
     $pre = C('DB_PREFIX');
     $borrow_id = intval($_GET['id']);
     $list = getBorrowInvest($borrow_id, $this->uid);
     $this->assign("list", $list);
     $data['html'] = $this->fetch();
     exit(json_encode($data));
 }
예제 #2
0
 public function borrowdetail()
 {
     $pre = C('DB_PREFIX');
     $borrow_id = intval($_GET['id']);
     $list = getBorrowInvest($borrow_id, $this->uid);
     //echo "<pre>";print_r($list);echo "</pre>";exit;
     $this->assign("list", $list);
     $this->display();
 }
예제 #3
0
 public function borrowdetail()
 {
     $pre = C('DB_PREFIX');
     $borrow_id = intval($_GET['id']);
     $list = getBorrowInvest($borrow_id, $this->uid);
     $membertype = member_type($this->uid);
     if ($membertype['status'] == 1) {
         $isdanbao = 1;
     }
     $this->assign("isdanbao", $isdanbao);
     $this->assign("list", $list);
     $data['html'] = $this->fetch();
     exit(json_encode($data));
 }
예제 #4
0
 public function borrowdetail()
 {
     $jsoncode = file_get_contents("php://input");
     $arr = array();
     $arr = json_decode($jsoncode, true);
     if (!$this->uid || $arr['uid'] != $this->uid) {
         ajaxmsg("请先登录", 0);
         exit;
     }
     if (!is_array($arr) || empty($arr) || empty($arr['uid'])) {
         ajaxmsg("查询错误!", 0);
     }
     $borrow_id = intval($arr['id']);
     $list = getBorrowInvest($borrow_id, $this->uid);
     foreach ($list['list'] as $key => $v) {
         //if($vo['needpay']==0){ echo $vo.paid ;}else{ echo 0 ;}
         $data[$key]['deadline'] = date("Y-m-d H:i:s", $v['deadline']);
         $data[$key]['capital'] = $v['capital'];
         $data[$key]['interest'] = $v['interest'];
         if ($v['needpay'] == 0) {
             $a = $v['paid'];
         } else {
             $a = 0;
         }
         $data[$key]['paid'] = $a;
         if ($v['needpay'] == 0) {
             $b = 0;
         } else {
             $b = $v['needpay'] + $v['paid'];
         }
         $data[$key]['benxi'] = $b;
         $data[$key]['status'] = $v['status'];
         if ($v['needpay'] == 0) {
             $c = "---";
         } else {
             $c = "还款";
         }
         $data[$key]['kuan'] = $c;
     }
     $hh['list'] = $data;
     ajaxmsg($hh);
 }