
<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">
            <p>1、是 <span class="margin-left-15" *ngIf="item.option[0].index == 0">{{item.option[0].number}}</span></p>
            <p>2、否 <span class="margin-left-15"></span></p>
          </ng-container>
          <ng-container *ngIf="item.quesType == 2">
            <ng-container *ngFor=" let option1 of item.quesDesc;let i1 = index;">
              <p><span class="input-radio {{item.option.answerdesc == i1?'select-raio':''}}"></span>{{option1.option_title}}</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>
