12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <!--pages/mistakes/mistakes.wxml-->
- <view class="container">
- <!-- 标题 -->
- <tarbar id="tarbar" />
- <!-- 内容 -->
- <view class="content">
- <scroll-view scroll-y="true" scroll-with-animation="true" scroll-with-animation="true" enable-back-to-top="true">
- <view class="recommend">
- <view class="answer-number">
- <view class="gross">
- <text>答题总量</text>
- <text>{{exponentData.sumAnswer}}</text>
- </view>
- <view class="error">
- <text>错误</text>
- <text>{{exponentData.sumWrongAnswer}}</text>
- </view>
- <view class="correct">
- <text>准确率</text>
- <text>{{exponentData.accuracy}}</text>
- </view>
- </view>
- <view class="course">
- <view class="course-head">
- <view class="subject {{courseIndex == index ? 'select' : ''}}" wx:for="{{course}}" wx:key="{{index}}" bindtap="tab" data-index="{{index}}">
- {{item}}
- </view>
- </view>
- <view class="course-content">
- <view class="error answer-content" wx:for="{{mistakesData}}" wx:key="index">
- <image class="questions" src="{{item.questions.img}}"></image>
- <view class="answer {{flag[index] ? 'unfold' : ''}}" animation="{{flag[index]? animationData : ''}}">
- <view class="answer-txt">
- <text>你的答案:{{item.userQuestionResult.answer === "0" ? '不知道' : item.userQuestionResult.answer}}</text>
- <text>{{item.questions.answer == item.userQuestionResult.answer ? "" : "(错误)"}}</text>
- </view>
- <!-- 错题点击事件 bindtap="particulars" 没有解析暂时去掉 -->
- <view class="analysis" data-flag="{{flag[index]}}" data-index="{{index}}">
- <image class="analysis-img" src="../image/analysis_bottom.png" wx:if="{{!(flag[index])}}"></image>
- <image class="analysis-img-top" src="../image/analysis_top.png" wx:else></image>
- </view>
- </view>
- </view>
- <view wx:if="{{mistakesData.length == 0}}" class="noerr">
- 你真棒没有错题!
- </view>
- </view>
- </view>
- </view>
- </scroll-view>
- </view>
- <view hidden="{{flag}}">
- <dialog bindmyevent="jurisdiction"/>
- </view>
- </view>
|