<view class="head">

  共{{count}}条考试记录</view>
<view class="weui-cells weui-cells_after-title" style="margin-top:0px">
  <block wx:for="{{results}}" wx:key="unique">
    <navigator url="detail?id={{item.id}}" class="weui-media-box weui-media-box_appmsg" hover-class="weui-cell_active">
      <view class="weui-media-box__bd weui-media-box__bd_in-appmsg">
        <view class="weui-media-box__title">{{item.name}}</view>
        <view class="weui-media-box__desc">
          <span style="font-weight:bold;color:brown;" wx:if="{{item.type=='正式考试'}}">{{item.type}}</span>
          <span style="font-weight:bold;color:darkblue" wx:else>{{item.type}}</span>
          <span>-</span>
          <span style="font-weight:bold;color:green;" wx:if="{{item.is_pass}}">通过</span>
          <span style="font-weight:bold;color:red;" wx:else>未通过</span>
          (得分
          <span style="color:green;" wx:if="{{item.is_pass}}">{{item.score}}</span>
          <span style="color:red;" wx:else>{{item.score}}</span>
          -满分
          <span style="font-weight:bold">{{item.total_score}})</span>
        </view>
        <view class="weui-media-box__desc">
        耗时:{{item.took}}
        开始答题:{{item.start_time}}
        </view>
      </view>
      <view class="weui-panel__ft weui-cell__ft_in-access">
        <view class="weui-media-box__desc">答卷详情</view>
      </view>
    </navigator>
  </block>
</view>