
<ion-header>

  <ion-navbar>
    <ion-title>问卷回答</ion-title>
  </ion-navbar>

</ion-header>


<ion-content>
<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.quesDesc;let i2 = index;">
              <p> {{i2 +1}}、 {{option2.option_title}} <span class="margin-left-15" *ngIf="item.option[0].index == 0">{{item.option[0].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>
