<!--packageE/video_question/answer/answer.wxml-->
<view id="answer">
  <view class="questions">
    <view class="questions_box" wx:for="{{question}}" wx:key="index">
      <view class="title">{{index+1}}.{{item.title}}</view>
      <view class="btn_box" wx:for="{{item.option}}" wx:for-item="data" wx:key="ind" catchtap="tapAnswer" data-qid="{{item.id}}" data-aid="{{data.id}}">
        <view class="btn {{data.crd?'classOn':''}}">{{data.content}}</view>
      </view>
    </view>
  </view>
  <view class="posbtn">
    <view catchtap="submit"
      style="color:#ffffff;text-align: left;width: 609.92rpx;height: 80rpx;background-color: #f14e4e;border-radius: 15.04rpx;text-align: center;line-height: 80rpx;"
      >
      提交
    </view>
  </view>
  <van-popup show="{{pass}}" round :style="{ width: '18.75rem' }" closeable close-icon="cross" bind:close="onClose">
    <view class="pass" wx:if="{{is_qualified == 1}}">
      <view class="imgbox" style="background-image: url('https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/jb@3x.png')"></view>
      <view style="font-size: 36.16rpx;color: #2d353d;margin-top:47.04rpx;">答题完成，分数达标！</view>
      <view style="font-size: 24rpx;color: #999999;margin-top:29.12rpx;display: flex;align-items: center;">本次得分 <view
          class="em" style="color: #f15353;">
          {{score}}</view>分</view>
      <view class="subBtn" catchtap="goApply">申请推广员</view>
    </view>
    <view class="pass" wx:if="{{is_qualified == 0}}">
      <view class="imgbox" style="background-image: url('https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/bdb@3x.png')"></view>
      <view style="font-size: 36.16rpx;color: #2d353d;margin-top:47.04rpx;">答题完成，分数不达标！</view>
      <view style="font-size: 24rpx;color: #999999;margin-top:29.12rpx;display: flex;align-items: center;">本次得分 <view
          class="em" style="color: #f15353;">{{score}}</view>分</view>
      <view class="subBtn" catchtap="again">重新答题</view>
    </view>
  </van-popup>
</view>