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
39
40
41
42
43
44
45
46
47
48
49
<ion-header>
<ion-navbar>
<ion-title>问卷回答</ion-title>
</ion-navbar>
</ion-header>
<ion-content padding="">
<p class="text-center">提交成功!感谢你的参与!</p>
<p class="text-center">问卷结果公开</p>
<ion-list>
<ion-item>
<ion-label class="padding-left-16">{{survey?.title}}</ion-label>
</ion-item>
<div class="question-list">
<ion-item *ngFor="let item of contentList;let i = index">
<div class="item-content">
<p>{{i +1}}、
<span *ngIf="item.quesType == 1">(判断)</span>
<span *ngIf="item.quesType == 2">(单选)</span>
<span *ngIf="item.quesType == 3">(多选)</span>
<span *ngIf="item.quesType == 4">(问答)</span>
{{item.title}}</p>
<ng-container *ngIf="item.quesType == 1">
<ng-container *ngFor=" let option0 of item.option;let i0 = index;">
<p>{{i0 +1}} <span class="margin-left-15">{{option0.title}} {{option0.number}}</span></p>
</ng-container>
</ng-container>
<ng-container *ngIf="item.quesType == 2">
<ng-container *ngFor=" let option1 of item.option;let i1 = index;">
<p> <span>{{i1 +1}}、</span> <span class="margin-left-15"></span>{{option1.title}} <span>{{option1.number}}</span></p>
</ng-container>
</ng-container>
<ng-container *ngIf="item.quesType == 3">
<ng-container *ngFor=" let option2 of item.option;let i2 = index;">
<p> {{i2 +1}}、 {{option2.title}} <span class="margin-left-15">{{option2.number}}</span></p>
</ng-container>
</ng-container>
<ng-container *ngIf="item.quesType == 4">
<span (click)="look(item)">查看详情</span>
</ng-container>
</div>
</ion-item>
</div>
</ion-list>
</ion-content>