| | |
| | | <!--pages/bookServices/examination/questionOptions/index.wxml--> |
| | | <view class="page-bottom"> |
| | | <view class="li-option"> |
| | | <t-image src="/static/images/bookService/examination/collect.png"></t-image> |
| | | <view class="li-option" bind:tap="setCollect"> |
| | | <t-image |
| | | src="{{ questionDataList[currentIndex].isCollect ? '/static/images/bookService/detail/collecting.png' : '/static/images/bookService/examination/collect.png'}}" |
| | | > |
| | | </t-image> |
| | | 收藏 |
| | | </view> |
| | | <view class="li-option"> |
| | | <view class="li-option" bind:tap="handlePopup"> |
| | | <t-image |
| | | src="/static/images/bookService/examination/questionCard.png" |
| | | ></t-image> |
| | | 答题卡 |
| | | </view> |
| | | <view class="li-option"> |
| | | <view class="li-option" bind:tap="setUpBtn"> |
| | | <t-image src="/static/images/bookService/examination/setting.png"></t-image> |
| | | 设置 |
| | | </view> |
| | | <view class="li-option"> |
| | | <view |
| | | class="li-option" |
| | | bind:tap="resterBtn" |
| | | wx:if="{{answerType == 'option' || answerType == 'mock'}}" |
| | | > |
| | | <t-image src="/static/images/bookService/examination/reset.png"></t-image> |
| | | 重做 |
| | | </view> |
| | | <view class="bottom-submit"> |
| | | <t-button theme="primary" size="large" style="{{btnStyle}}">提交</t-button> |
| | | <t-button |
| | | theme="primary" |
| | | size="large" |
| | | style="{{btnStyle}}" |
| | | bind:tap="submitBtn" |
| | | >{{(answerType == 'option' || answerType == 'mock') ? '提交' : |
| | | '退出'}}</t-button |
| | | > |
| | | </view> |
| | | </view> |
| | | |
| | | <!-- 答题卡 --> |
| | | <t-popup |
| | | visible="{{questionCardState}}" |
| | | bind:visible-change="onVisibleChange" |
| | | placement="bottom" |
| | | > |
| | | <view class="popup-block"> |
| | | <view class="popup-header"> |
| | | <view class="popup-title">答题卡</view> |
| | | </view> |
| | | <view class="question-explain"> |
| | | <view class="explain-answered"> |
| | | <text class="answered explain-color-box"></text> |
| | | <text>已答</text> |
| | | </view> |
| | | <view class="explain-un-answered"> |
| | | <text class="un-answered explain-color-box"></text> |
| | | <text>未答</text> |
| | | </view> |
| | | </view> |
| | | <view class="question-card-list"> |
| | | <view wx:for="{{cardList}}" class="card-box"> |
| | | <!-- 题型 --> |
| | | <view class="question-title"> |
| | | <text class="color-box"></text> |
| | | <text class="title-text">{{item.catalogName}}</text> |
| | | </view> |
| | | <view class="question-list"> |
| | | <view |
| | | bind:tap="goQuestion" |
| | | data-id="{{citem.id}}" |
| | | wx:for="{{item.infoList}}" |
| | | wx:for-item="citem" |
| | | wx:for-index="cindex" |
| | | class="question-box {{citem.isComplete ? 'answered' : 'un-answered'}}" |
| | | > |
| | | {{citem.number}} |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </t-popup> |
| | | |
| | | <!-- 设置 --> |
| | | <t-popup |
| | | visible="{{setUpPopup}}" |
| | | bind:visible-change="onSetUpChange" |
| | | placement="bottom" |
| | | > |
| | | <view class="popup-block set-up-popup"> |
| | | <view class="popup-header"> |
| | | <view class="popup-title">设置</view> |
| | | </view> |
| | | <!-- 亮度 --> |
| | | <view> |
| | | <t-slider defaultValue="{{30}}" theme="capsule" /> |
| | | </view> |
| | | <!-- 模式 --> |
| | | </view> |
| | | </t-popup> |
| | | |
| | | <!-- 测试报告 --> |
| | | |
| | | <t-dialog |
| | | class="test-report" |
| | | visible="{{testReportState}}" |
| | | cancel-btn="{{null}}" |
| | | confirm-btn="{{null}}" |
| | | close-btn="{{true}}" |
| | | title="测试报告" |
| | | bind:close="closeTestReportDialog" |
| | | > |
| | | <view slot="content" class="test-report"> |
| | | <view class="report-content-top"> |
| | | <view class="report-li"> |
| | | <view class="report-li-left">题目总数:</view> |
| | | <view class="report-li-right">{{questionDataList.length}}道</view> |
| | | </view> |
| | | <view class="report-li"> |
| | | <view class="report-li-left">用时:</view> |
| | | <view class="report-li-right">{{useTime}}</view> |
| | | </view> |
| | | <view class="report-li"> |
| | | <view class="report-li-left">其中客观题:</view> |
| | | <view class="report-li-right" |
| | | >{{subjectiveTotal}}道,分值{{subjectiveGrade}}分</view |
| | | > |
| | | </view> |
| | | <view class="report-li"> |
| | | <view class="report-li-left">答对:</view> |
| | | <view class="report-li-right" |
| | | ><text class="correct-color">{{correctNum}}</text> 道</view |
| | | > |
| | | </view> |
| | | <view class="report-li"> |
| | | <view class="report-li-left">答错:</view> |
| | | <view class="report-li-right" |
| | | ><text class="error-color">{{subjectiveTotal - correctNum}}</text> |
| | | 道</view |
| | | > |
| | | </view> |
| | | <view class="report-li"> |
| | | <view class="report-li-left">客观题得分:</view> |
| | | <view class="report-li-right" |
| | | ><text class="score-color">{{subjectiveNum}}</text> 分</view |
| | | > |
| | | </view> |
| | | </view> |
| | | <view class="report-content-bottom"> |
| | | <t-button theme="primary" bind:tap="viewAnswer" style="width: 560rpx" |
| | | >查看答案与解析</t-button |
| | | > |
| | | </view> |
| | | </view> |
| | | </t-dialog> |