From 339ffc7303ab6914a03b0d31d3b3d402e67cbb98 Mon Sep 17 00:00:00 2001
From: liutong <836164388@qq.com>
Date: Wed, 12 Mar 2025 15:53:14 +0800
Subject: [PATCH] =?UTF-8?q?feat(coach):=20=E6=B7=BB=E5=8A=A0=E7=8F=AD?=
=?UTF-8?q?=E7=BA=A7=E8=AF=A6=E6=83=85=E9=A1=B5=E9=9D=A2=E5=B9=B6=E4=BC=98?=
=?UTF-8?q?=E5=8C=96=E7=8F=AD=E7=BA=A7=E5=88=97=E8=A1=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 新增班级详情页面,包含班级信息、地点、课程、人数和时间等详情
- 在班级列表页面添加打开班级详情的功能
- 优化班级列表页面样式,调整列表项布局
---
pages/coach/class/info.vue | 206 +++++++++++++++++++++++++++++++++++++
pages/coach/class/list.vue | 169 +++---------------------------
2 files changed, 219 insertions(+), 156 deletions(-)
create mode 100644 pages/coach/class/info.vue
diff --git a/pages/coach/class/info.vue b/pages/coach/class/info.vue
new file mode 100644
index 0000000..6066e86
--- /dev/null
+++ b/pages/coach/class/info.vue
@@ -0,0 +1,206 @@
+
+
+
+
+
+ 班级详情
+
+
+
+
+
+
+ 包皮子
+
+
+
+ 班级:少年班
+
+
+
+ 地点:XXXX体育馆 302室
+
+
+
+ 课程:篮球少儿课
+
+
+
+ 人数:30人
+
+
+
+ 时间:2020.05:25 15:30 - 17:30
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/coach/class/list.vue b/pages/coach/class/list.vue
index dbb8dc6..2beed74 100644
--- a/pages/coach/class/list.vue
+++ b/pages/coach/class/list.vue
@@ -13,7 +13,7 @@
-
+
@@ -40,7 +40,7 @@
-
+
@@ -67,7 +67,7 @@
-
+
@@ -111,79 +111,15 @@ export default {
data() {
return {
formData:{},
-
- //课程下拉菜单相关
- show_course:false,//是否显示下拉菜单
- //课程下拉菜单
- course_name:'课程',//选中的下拉菜单名称
- options_course: [
- {
- text: '请选择课程',
- value: '',
- checked: true
- }, {
- text: '羽毛球课程1',
- value: '1'
- }, {
- text: '篮球课程2',
- value: '2'
- }
- ],
-
- //课室下拉菜单相关
- show_classroom:false,//是否显示下拉菜单
- //课程下拉菜单
- classroom_name:'课室',//选中的下拉菜单名称
- options_classroom: [
- {
- text: '请选择课室',
- value: '',
- checked: true
- }, {
- text: '羽毛球201',
- value: '1'
- }, {
- text: '篮球室101',
- value: '2'
- }
- ],
}
},
onLoad() {
},
methods: {
- //选中课程下拉菜单点击事件
- clickCourse(e){
- console.log(e)
- this.course_name = e.text
- this.show_course = true
- },
- //显示下拉菜单
- filterTapCourse() {
- //显示下拉框
- this.$refs.ref_course.show()
- this.show_course = true;
- },
-
-
-
- //选中课室
- clickClassroom(e){
- console.log(e)
- this.classroom_name = e.text
- this.show_classroom = true
- },
- //显示课室下拉菜单
- filterTapClassroom() {
- //显示下拉框
- this.$refs.ref_classroom.show()
- this.show_classroom = true;
- },
-
- //打开课时详情页
- openViewCourseInfo(item){
+ //打开班级详情页
+ openViewClassInfo(item){
uni.navigateTo({
- url: '/pages/coach/course/info'
+ url: '/pages/coach/class/info'
})
},
}
@@ -219,97 +155,18 @@ export default {
color: #FFFFFF;
.section_1 {
- border-radius: 10rpx;
- background-color: #525252;
- ::v-deep .fui-input__wrap{
- border-radius: 10rpx !important;
- background-color: #525252 !important;
- }
- ::v-deep .fui-input__background{
- background-color: #525252 !important;
- }
- .input_item {
- height: 60rpx;
- ::v-deep .uni-input-wrapper{
- .uni-input-placeholder {
- font-size: 28rpx !important;
-
- }
-
- }
- }
- ::v-deep .uni-input-input {
- color: #fff;
- }
- }
-
- .section_2{
- margin-top: 34rpx;
- .ul{
+ .left{
display: flex;
flex-direction: column;
- gap: 24rpx;
- .li{
- background: #404045;
- padding: 50rpx 36rpx 46rpx;
- border-radius: 16rpx;
- display: flex;
- gap: 32rpx;
- .left{
- .pic{
- border-radius: 50%;
- width: 92rpx;
- height: 92rpx;
- }
- }
- .right{
- display: flex;
- flex-direction: column;
- gap: 28rpx;
- .box_1{
- display: flex;
- align-items: center;
- gap: 36rpx;
- .name{
- font-size: 28rpx;
- }
- .btn_box{
- view{
- border: 1px solid #FAD04D;
- border-radius: 10rpx;
- width: 182rpx;
- height: 48rpx;
- line-height: 42rpx;
- text-align: center;
- font-size: 26rpx;
- color: #FAD04D;
- }
- }
- }
- .box_2{
- display: flex;
- align-items: center;
- gap: 44rpx;
- .user_list{
- display: flex;
- align-items: center;
- gap: 14rpx;
- image{
- border-radius: 50%;
- width: 48rpx;
- height: 48rpx;
- }
- }
- .num{}
- }
-
- }
+ justify-content: center;
+ gap: 12rpx;
+ .pic{
+ width: 100rpx;
}
+ .name{}
}
+ .right{}
}
-
-
-
}