wangxy 1 month ago
parent
commit
1c7ab3ff04
1 changed files with 8 additions and 2 deletions
  1. 8 2
      pages/xinshuxue/unitTest.vue

+ 8 - 2
pages/xinshuxue/unitTest.vue

@@ -6,8 +6,8 @@
 		</view>
 
 		<view class="exam-body">
-			<view class="xx-jd-box">
-				<view class="xx-row" v-if="data.total">
+			<view class="xx-jd-box"  v-if="data.total">
+				<view class="xx-row">
 					<view>当前学习进度</view>
 					<view class="text-row">
 						<text class="dq-jd-text">{{data.current+1}}</text>
@@ -20,6 +20,7 @@
 
 
 			<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">
@@ -33,6 +34,11 @@
 						</view>
 					</template>
 				</w-swiper>
+				</template>
+				<template v-else>
+					<!-- 无数据 -->
+				</template>
+				
 				<!--  左右滑动提示  -->
 				<view class="swiper-tip-box">
 					左右滑动查看更多题目