tanxue 2 mesiacov pred
rodič
commit
18fa7b8f92

+ 11 - 4
common/styles/global/pages.scss

@@ -29,10 +29,17 @@
 
 /*** 首页 ***/
 .client-shouye-page{
-	overflow: auto;height: 100vh;padding-bottom: 150rpx;
-	.shouye-card-box{
-		margin: 20rpx;border: 1rpx solid;border-radius: 6rpx;
+	overflow: auto;height: 100vh;padding-bottom: 150rpx;position: relative;
+	.default-img-box{
+		display: flex;flex-direction: column;position: absolute;left: 50%;top:50%;transform: translate(-50%,-50%);
+		margin-bottom: 100rpx;
+		icon{
+			width: 254rpx;height: 335rpx;box-sizing: border-box;
+			background-image: url("@/static/images/index/index-default-img.png");@include ezy-no-repeat-cover();
+		}
+		text{margin-top: 16rpx;color: #666;}
 	}
+	.shouye-card-box{margin: 20rpx;border: 1rpx solid;border-radius: 6rpx;}
 	// head
 	.card-head-box{
 		height: 70rpx;display: flex;align-items: center;padding: 0 6rpx 0 20rpx;
@@ -364,7 +371,7 @@
 	}
 	.head-img-box{
 		width: 170rpx;height: 170rpx;margin-right: 32rpx;display: flex;align-items: center;
-		// border-radius: 50%;overflow: hidden;
+		border-radius: 50%;overflow: hidden;
 	}
 	.head-img{width: 100%;height: auto;}
 	.head-content-box{

+ 5 - 0
pages/client/ShouYe/shouye.vue

@@ -3,6 +3,11 @@
 		<!-- <view class="icon-title-bjcolor-navBar-box">
 			<text class="nav-bar-title">{{data.realName}}</text>
 		</view> -->
+		<view class="default-img-box">
+			<icon></icon>
+			<text>没有可培训的内容...</text>
+		</view>
+		
 		<!-- 考试 -->
 		<kaoshiCardVue v-if="data.kaoshiList.length" :data="{ count: data.kaoshiCount, ...data.kaoshiList[0] }"></kaoshiCardVue>
 		<!-- 练习 -->