Browse Source

增加占位图

tanxue 1 month ago
parent
commit
bcf40b60df

+ 11 - 0
common/styles/global/components.scss

@@ -491,4 +491,15 @@ position: absolute;left: 0;top: -4rpx;opacity: 0.4;}
 	width: 580rpx;border-radius: 12rpx;background-color: #fff;padding: 24rpx;
 	width: 580rpx;border-radius: 12rpx;background-color: #fff;padding: 24rpx;
 	.tip-title{padding-top: 24rpx;font-size: 34rpx;color: #333;text-align: center;}
 	.tip-title{padding-top: 24rpx;font-size: 34rpx;color: #333;text-align: center;}
 	.tip-content{font-size: 32rpx;color: #666;margin:32rpx 32rpx 56rpx;line-height: 1.6;text-align: justify;}
 	.tip-content{font-size: 32rpx;color: #666;margin:32rpx 32rpx 56rpx;line-height: 1.6;text-align: justify;}
+}
+
+// 暂无数据
+.ezy-no-sj{
+	display: flex;align-items: center;flex-direction: column;
+	flex: 1;justify-content: center;font-size: 32rpx;color: #666;
+	icon{
+		width: 219rpx;height: 240rpx;@include ezy-no-repeat-cover;
+		margin: 0 auto 32rpx;
+		background-image: url("@/static/images/xuexi/dialog-e-img2.png");
+	}
 }
 }

+ 2 - 12
common/styles/global/pages.scss

@@ -755,7 +755,7 @@
 		.answer-index-box{
 		.answer-index-box{
 			font-size: 24rpx;border: 1rpx solid #499141;border-radius: 24rpx;margin-right: 10rpx;
 			font-size: 24rpx;border: 1rpx solid #499141;border-radius: 24rpx;margin-right: 10rpx;
 			line-height: 1;text-align: center;padding: 2rpx 7rpx;display: inline-block;
 			line-height: 1;text-align: center;padding: 2rpx 7rpx;display: inline-block;
-			flex-shrink: 0;
+			flex-shrink: 0;min-width: 16rpx;
 		}
 		}
 		.tiankong-answer-row{
 		.tiankong-answer-row{
 			word-break: break-all;margin-bottom: 10rpx;margin: 24rpx 0;
 			word-break: break-all;margin-bottom: 10rpx;margin: 24rpx 0;
@@ -1131,7 +1131,7 @@
 	/***** 输入手机号页面*****/
 	/***** 输入手机号页面*****/
 	.my-input-box{
 	.my-input-box{
 		width:540rpx;height: 88rpx;line-height: 88rpx;box-sizing: border-box;
 		width:540rpx;height: 88rpx;line-height: 88rpx;box-sizing: border-box;
-		display: flex;align-items: center;border: 1rpx solid #e3e3e3;border-radius: 16rpx;
+		display: flex;align-items: center;border: 1rpx solid #ddd;border-radius: 16rpx;
 		@include ezy-no-repeat-cover;
 		@include ezy-no-repeat-cover;
 		.my-input {font-size: 32rpx;padding: 0 22rpx;box-sizing: border-box;color: #666;flex: 1;}
 		.my-input {font-size: 32rpx;padding: 0 22rpx;box-sizing: border-box;color: #666;flex: 1;}
 		.uni-input-placeholder {font-size: 32rpx;color: #ccc;}
 		.uni-input-placeholder {font-size: 32rpx;color: #ccc;}
@@ -1866,16 +1866,6 @@
 				}
 				}
 			}
 			}
 		}
 		}
-		// 暂无课程
-		.no-kc-list{
-			display: flex;align-items: center;flex-direction: column;
-			flex: 1;justify-content: center;font-size: 32rpx;color: #666;
-			icon{
-				width: 219rpx;height: 240rpx;@include ezy-no-repeat-cover;
-				margin: 0 auto 32rpx;
-				background-image: url("@/static/images/xuexi/dialog-e-img2.png");
-			}
-		}
 }
 }
 
 
 // 选版本
 // 选版本

+ 6 - 6
pages/chanpinXuanze/index.vue

@@ -11,21 +11,21 @@
 				:class="{active: item.value == data.chanpinActiveSelect}" @click="handleSelectChanpin(item)">{{item.name}}</view>
 				:class="{active: item.value == data.chanpinActiveSelect}" @click="handleSelectChanpin(item)">{{item.name}}</view>
 			</view>
 			</view>
 			<!-- 英语列表 -->
 			<!-- 英语列表 -->
-			<view v-if="data.chanpinActiveSelect == 1"> 
-				<view class="no-kc-list" v-if="data.list.length">
+			<template v-if="data.chanpinActiveSelect == 1"> 
+				<view class="ezy-no-sj" v-if="data.list.length">
 					<icon></icon>
 					<icon></icon>
 					<text>暂无数据</text>
 					<text>暂无数据</text>
 				</view>
 				</view>
-			</view>
+			</template>
 			<!-- 数学列表 -->
 			<!-- 数学列表 -->
 			<shuxueListVue v-if="data.chanpinActiveSelect == 2" :list="data.shuxueList"></shuxueListVue>
 			<shuxueListVue v-if="data.chanpinActiveSelect == 2" :list="data.shuxueList"></shuxueListVue>
 			<!-- 语文列表 -->
 			<!-- 语文列表 -->
-			<view v-if="data.chanpinActiveSelect == 3">
-				<view class="no-kc-list" v-if="data.list.length">
+			<template v-if="data.chanpinActiveSelect == 3">
+				<view class="ezy-no-sj" v-if="data.list.length">
 					<icon></icon>
 					<icon></icon>
 					<text>暂无数据</text>
 					<text>暂无数据</text>
 				</view>
 				</view>
-			</view>
+			</template>
 		</view>
 		</view>
 	</view>
 	</view>
 		<CustomTabBar :currentTabNumber="0"></CustomTabBar>
 		<CustomTabBar :currentTabNumber="0"></CustomTabBar>

+ 19 - 17
pages/xinshuxue/unitTest.vue

@@ -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">