tanxue 4 mesiacov pred
rodič
commit
7e5f10e70d
2 zmenil súbory, kde vykonal 19 pridanie a 11 odobranie
  1. 10 0
      common/styles/global/pages.scss
  2. 9 11
      pages/study/index.vue

+ 10 - 0
common/styles/global/pages.scss

@@ -235,6 +235,15 @@
 }
 	
 //地图页	
+.ezy-study-swiper{height: 100vh;overflow-y: auto;}
+.ezy-study-swiper1{
+	@media (max-height: 700px) {min-height: 1260rpx;}
+	@media (max-height: 600px) {min-height:1200rpx;}
+}
+.ezy-study-swiper2{
+	@media (max-height: 800px) {min-height:1500rpx;}
+	@media (max-height: 700px) {min-height:1350rpx;}
+}
 .ezy-study-page{
 	width:100%;height: 100vh;display: flex;flex-direction: column;
 	box-sizing: border-box;padding-top:var(--status-bar-height);justify-content: center;position: relative;
@@ -250,6 +259,7 @@
 	.zhong-e-img{background-image: url("@/static/images/study/animal-img3.gif");}
 	.da-e-img{background-image: url("@/static/images/study/animal-img4.gif");}
 }
+
 // 数学
 .ezy-shuxue-study-page{
 	@include ezy-no-repeat-cover(top);background-color: #43c1f6;background-image: url("@/static/images/study/shuxue/study-shuxue-bj.png");

+ 9 - 11
pages/study/index.vue

@@ -1,16 +1,14 @@
 <template>
-	<swiper :circular="false" style="height: 100vh;" @change="onChangeTab" :duration="currentDuration"
-		:current="current">
+	<swiper :circular="false" @change="onChangeTab" :duration="currentDuration"
+		:current="current" class="ezy-study-swiper" :class="'ezy-study-swiper'+ currentProduct" >
 		<swiper-item v-for="(item,index) in zhangList" :key="index">
-			<view class="item flex-col flex-center">
-				<shuxueZhangjie v-if="currentProduct ==1" @clickGradeTerm="clickGradeTerm"
-					@handleCheckCatalogue="handleCheckCatalogue" @listClick="listClick" :gradeTerm='gradeTerm'
-					:options="item">
-				</shuxueZhangjie>
-				<yingyuZhangjie v-if="currentProduct ==2" @clickGradeTerm="clickGradeTerm"
-					@handleCheckCatalogue="handleCheckCatalogue" @listClick="listClick" :gradeTerm='gradeTerm' :options="item">
-				</yingyuZhangjie>
-			</view>
+			<shuxueZhangjie v-if="currentProduct ==1" @clickGradeTerm="clickGradeTerm"
+				@handleCheckCatalogue="handleCheckCatalogue" @listClick="listClick" :gradeTerm='gradeTerm'
+				:options="item">
+			</shuxueZhangjie>
+			<yingyuZhangjie v-if="currentProduct ==2" @clickGradeTerm="clickGradeTerm"
+				@handleCheckCatalogue="handleCheckCatalogue" @listClick="listClick" :gradeTerm='gradeTerm' :options="item">
+			</yingyuZhangjie>
 		</swiper-item>
 	</swiper>
 	<!-- 蛋 -->