Newer
Older
import {Component} from '@angular/core';
import {IonicPage, NavController, NavParams} from 'ionic-angular';
constructor(public navCtrl: NavController, public navParams: NavParams,
public appService: AppService, public storage: Storage) {
}
ionViewDidLoad() {
this.item = this.navParams.get('item');
this.getInfo()
}
this.appService.ObserverHttpPost('/wisdomgroup/modules/question/showOnApp', data)
.subscribe((res) => {
this.contentList.forEach(e => {
const selectArr = e.option.answerdesc.split(",");
e.quesDesc = JSON.parse(e.quesDesc);
if (e.quesType == 3 && e.option) {
e.quesDesc.forEach(data=>{
if( selectArr.indexOf(data.index +"") != -1 ){
goToResult() {
this.navCtrl.push('SurveyResultPage', {item: this.survey});