tanxue 6 дней назад
Родитель
Сommit
f2ca108830

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

@@ -255,6 +255,7 @@ $titleBar-tabBar-page: calc(100vh - var(--status-bar-height));
 	display: flex;align-items: center;justify-content: center;overflow: hidden;z-index: 998;
   }
 
+
 // 小的提示弹窗
 .ezy-tip-dialog{
 	.tip-content-box{@include ezy-no-repeat-cover;box-sizing: border-box;text-align:center;}
@@ -355,6 +356,19 @@ $titleBar-tabBar-page: calc(100vh - var(--status-bar-height));
 	@include ezy-no-repeat-cover;background-image: url("@/static/images/my/jf-qb.png");}
 	.jf-text{min-width: 60rpx;text-align: center;color: #fff;}
 }
+
+/***** 学科tab *****/
+.ezy-xueke-tab-box{
+	display: flex;justify-content: center;margin-bottom: 24rpx;
+	.tab-item{
+		width: 242rpx;height: 90rpx;line-height: 90rpx;@include ezy-no-repeat-cover;
+		background-image: url("@/static/images/xuanke/tab-item-bj.png");
+		text-align: center;color: #a6a6a6;    
+	}
+	.tab-item.active{
+		color: #fff;background-image: url("@/static/images/xuanke/tab-item-a.png");
+	}
+}
 	
 // tab页面
 .ezy-tab-border{

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

@@ -247,16 +247,6 @@
 //  选课
 .ezy-xuanke-page{
 	width: 100%;height: 100vh;display: flex;flex-direction: column;padding-bottom: 100rpx;overflow: hidden; 
-		.xuanke-tab-box{display: flex;justify-content: center;margin-bottom: 24rpx;}
-		.tab-item{
-			width: 242rpx;height: 90rpx;line-height: 90rpx;@include ezy-no-repeat-cover;
-			background-image: url("@/static/images/xuanke/tab-item-bj.png");
-			text-align: center;color: #a6a6a6;    
-		}
-		.tab-item.active{
-			color: #fff;background-image: url("@/static/images/xuanke/tab-item-a.png");
-		}
-		
 		.sx-card-list{overflow-y: auto;flex: 1;padding: 24rpx 0 0;}
 		.sx-card-box{
 			border-radius: 16rpx;margin: 0 24rpx 32rpx;padding: 32rpx;

+ 1 - 1
pages/chanpinXuanze/index.vue

@@ -7,7 +7,7 @@
     <view class="ezy-page-body">
       <!-- 头部区域 -->
 
-      <view class="xuanke-tab-box">
+      <view class="ezy-xueke-tab-box">
         <!-- 动画按钮 -->
         <ezyActiveVue class="ezy-btn-active tab-item" v-for="item in data.list"
                       :key="item.value"