zs 2 лет назад
Родитель
Сommit
1cfd67ead6

+ 1 - 0
pages/stuAdmin/archives/list.less

@@ -29,6 +29,7 @@
                 width: 40vw;
                 margin: 0 2vw;
                 padding: 1vw 0;
+                background: -webkit-linear-gradient(right, lightblue, #53C9F8);
             }
         }
     }

+ 1 - 0
pages/stuAdmin/archives/list.wxss

@@ -25,4 +25,5 @@
   width: 40vw;
   margin: 0 2vw;
   padding: 1vw 0;
+  background: -webkit-linear-gradient(right, lightblue, #53C9F8);
 }

+ 17 - 2
pages/stuAdmin/course/info.js

@@ -9,12 +9,27 @@ Page({
         //学员
         student: {},
         // 教练
-        coach: {}
+        coach: {},
+        // 选中
+        tabs: {
+            active: '0',
+            menu: [
+                { title: '课程信息', active: '0' },
+                { title: '教练人员', active: '1' },
+                { title: '学生人员', active: '2' },
+            ]
+        },
     },
     // 跳转菜单
     back(e) {
         wx.navigateBack({ delta: 1 })
     },
+    // 选项卡选择
+    tabsChange: function (e) {
+        const that = this;
+        let data = e.detail;
+        that.setData({ 'tabs.active': data.active })
+    },
     /**
      * 生命周期函数--监听页面加载
      */
@@ -51,7 +66,7 @@ Page({
                         }
                         const coach = await app.$get(`/lessonCoach`, { lesson_id: that.data.id })
                         if (coach.errcode == '0') that.setData({ coach: coach.data })
-                        const student = await app.$get(`/lessonStudent`, { lesson_id: that.data.id, try_status: '1' })
+                        const student = await app.$get(`/lessonStudent`, { lesson_id: that.data.id })
                         if (student.errcode == '0') that.setData({ student: student.data })
                         that.setData({ form: arr.data })
                     } else {

+ 6 - 5
pages/stuAdmin/course/info.json

@@ -1,6 +1,7 @@
 {
-    "component": true,
-    "usingComponents": {
-      "mobile-main": "/commpents/mobile-frame/index"
-    }
-  }
+  "component": true,
+  "usingComponents": {
+    "mobile-main": "/commpents/mobile-frame/index",
+    "s-tab": "/commpents/tabs/index"
+  }
+}

+ 93 - 26
pages/stuAdmin/course/info.less

@@ -2,37 +2,104 @@
     background-color: var(--mainColor);
 
     .one {
-        width: 96vw;
-        padding: 0 2vw;
-        margin: 2vw 0 0 0;
-
-        .one_1 {
-            display: flex;
-            flex-direction: row;
-            justify-content: space-between;
-            border: 1px dashed var(--f85Color);
-            border-radius: 5px;
-            margin: 0 0 10px 0;
-            padding: 10px;
-
-            .text {
-                color: var(--f85Color);
-                font-size: var(--font16Size);
-            }
+        width: 100vw;
+        margin: 0 0 2vw 0;
+    }
 
-            .text1 {
-                font-size: var(--font16Size);
-            }
+    .two {
+        position: relative;
+        flex-grow: 1;
+
+        .a {
+            height: 83vh;
+
+            .one {
+                width: 96vw;
+                padding: 0 2vw;
 
-            .image {
-                width: 15vw;
-                height: 15vw;
+                .one_1 {
+                    display: flex;
+                    flex-direction: row;
+                    justify-content: space-between;
+                    border: 1px dashed var(--f85Color);
+                    border-radius: 5px;
+                    margin: 0 0 10px 0;
+                    padding: 10px;
+
+                    .text {
+                        color: var(--f85Color);
+                        font-size: var(--font16Size);
+                    }
+
+                    .text1 {
+                        font-size: var(--font16Size);
+                    }
+
+                    .image {
+                        width: 15vw;
+                        height: 15vw;
+                    }
+
+                    .name {
+                        display: flex;
+                        flex-direction: column;
+                    }
+                }
             }
+        }
 
-            .name {
-                display: flex;
-                flex-direction: column;
+        .b {
+            height: 83vh;
+
+            .list {
+                background-color: var(--f9Color);
+                margin: 0 0 2vw 0;
+                padding: 2vw;
+                margin: 0 2vw 2vw 2vw;
+                border-radius: 5px;
+                border: 1px dashed var(--f85Color);
+
+                .name {
+                    font-size: var(--font18Szie);
+                    font-weight: bold;
+                    margin: 0 0 1vw 0;
+                }
+
+                .other {
+                    margin: 0 0 1vw 0;
+
+                    .other_1 {
+                        margin: 0 0 1vw 0;
+                        font-size: var(--font16Size);
+
+                        text:first-child {
+                            color: var(--f85Color);
+                        }
+                    }
+                }
+
+                .btn {
+                    text-align: center;
+
+                    button {
+                        margin: 0 2vw;
+                        font-size: var(--font14Size);
+                    }
+                }
             }
         }
     }
+}
+
+.scroll-view {
+    position: absolute;
+    top: 0;
+    left: 0;
+    right: 0;
+    bottom: 0;
+
+    .list-scroll-view {
+        display: flex;
+        flex-direction: column;
+    }
 }

+ 82 - 45
pages/stuAdmin/course/info.wxml

@@ -1,53 +1,90 @@
 <mobile-main frameStyle="{{frameStyle}}" bind:back="back">
     <view slot="info" class="container main">
         <view class="one">
-            <view class="one_1">
-                <text class="text">课程标题:</text>
-                <text class="text1">{{form.title||'暂无'}}</text>
-            </view>
-            <view class="one_1">
-                <text class="text">学校名称:</text>
-                <text class="text1">{{form.zhSchool||'暂无'}}</text>
-            </view>
-            <view class="one_1">
-                <text class="text">人数上限:</text>
-                <text class="text1">{{form.limit||'暂无'}}人</text>
-            </view>
-            <view class="one_1">
-                <text class="text">开始时间:</text>
-                <text class="text1">{{form.time_start||'暂无'}}</text>
-            </view>
-            <view class="one_1">
-                <text class="text">结束时间:</text>
-                <text class="text1">{{form.time_end||'暂无'}}</text>
-            </view>
-            <view class="one_1">
-                <text class="text">状态:</text>
-                <text class="text1">{{form.zhStatus||'暂无'}}</text>
-            </view>
-            <view class="one_1">
-                <text class="text">课程费(元):</text>
-                <text class="text1">{{form.money||'暂无'}}</text>
-            </view>
-            <view class="one_1">
-                <text class="text">退款期限:</text>
-                <text class="text1">{{form.refund_hour||'暂无'}}</text>
-            </view>
-            <view class="one_1">
-                <text class="text">简介:</text>
-                <text class="text1">{{form.brief||'暂无'}}</text>
+            <s-tab tabs="{{tabs}}" bind:tabsChange="tabsChange"></s-tab>
+        </view>
+        <view class="two">
+            <view wx:if="{{tabs.active=='0'}}" class="a">
+                <scroll-view scroll-y="true" class="scroll-view">
+                    <view class="list-scroll-view">
+                        <view class="one">
+                            <view class="one_1">
+                                <text class="text">课程标题:</text>
+                                <text class="text1">{{form.title||'暂无'}}</text>
+                            </view>
+                            <view class="one_1">
+                                <text class="text">学校名称:</text>
+                                <text class="text1">{{form.zhSchool||'暂无'}}</text>
+                            </view>
+                            <view class="one_1">
+                                <text class="text">人数上限:</text>
+                                <text class="text1">{{form.limit||'暂无'}}人</text>
+                            </view>
+                            <view class="one_1">
+                                <text class="text">开始时间:</text>
+                                <text class="text1">{{form.time_start||'暂无'}}</text>
+                            </view>
+                            <view class="one_1">
+                                <text class="text">结束时间:</text>
+                                <text class="text1">{{form.time_end||'暂无'}}</text>
+                            </view>
+                            <view class="one_1">
+                                <text class="text">状态:</text>
+                                <text class="text1">{{form.zhStatus||'暂无'}}</text>
+                            </view>
+                            <view class="one_1">
+                                <text class="text">课程费(元):</text>
+                                <text class="text1">{{form.money||'暂无'}}</text>
+                            </view>
+                            <view class="one_1">
+                                <text class="text">退款期限:</text>
+                                <text class="text1">{{form.refund_hour||'暂无'}}</text>
+                            </view>
+                            <view class="one_1">
+                                <text class="text">简介:</text>
+                                <text class="text1">{{form.brief||'暂无'}}</text>
+                            </view>
+                        </view>
+                    </view>
+                </scroll-view>
             </view>
-            <view class="one_1" wx:if="{{coach&&coach.length>0}}">
-                <text class="text">教练人员:</text>
-                <view class="name">
-                    <text wx:for="{{coach}}" wx:key="item" class="text1 textOver">姓名:{{item.coach_id_name||'暂无'}}</text>
-                </view>
+            <view wx:elif="{{tabs.active=='1'}}" class="b">
+                <scroll-view scroll-y="true" class="scroll-view" bindscrolltolower="toPage">
+                    <view class="list-scroll-view">
+                        <view class="list" wx:for="{{coach}}" wx:key="index">
+                            <view class="name">{{item.coach_id_name||'暂无'}}</view>
+                            <view class="other">
+                                <view class="other_1">
+                                    <text>课程名称:</text>
+                                    <text>{{item.lesson_id_title||'暂无'}}</text>
+                                </view>
+                                <view class="other_1">
+                                    <text>所属学校:</text>
+                                    <text>{{item.school_id_name||'暂无'}}</text>
+                                </view>
+                            </view>
+                        </view>
+                    </view>
+                </scroll-view>
             </view>
-            <view class="one_1" wx:if="{{student&&student.length>0}}">
-                <text class="text">学生人员:</text>
-                <view class="name">
-                    <text wx:for="{{student}}" wx:key="item" class="text1 textOver">姓名:{{item.student_id_name||'暂无'}}</text>
-                </view>
+            <view wx:elif="{{tabs.active=='2'}}" class="b">
+                <scroll-view scroll-y="true" class="scroll-view" bindscrolltolower="toPage">
+                    <view class="list-scroll-view">
+                        <view class="list" wx:for="{{student}}" wx:key="index">
+                            <view class="name">{{item.student_id_name||'暂无'}}</view>
+                            <view class="other">
+                                <view class="other_1">
+                                    <text>是否试课:</text>
+                                    <text>{{item.is_try=='0'?'非试课':item.is_try=='1'?'试课':'暂无'}}</text>
+                                </view>
+                                <view class="other_1">
+                                    <text>所属学院:</text>
+                                    <text>{{item.school_id_name||'暂无'}}</text>
+                                </view>
+                            </view>
+                        </view>
+                    </view>
+                </scroll-view>
             </view>
         </view>
     </view>

+ 60 - 6
pages/stuAdmin/course/info.wxss

@@ -2,11 +2,21 @@
   background-color: var(--mainColor);
 }
 .main .one {
+  width: 100vw;
+  margin: 0 0 2vw 0;
+}
+.main .two {
+  position: relative;
+  flex-grow: 1;
+}
+.main .two .a {
+  height: 83vh;
+}
+.main .two .a .one {
   width: 96vw;
   padding: 0 2vw;
-  margin: 2vw 0 0 0;
 }
-.main .one .one_1 {
+.main .two .a .one .one_1 {
   display: flex;
   flex-direction: row;
   justify-content: space-between;
@@ -15,18 +25,62 @@
   margin: 0 0 10px 0;
   padding: 10px;
 }
-.main .one .one_1 .text {
+.main .two .a .one .one_1 .text {
   color: var(--f85Color);
   font-size: var(--font16Size);
 }
-.main .one .one_1 .text1 {
+.main .two .a .one .one_1 .text1 {
   font-size: var(--font16Size);
 }
-.main .one .one_1 .image {
+.main .two .a .one .one_1 .image {
   width: 15vw;
   height: 15vw;
 }
-.main .one .one_1 .name {
+.main .two .a .one .one_1 .name {
+  display: flex;
+  flex-direction: column;
+}
+.main .two .b {
+  height: 83vh;
+}
+.main .two .b .list {
+  background-color: var(--f9Color);
+  margin: 0 0 2vw 0;
+  padding: 2vw;
+  margin: 0 2vw 2vw 2vw;
+  border-radius: 5px;
+  border: 1px dashed var(--f85Color);
+}
+.main .two .b .list .name {
+  font-size: var(--font18Szie);
+  font-weight: bold;
+  margin: 0 0 1vw 0;
+}
+.main .two .b .list .other {
+  margin: 0 0 1vw 0;
+}
+.main .two .b .list .other .other_1 {
+  margin: 0 0 1vw 0;
+  font-size: var(--font16Size);
+}
+.main .two .b .list .other .other_1 text:first-child {
+  color: var(--f85Color);
+}
+.main .two .b .list .btn {
+  text-align: center;
+}
+.main .two .b .list .btn button {
+  margin: 0 2vw;
+  font-size: var(--font14Size);
+}
+.scroll-view {
+  position: absolute;
+  top: 0;
+  left: 0;
+  right: 0;
+  bottom: 0;
+}
+.scroll-view .list-scroll-view {
   display: flex;
   flex-direction: column;
 }

+ 1 - 0
pages/stuAdmin/course/list.less

@@ -68,6 +68,7 @@
 
                 button {
                     font-size: var(--font14Size);
+                    margin: 0 0 0 2vw;
                     background: -webkit-linear-gradient(right, lightblue, #53C9F8);
                 }
             }

+ 2 - 0
pages/stuAdmin/course/list.wxml

@@ -25,6 +25,7 @@
                             </view>
                             <view class="btn">
                                 <button size="mini" type="primary" bindtap="toView" data-item="{{item}}">详细信息</button>
+                                <button size="mini" type="primary" bindtap="toDrop" data-item="{{item}}">退课</button>
                             </view>
                         </view>
                     </view>
@@ -46,6 +47,7 @@
                             </view>
                             <view class="btn">
                                 <button size="mini" type="primary" bindtap="toView" data-item="{{item}}">详细信息</button>
+                                <button size="mini" type="primary" bindtap="toDrop" data-item="{{item}}">退课</button>
                             </view>
                         </view>
                     </view>

+ 1 - 0
pages/stuAdmin/course/list.wxss

@@ -56,6 +56,7 @@
 }
 .main .two .list .btn button {
   font-size: var(--font14Size);
+  margin: 0 0 0 2vw;
   background: -webkit-linear-gradient(right, lightblue, #53C9F8);
 }
 .scroll-view {

+ 17 - 2
pages/stuAdmin/course/sign.js

@@ -12,12 +12,27 @@ Page({
         //学员
         student: {},
         // 教练
-        coach: {}
+        coach: {},
+        // 选中
+        tabs: {
+            active: '0',
+            menu: [
+                { title: '课程信息', active: '0' },
+                { title: '教练人员', active: '1' },
+                { title: '学生人员', active: '2' },
+            ]
+        },
     },
     // 跳转菜单
     back(e) {
         wx.navigateBack({ delta: 1 })
     },
+    // 选项卡选择
+    tabsChange: function (e) {
+        const that = this;
+        let data = e.detail;
+        that.setData({ 'tabs.active': data.active })
+    },
     //试课
     toClass: function () {
         const that = this;
@@ -96,7 +111,7 @@ Page({
                         }
                         const coach = await app.$get(`/lessonCoach`, { lesson_id: that.data.id })
                         if (coach.errcode == '0') that.setData({ coach: coach.data })
-                        const student = await app.$get(`/lessonStudent`, { lesson_id: that.data.id, try_status: '1' })
+                        const student = await app.$get(`/lessonStudent`, { lesson_id: that.data.id })
                         if (student.errcode == '0') that.setData({ student: student.data })
                         that.setData({ form: arr.data })
                     } else {

+ 6 - 5
pages/stuAdmin/course/sign.json

@@ -1,6 +1,7 @@
 {
-    "component": true,
-    "usingComponents": {
-      "mobile-main": "/commpents/mobile-frame/index"
-    }
-  }
+  "component": true,
+  "usingComponents": {
+    "mobile-main": "/commpents/mobile-frame/index",
+    "s-tab": "/commpents/tabs/index"
+  }
+}

+ 106 - 39
pages/stuAdmin/course/sign.less

@@ -2,54 +2,121 @@
     background-color: var(--mainColor);
 
     .one {
-        width: 96vw;
-        padding: 0 2vw;
-        margin: 2vw 0 0 0;
-
-        .one_1 {
-            display: flex;
-            flex-direction: row;
-            justify-content: space-between;
-            border: 1px dashed var(--f85Color);
-            border-radius: 5px;
-            margin: 0 0 10px 0;
-            padding: 10px;
-
-            .text {
-                color: var(--f85Color);
-                font-size: var(--font16Size);
-            }
+        width: 100vw;
+        margin: 0 0 2vw 0;
+    }
 
-            .text1 {
-                font-size: var(--font16Size);
-            }
+    .two {
+        position: relative;
+        flex-grow: 1;
 
-            .image {
-                width: 15vw;
-                height: 15vw;
-            }
+        .a {
+            height: 83vh;
 
-            .name {
-                display: flex;
-                flex-direction: column;
-            }
+            .one {
+                width: 96vw;
+                padding: 0 2vw;
+
+                .one_1 {
+                    display: flex;
+                    flex-direction: row;
+                    justify-content: space-between;
+                    border: 1px dashed var(--f85Color);
+                    border-radius: 5px;
+                    margin: 0 0 10px 0;
+                    padding: 10px;
+
+                    .text {
+                        color: var(--f85Color);
+                        font-size: var(--font16Size);
+                    }
+
+                    .text1 {
+                        font-size: var(--font16Size);
+                    }
+
+                    .image {
+                        width: 15vw;
+                        height: 15vw;
+                    }
+
+                    .name {
+                        display: flex;
+                        flex-direction: column;
+                    }
+
+                    button {
+                        font-size: var(--font14Size);
+                        margin: 0;
+                        background: -webkit-linear-gradient(right, lightblue, #53C9F8);
+                    }
+                }
 
-            button {
-                margin: 0;
-                font-size: var(--font14Size);
-                background: -webkit-linear-gradient(right, lightblue, #53C9F8);
+                .btn {
+                    width: 92vw;
+                    text-align: center;
+                    margin: 2vw 0 0 0;
+
+                    button {
+                        font-size: var(--font14Size);
+                        background: -webkit-linear-gradient(right, lightblue, #53C9F8);
+                    }
+                }
             }
         }
 
-        .btn {
-            width: 92vw;
-            text-align: center;
-            margin: 2vw 0 0 0;
+        .b {
+            height: 83vh;
+
+            .list {
+                background-color: var(--f9Color);
+                margin: 0 0 2vw 0;
+                padding: 2vw;
+                margin: 0 2vw 2vw 2vw;
+                border-radius: 5px;
+                border: 1px dashed var(--f85Color);
+
+                .name {
+                    font-size: var(--font18Szie);
+                    font-weight: bold;
+                    margin: 0 0 1vw 0;
+                }
+
+                .other {
+                    margin: 0 0 1vw 0;
+
+                    .other_1 {
+                        margin: 0 0 1vw 0;
+                        font-size: var(--font16Size);
 
-            button {
-                font-size: var(--font14Size);
-                background: -webkit-linear-gradient(right, lightblue, #53C9F8);
+                        text:first-child {
+                            color: var(--f85Color);
+                        }
+                    }
+                }
+
+                .btn {
+                    text-align: center;
+
+                    button {
+                        margin: 0 2vw;
+                        font-size: var(--font14Size);
+                    }
+                }
             }
         }
     }
+}
+
+.scroll-view {
+    position: absolute;
+    top: 0;
+    left: 0;
+    right: 0;
+    bottom: 0;
+
+    .list-scroll-view {
+        display: flex;
+        flex-direction: column;
+    }
 }

+ 91 - 54
pages/stuAdmin/course/sign.wxml

@@ -1,61 +1,98 @@
 <mobile-main frameStyle="{{frameStyle}}" bind:back="back">
     <view slot="info" class="container main">
-        <form class="one" catchsubmit="onSubmit">
-            <view class="one_1">
-                <text class="text">课程标题:</text>
-                <text class="text1">{{form.title||'暂无'}}</text>
+        <view class="one">
+            <s-tab tabs="{{tabs}}" bind:tabsChange="tabsChange"></s-tab>
+        </view>
+        <view class="two">
+            <view wx:if="{{tabs.active=='0'}}" class="a">
+                <scroll-view scroll-y="true" class="scroll-view">
+                    <view class="list-scroll-view">
+                        <form class="one" catchsubmit="onSubmit">
+                            <view class="one_1">
+                                <text class="text">课程标题:</text>
+                                <text class="text1">{{form.title||'暂无'}}</text>
+                            </view>
+                            <view class="one_1">
+                                <text class="text">学校名称:</text>
+                                <text class="text1">{{form.zhSchool||'暂无'}}</text>
+                            </view>
+                            <view class="one_1">
+                                <text class="text">人数上限:</text>
+                                <text class="text1">{{form.limit||'暂无'}}人</text>
+                            </view>
+                            <view class="one_1">
+                                <text class="text">开始时间:</text>
+                                <text class="text1">{{form.time_start||'暂无'}}</text>
+                            </view>
+                            <view class="one_1">
+                                <text class="text">结束时间:</text>
+                                <text class="text1">{{form.time_end||'暂无'}}</text>
+                            </view>
+                            <view class="one_1">
+                                <text class="text">状态:</text>
+                                <text class="text1">{{form.zhStatus||'暂无'}}</text>
+                            </view>
+                            <view class="one_1">
+                                <text class="text">课程费(元):</text>
+                                <text class="text1">{{form.money||'暂无'}}</text>
+                            </view>
+                            <view class="one_1">
+                                <text class="text">退款期限:</text>
+                                <text class="text1">{{form.refund_hour||'暂无'}}</text>
+                            </view>
+                            <view class="one_1">
+                                <text class="text">简介:</text>
+                                <text class="text1">{{form.brief||'暂无'}}</text>
+                            </view>
+                            <view class="one_1" wx:if="{{form.type=='0'}}">
+                                <text class="text">是否试课:</text>
+                                <button type="primary" size="mini" bindtap="toClass">试课</button>
+                            </view>
+                            <view class="btn">
+                                <button type="primary" size="mini" formType="submit">报名</button>
+                            </view>
+                        </form>
+                    </view>
+                </scroll-view>
             </view>
-            <view class="one_1">
-                <text class="text">学校名称:</text>
-                <text class="text1">{{form.zhSchool||'暂无'}}</text>
+            <view wx:elif="{{tabs.active=='1'}}" class="b">
+                <scroll-view scroll-y="true" class="scroll-view" bindscrolltolower="toPage">
+                    <view class="list-scroll-view">
+                        <view class="list" wx:for="{{coach}}" wx:key="index">
+                            <view class="name">{{item.coach_id_name||'暂无'}}</view>
+                            <view class="other">
+                                <view class="other_1">
+                                    <text>课程名称:</text>
+                                    <text>{{item.lesson_id_title||'暂无'}}</text>
+                                </view>
+                                <view class="other_1">
+                                    <text>所属学校:</text>
+                                    <text>{{item.school_id_name||'暂无'}}</text>
+                                </view>
+                            </view>
+                        </view>
+                    </view>
+                </scroll-view>
             </view>
-            <view class="one_1">
-                <text class="text">人数上限:</text>
-                <text class="text1">{{form.limit||'暂无'}}人</text>
+            <view wx:elif="{{tabs.active=='2'}}" class="b">
+                <scroll-view scroll-y="true" class="scroll-view" bindscrolltolower="toPage">
+                    <view class="list-scroll-view">
+                        <view class="list" wx:for="{{student}}" wx:key="index">
+                            <view class="name">{{item.student_id_name||'暂无'}}</view>
+                            <view class="other">
+                                <view class="other_1">
+                                    <text>是否试课:</text>
+                                    <text>{{item.is_try=='0'?'非试课':item.is_try=='1'?'试课':'暂无'}}</text>
+                                </view>
+                                <view class="other_1">
+                                    <text>所属学院:</text>
+                                    <text>{{item.school_id_name||'暂无'}}</text>
+                                </view>
+                            </view>
+                        </view>
+                    </view>
+                </scroll-view>
             </view>
-            <view class="one_1">
-                <text class="text">开始时间:</text>
-                <text class="text1">{{form.time_start||'暂无'}}</text>
-            </view>
-            <view class="one_1">
-                <text class="text">结束时间:</text>
-                <text class="text1">{{form.time_end||'暂无'}}</text>
-            </view>
-            <view class="one_1">
-                <text class="text">状态:</text>
-                <text class="text1">{{form.zhStatus||'暂无'}}</text>
-            </view>
-            <view class="one_1">
-                <text class="text">课程费(元):</text>
-                <text class="text1">{{form.money||'暂无'}}</text>
-            </view>
-            <view class="one_1">
-                <text class="text">退款期限:</text>
-                <text class="text1">{{form.refund_hour||'暂无'}}</text>
-            </view>
-            <view class="one_1">
-                <text class="text">简介:</text>
-                <text class="text1">{{form.brief||'暂无'}}</text>
-            </view>
-            <view class="one_1" wx:if="{{coach&&coach.length>0}}">
-                <text class="text">教练人员:</text>
-                <view class="name">
-                    <text wx:for="{{coach}}" wx:key="item" class="text1 textOver">姓名:{{item.coach_id_name||'暂无'}}</text>
-                </view>
-            </view>
-            <view class="one_1" wx:if="{{student&&student.length>0}}">
-                <text class="text">学生人员:</text>
-                <view class="name">
-                    <text wx:for="{{student}}" wx:key="item" class="text1 textOver">姓名:{{item.student_id_name||'暂无'}}</text>
-                </view>
-            </view>
-            <view class="one_1" wx:if="{{form.type=='0'}}">
-                <text class="text">是否试课:</text>
-                <button type="primary" size="mini" bindtap="toClass">试课</button>
-            </view>
-            <view class="btn">
-                <button type="primary" size="mini" formType="submit">报名</button>
-            </view>
-        </form>
+        </view>
     </view>
 </mobile-main>

+ 64 - 10
pages/stuAdmin/course/sign.wxss

@@ -2,11 +2,21 @@
   background-color: var(--mainColor);
 }
 .main .one {
+  width: 100vw;
+  margin: 0 0 2vw 0;
+}
+.main .two {
+  position: relative;
+  flex-grow: 1;
+}
+.main .two .a {
+  height: 83vh;
+}
+.main .two .a .one {
   width: 96vw;
   padding: 0 2vw;
-  margin: 2vw 0 0 0;
 }
-.main .one .one_1 {
+.main .two .a .one .one_1 {
   display: flex;
   flex-direction: row;
   justify-content: space-between;
@@ -15,32 +25,76 @@
   margin: 0 0 10px 0;
   padding: 10px;
 }
-.main .one .one_1 .text {
+.main .two .a .one .one_1 .text {
   color: var(--f85Color);
   font-size: var(--font16Size);
 }
-.main .one .one_1 .text1 {
+.main .two .a .one .one_1 .text1 {
   font-size: var(--font16Size);
 }
-.main .one .one_1 .image {
+.main .two .a .one .one_1 .image {
   width: 15vw;
   height: 15vw;
 }
-.main .one .one_1 .name {
+.main .two .a .one .one_1 .name {
   display: flex;
   flex-direction: column;
 }
-.main .one .one_1 button {
-  margin: 0;
+.main .two .a .one .one_1 button {
   font-size: var(--font14Size);
+  margin: 0;
   background: -webkit-linear-gradient(right, lightblue, #53C9F8);
 }
-.main .one .btn {
+.main .two .a .one .btn {
   width: 92vw;
   text-align: center;
   margin: 2vw 0 0 0;
 }
-.main .one .btn button {
+.main .two .a .one .btn button {
   font-size: var(--font14Size);
   background: -webkit-linear-gradient(right, lightblue, #53C9F8);
 }
+.main .two .b {
+  height: 83vh;
+}
+.main .two .b .list {
+  background-color: var(--f9Color);
+  margin: 0 0 2vw 0;
+  padding: 2vw;
+  margin: 0 2vw 2vw 2vw;
+  border-radius: 5px;
+  border: 1px dashed var(--f85Color);
+}
+.main .two .b .list .name {
+  font-size: var(--font18Szie);
+  font-weight: bold;
+  margin: 0 0 1vw 0;
+}
+.main .two .b .list .other {
+  margin: 0 0 1vw 0;
+}
+.main .two .b .list .other .other_1 {
+  margin: 0 0 1vw 0;
+  font-size: var(--font16Size);
+}
+.main .two .b .list .other .other_1 text:first-child {
+  color: var(--f85Color);
+}
+.main .two .b .list .btn {
+  text-align: center;
+}
+.main .two .b .list .btn button {
+  margin: 0 2vw;
+  font-size: var(--font14Size);
+}
+.scroll-view {
+  position: absolute;
+  top: 0;
+  left: 0;
+  right: 0;
+  bottom: 0;
+}
+.scroll-view .list-scroll-view {
+  display: flex;
+  flex-direction: column;
+}