浏览代码

我的课程

常志远 2 年之前
父节点
当前提交
baa6410ffb
共有 2 个文件被更改,包括 228 次插入0 次删除
  1. 9 0
      pages.json
  2. 219 0
      pages/parents/mine/myCourses.vue

+ 9 - 0
pages.json

@@ -374,6 +374,15 @@
             }
             
         }
+        ,{
+            "path" : "pages/parents/mine/myCourses",
+            "style" :                                                                                    
+            {
+                "navigationBarTitleText": "",
+                "enablePullDownRefresh": false
+            }
+            
+        }
     ],
 	"globalStyle": {
 		"navigationStyle": "custom", // 隐藏系统导航栏

+ 219 - 0
pages/parents/mine/myCourses.vue

@@ -0,0 +1,219 @@
+<template>
+	<view>
+		<u-navbar title="我的课程" >
+		
+		</u-navbar>
+		<view class="courses-box">
+			<view class="photo">
+				<img src="../../../assets/img/classschedule.png" alt="">
+			</view>
+			<view class="infos">
+				<view class="title">
+					<view class="text">
+						中国舞十级班
+					</view>
+					<view class="state">
+						进行中
+
+					</view>
+					
+				</view>
+				
+				<view class="tags">
+					<view class="item">
+						二楼舞蹈一教室
+					</view>
+					<view class="item">
+						2023/2/24截止
+					</view>
+				</view>
+				
+				 <view class="teacher">
+				 	<view class="teacher-photo">
+				 		<img src="../../../assets/img/teacherC.png" alt="">
+				 	</view>
+					<view class="teacher-name">
+						陈老师
+					</view>
+					<view class="progress">
+						<u-line-progress :percent="70" :show-percent="false" active-color="#43C9D3"></u-line-progress>
+						<view class="percent">
+							20/36
+						</view>
+					</view>
+				 </view>
+				 
+			</view>
+			
+		</view>
+		
+		<view class="courses-box">
+			<view class="photo">
+				<img src="../../../assets/img/courseD.png" alt="">
+			</view>
+			<view class="infos">
+				<view class="title">
+					<view class="text">
+						中国舞十级班
+					</view>
+					<view class="state">
+						进行中
+		
+					</view>
+					
+				</view>
+				
+				<view class="tags">
+					<view class="item">
+						原足球场
+					</view>
+					<view class="item">
+						2023/2/24截止
+					</view>
+				</view>
+				
+				 <view class="teacher">
+				 	<view class="teacher-photo">
+				 		<img src="../../../assets/img/teachercard.png" alt="">
+				 	</view>
+					<view class="teacher-name">
+						瞿老师
+					</view>
+					<view class="progress">
+						<u-line-progress :percent="100" :show-percent="false" active-color="#43C9D3"></u-line-progress>
+						<view class="percent">
+							92/92
+						</view>
+					</view>
+				 </view>
+				 
+			</view>
+			
+		</view>
+		
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				
+			}
+		},
+		methods: {
+			
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+	.courses-box{
+		display: flex;
+		padding: 24rpx;
+		background-color: #fff;
+		margin: 24rpx 32rpx 0 32rpx;
+		border-radius: 24rpx;
+		.photo{
+			width: 100px;
+			height: 100px;
+			border-radius: 4px;
+			overflow: hidden;
+			img{
+				width: 100%;
+				height: 100%;
+			}
+		}
+		.infos{
+			margin-left: 24rpx;
+			.title{
+				display: flex;
+				justify-content: space-between;
+				.text{
+					color: rgba(51, 51, 51, 1);
+					font-size: 16px;
+					font-weight: bold;
+				}
+				.state{
+					width: 96rpx;
+					line-height: 40rpx;
+					border-radius: 8rpx;
+					background-color: rgba(13, 186, 199, 1);
+					color: rgba(255, 255, 255, 1);
+					font-size: 22rpx;
+					text-align: center;
+					margin-left: 24rpx;
+				}
+			}
+			.tags{
+				display: flex;
+				margin-top: 12rpx;
+				.item{
+					line-height: 40rpx;
+					border-radius: 4px;
+					background-color: rgba(241, 243, 244, 1);
+					color: rgba(136, 133, 133, 1);
+					font-size: 24rpx;
+					text-align: center;
+					padding: 0 8rpx;
+					margin-right: 16rpx;
+				}
+			}
+			.teacher{
+				margin-top: 48rpx;
+				display: flex;
+				align-items: center;
+				.teacher-photo{
+					width: 64rpx;
+					height: 64rpx;
+					border-radius: 50px;
+					overflow: hidden;
+					img{
+						width: 100%;
+						height: 100%;
+					}
+				}
+				.teacher-name{
+					color: rgba(16, 16, 16, 1);
+					margin-left: 24rpx;
+					font-size: 28rpx;
+					font-weight: bold;
+					
+				}
+			}
+			.progress{
+				display: flex;
+				align-items: center;
+				margin-left: 16rpx;
+				/deep/.u-progress{
+					width: 128rpx;
+					height: 4px !important;
+				}
+				.percent{
+					margin-left: 8rpx;
+					color: rgba(119, 119, 119, 1);
+					font-size: 24rpx;
+				}
+			}
+		}
+		@media screen and(max-width:320px){
+			.infos{
+				margin-left: 8rpx;
+				.teacher{
+					margin-top: 24rpx;
+				}
+				.tags{
+					.item{
+						padding: 0;
+						margin-right: 8rpx;
+					}
+				}
+			}
+		}
+	}
+      @media screen and(max-width:320px){
+      	.courses-box{
+			padding-right: 8rpx;
+		}
+      }
+</style>