|
@@ -20,24 +20,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="shiti-frame-box">
|
|
<view class="shiti-frame-box">
|
|
|
- <template v-if="data.list">
|
|
|
|
|
- <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>
|
|
|
|
|
- </template>
|
|
|
|
|
- <template v-else>
|
|
|
|
|
- <!-- 无数据 -->
|
|
|
|
|
|
|
+ <template v-if="data.list" >
|
|
|
|
|
+ <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>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
+ <!-- 无数据 -->
|
|
|
|
|
+ <view class="ezy-no-sj" v-else>
|
|
|
|
|
+ <icon></icon>
|
|
|
|
|
+ <text>暂无数据</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
|
|
|
<!-- 左右滑动提示 -->
|
|
<!-- 左右滑动提示 -->
|
|
|
<view class="swiper-tip-box">
|
|
<view class="swiper-tip-box">
|