import { Component, OnInit } from '@angular/core';
import {CommonService} from '../common.service';

@Component({
  selector: 'app-loan',
  templateUrl: './loan.component.html',
  styleUrls: ['./loan.component.css']
})
export class LoanComponent implements OnInit {
  curPageData:Array<any>;
  hasMate:boolean;
  constructor(private commonService: CommonService) { }

  ngOnInit() {
    this.surveyInfo()
    this.hasMate = true;
  }
  surveyInfo() {
    this.commonService.surveyInfo().then(res => {
      if (res['success']) {
        this.curPageData = res['data']['survey'].pages['7']
        console.log(this.curPageData)
      }
    })
  }
}
