Browse Source

样式修改

xuqiaoying 3 năm trước cách đây
mục cha
commit
2df98e7afb

+ 8 - 6
pages3/course/detail.vue

@@ -72,7 +72,7 @@
 							</view>
 							<view v-if="courseItem.teaList && courseItem.teaList.length > 0" class='teacher_names'>
 								<view v-for="(tea, tindex) in courseItem.teaList" :key="tindex" class="names" :class="{nactive: teaIndex == tindex}" @click.stop="switchTeacher(tea, tindex)">
-									<view>{{ tea.aliasName }}</view>
+									<view>主讲:{{ tea.aliasName }}</view>
 								</view>
 							</view>
 							<view v-show="!item.down">
@@ -916,16 +916,18 @@ export default {
 	// 老师名字样式
 .teacher_names {
 	display: flex;
-	margin-bottom: 10rpx;
+	padding-bottom: 15rpx;
+    border-bottom: 2rpx solid #F0F0F0;
 	.names {
-		padding: 12rpx 16rpx;
-		font-size: 24rpx;
-		color: #666666;
-		background: #FFFFFF;
+		padding: 6rpx 12rpx;
+		font-size: 26rpx;
+		color: #969696;
+		background: #F8F8F8;
 		border-radius: 8rpx;
 		margin-right: 10rpx;
 		&.nactive {
 			color: #3F8DFD;
+			background: #F2F7FF;
 		}
 	}
 }

+ 10 - 9
pages3/polyv/css/detail.scss

@@ -170,14 +170,15 @@
   display: flex;
   margin-bottom: 10rpx;
   .names {
-    padding: 12rpx 16rpx;
-    font-size: 24rpx;
-    color: #666666;
-    background: #FFFFFF;
-    border-radius: 8rpx;
-    margin-right: 10rpx;
-    &.nactive {
-      color: #3F8DFD;
-    }
+    padding: 6rpx 12rpx;
+		font-size: 26rpx;
+		color: #969696;
+		background: #F8F8F8;
+		border-radius: 8rpx;
+		margin-right: 10rpx;
+		&.nactive {
+			color: #3F8DFD;
+			background: #F2F7FF;
+		}
   }
 }

+ 2 - 2
pages3/polyv/detail.vue

@@ -129,7 +129,7 @@
           <view v-if="teacherList && teacherList.length > 0" class='teacher_names'>
               <view v-for="(tea, index) in teacherList" :key="index" class="names"
                 :class="{nactive: teacherIndex == index}" @click="activeFunc(tea, index)">
-                {{ tea.aliasName }}
+                主讲:{{ tea.aliasName }}
               </view>
           </view>
           <view class="menuBox onessss" v-for="(item, index) in menuList" :key="index">
@@ -576,7 +576,7 @@
                           </view>
                           <view v-if="courseItem.teaList && courseItem.teaList.length > 0" class='teacher_names' >
                               <view v-for="(tea, tindex) in courseItem.teaList" :key="tindex" class="names"
-                               :class="{nactive: teaIndex == tindex}"  @click.stop="switchTeacher(tea, tindex)">{{tea.aliasName}}</view>
+                               :class="{nactive: teaIndex == tindex}"  @click.stop="switchTeacher(tea, tindex)">主讲:{{tea.aliasName}}</view>
                           </view>
                           <view class="course_pros">
                             学习进度

BIN
pages5/static/erCode.png