Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
import {AppService} from "../../../../../service/http.service";
@IonicPage()
@Component({
selector: 'page-detail',
templateUrl: 'detail.html',
})
export class DetailPage {
temp = {
title:'',
id:''
}; //问卷信息
detail;
constructor(public navCtrl: NavController, public navParams: NavParams,
public appService: AppService) {
}
ionViewDidLoad() {
this.temp = this.navParams.get('temp');
this.getDetail();
}
getDetail(){
this.appService.ObserverHttpGet('/wisdomgroup/modules/question/findQuesByQuestionId',{id:this.temp.id})
.subscribe(
(res)=>{
this.detail = res.json().datalist;
for( let i = 0;i < this.detail.length;i++ ){
this.detail[i].quesDesc = JSON.parse(this.detail[i].quesDesc);
}
}
)
}
}