|
|
@@ -1,41 +1,45 @@
|
|
|
<template>
|
|
|
<view class="ezy-exam-page">
|
|
|
-
|
|
|
<view class="icon-title-navBar-box">
|
|
|
<view @click="handleBack" class="nav-bar-icon"></view>
|
|
|
<text class="nav-bar-title">单元测试</text>
|
|
|
</view>
|
|
|
|
|
|
- <view>
|
|
|
- <view>
|
|
|
- <view>当前学习进度</view>
|
|
|
- <view>{{data.current+1}}/{{data.total}}</view>
|
|
|
+ <view class="exam-body">
|
|
|
+ <view class="xx-jd-box">
|
|
|
+ <view class="xx-row">
|
|
|
+ <view>当前学习进度</view>
|
|
|
+ <view class="text-row">
|
|
|
+ <text class="dq-jd-text">{{data.current+1}}</text>
|
|
|
+ <text class="dq-jd-line">/</text>{{data.total}}</view>
|
|
|
+ </view>
|
|
|
+ <progress :percent="(data.current+1)/data.total * 100" class="exam-progress-box"
|
|
|
+ stroke-width="10" backgroundColor="#3c7dfd" activeColor="#ffd11c"/>
|
|
|
+ </view>
|
|
|
+
|
|
|
+
|
|
|
+ <view class="shiti-frame-box">
|
|
|
+ <w-swiper :list="data.list" :current="data.current" class="ezy-exam-swiper" @change="onSwiperChange">
|
|
|
+ <template v-slot:default="{item}">
|
|
|
+ <view class="body" v-if="item.mta_show">
|
|
|
+ <danxuan :question="item" v-if="item.type == '1'"></danxuan>
|
|
|
+ <panduan :question="item" v-if="item.type == '2'"></panduan>
|
|
|
+ <tiankong :question="item" v-if="item.type == '3'" :placeholders="item.placeholders"></tiankong>
|
|
|
+ <!-- 交卷按钮 -->
|
|
|
+ <view class="shiti-jj-btn" v-if="item.stId == data.list[data.total-1].stId"
|
|
|
+ @click="handleSubmit"></view>
|
|
|
+ </view>
|
|
|
+ </template>
|
|
|
+ </w-swiper>
|
|
|
+ <!-- 左右滑动提示 -->
|
|
|
+ <view class="swiper-tip-box">
|
|
|
+ 左右滑动查看更多题目
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- <progress :percent="data.current/data.total * 100" :border-radius="30" stroke-width="10" />
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="shiti-frame-box">
|
|
|
- <w-swiper :list="data.list" :current="data.current" class="ezy-exam-swiper" @change="onSwiperChange">
|
|
|
- <template v-slot:default="{item}">
|
|
|
- <view class="body" v-if="item.mta_show">
|
|
|
- <danxuan :question="item" v-if="item.type == '1'"></danxuan>
|
|
|
- <panduan :question="item" v-if="item.type == '2'"></panduan>
|
|
|
- <tiankong :question="item" v-if="item.type == '3'" :placeholders="item.placeholders"></tiankong>
|
|
|
- <button type="primary" v-if="item.stId == data.list[data.total-1].stId"
|
|
|
- @click="handleSubmit">交卷</button>
|
|
|
- </view>
|
|
|
- </template>
|
|
|
- </w-swiper>
|
|
|
</view>
|
|
|
|
|
|
|
|
|
-
|
|
|
- <!-- 左右滑动提示 -->
|
|
|
- <view>
|
|
|
- <view>
|
|
|
- < <text>左右滑动查看更多题目 1</text>>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
+
|
|
|
|
|
|
<!-- 填空 -->
|
|
|
<FillItem :value="result" ref="popupRef" @blur="onBlur"></FillItem>
|