Browse Source

Merge branch 'master' of http://git.cc-lotus.info/ball-court/ball-applet

zs 2 years ago
parent
commit
5fc2cfa809

+ 4 - 0
app.json

@@ -32,10 +32,14 @@
         "pages/sonestudent/list",
         "pages/sonestudent/add",
         "pages/soneopen/list",
+        "pages/soneopen/add",
         "pages/soneprivate/list",
+        "pages/soneprivate/add",
         "pages/sonecourse/list",
         "pages/soneincome/list",
         "pages/sonestustat/list",
+        "pages/soneapply/list",
+        "pages/soneapply/info",
         "pages/sonecoachstat/list",
         "pages/stuAdmin/archives/list",
         "pages/stuAdmin/coach/list",

File diff suppressed because it is too large
+ 81 - 76
icon/icon.wxss


+ 132 - 0
pages/soneapply/info.js

@@ -0,0 +1,132 @@
+const app = getApp()
+
+Page({
+
+    /**
+     * 页面的初始数据
+     */
+    data: {
+        frameStyle: { useTop: true, name: '审核入学', leftArrow: true, useBar: false },
+        id: '',
+        form: {},
+        student_id: '',
+    },
+    // 返回
+    back: function () {
+        wx.navigateBack({ delta: 1 })
+    },
+
+    // 审核
+    toEdit: function (e) {
+        const that = this;
+        let params = {};
+        const { result } = e.currentTarget.dataset;
+        wx.showModal({
+            title: '提示',
+            editable: true,
+            content: '',
+            placeholderText: '请输入审核意见',
+            async success(res) {
+                if (res.confirm) {
+                    params.result = result
+                    params.reason = res.content
+                    if (that.data.id) {
+                        const arr = await app.$post(`/safs/${that.data.id}`, params);
+                        if (arr.errcode == '0') { 
+                            wx.showToast({ title: `维护信息完成`, icon: 'success', duration: 2000 }); that.back(); }
+                        else wx.showToast({ title: `${error.msg}`, icon: 'error', duration: 2000 })
+                    }
+                } else if (res.cancel) {
+                }
+            }
+        })
+    },
+    /**
+     * 生命周期函数--监听页面加载
+     */
+    onLoad: function (options) {
+        const that = this;
+        that.setData({ id: options.id || '' })
+        // 监听用户是否登录
+        that.watchLogin();
+    },
+    // 监听用户是否登录
+    watchLogin: async function () {
+        const that = this;
+        wx.getStorage({
+            key: 'user',
+            success: async res => {
+                that.setData({ school_id: res.data.info.id })
+                const aee = await app.$get(`/dict`, { code: "student_grade" });
+                if (aee.errcode == '0' && aee.total > 0) that.setData({ levelList: aee.data[0].list });
+                const ree = await app.$get(`/dict`, { code: "gender" });
+                if (ree.errcode == '0' && ree.total > 0) that.setData({ genderList: ree.data[0].list });
+                if (that.data.id) {
+                    const aee = await app.$get(`/safs/${that.data.id}`);
+                    if (aee.errcode == '0') {
+                        that.setData({ student_id: aee.data.student_id })
+                    }
+                    const arr = await app.$get(`/student/${that.data.student_id}`);
+                    if (arr.errcode == '0') {
+                        let gender = that.data.genderList.find(i => i.value == arr.data.gender)
+                        if (gender) arr.data.zhGender = gender.label;
+                        let level = that.data.levelList.find(i => i.value == arr.data.level)
+                        if (level) arr.data.zhLevel = level.label;
+                        that.setData({ form: arr.data });
+                    }
+                }
+            },
+            fail: res => {
+                wx.redirectTo({ url: '/pages/index/index', })
+            }
+        })
+    },
+    /**
+     * 生命周期函数--监听页面初次渲染完成
+     */
+    onReady: function () {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面显示
+     */
+    onShow: function () {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面隐藏
+     */
+    onHide: function () {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面卸载
+     */
+    onUnload: function () {
+
+    },
+
+    /**
+     * 页面相关事件处理函数--监听用户下拉动作
+     */
+    onPullDownRefresh: function () {
+
+    },
+
+    /**
+     * 页面上拉触底事件的处理函数
+     */
+    onReachBottom: function () {
+
+    },
+
+    /**
+     * 用户点击右上角分享
+     */
+    onShareAppMessage: function () {
+
+    }
+})

+ 6 - 0
pages/soneapply/info.json

@@ -0,0 +1,6 @@
+{
+    "component": true,
+    "usingComponents": {
+        "mobile-main": "/commpents/mobile-frame/index"
+    }
+}

+ 62 - 0
pages/soneapply/info.less

@@ -0,0 +1,62 @@
+.main {
+    background-color: var(--mainColor);
+    height: var(--twoHeight);
+
+    .one {
+        flex-grow: 1;
+        position: relative;
+        height: 81vh;
+
+        .content {
+            display: flex;
+            flex-direction: row;
+            border-bottom: 1px dashed var(--f1Color);
+            padding: 2vw 0;
+            margin: 0 2vw 2vw 2vw;
+
+            .value {
+                flex-grow: 1;
+                color: var(--blackColor);
+
+                textarea {
+                    position: static;
+                    width: 73vw;
+                }
+
+                image {
+                    width: 100px;
+                    height: 100px;
+                }
+            }
+        }
+    }
+
+    .btn {
+        text-align: center;
+        margin: 5vw 0 0 0;
+
+        button {
+            width: 40vw;
+            margin: 0 2vw;
+            padding: 1vw 0;
+        }
+
+        button:last-child {
+            background-color: #FF7F50;
+        }
+    }
+
+}
+
+.scroll-view {
+    position: absolute;
+    top: 0;
+    left: 0;
+    right: 0;
+    bottom: 0;
+
+    .list-scroll-view {
+        display: flex;
+        flex-direction: column;
+    }
+}

+ 62 - 0
pages/soneapply/info.wxml

@@ -0,0 +1,62 @@
+<mobile-main frameStyle="{{frameStyle}}" bind:back="back">
+    <view slot="info" class="container main">
+        <view class="one">
+            <scroll-view scroll-y="true" class="scroll-view">
+                <view class="list-scroll-view">
+                    <view class="content">
+                        <view class="label">头像:</view>
+                        <view class="value">
+                            <image src="{{form.icon&&form.icon.length>0?form.icon[0].url:''}}">
+                            </image>
+                        </view>
+                    </view>
+                    <view class="content">
+                        <view class="label">姓名:</view>
+                        <view class="value">{{form.name}}</view>
+                    </view>
+                    <view class="content">
+                        <view class="label">性别:</view>
+                        <view class="value">{{form.zhGender||'暂无'}} </view>
+                    </view>
+                    <view class="content">
+                        <view class="label">年龄:</view>
+                        <view class="value">{{form.age}}
+                        </view>
+                    </view>
+                    <view class="content">
+                        <view class="label">联系电话:</view>
+                        <view class="value">{{form.phone}}
+                        </view>
+                    </view>
+                    <view class="content">
+                        <view class="label">运动等级:</view>
+                        <view class="value">{{form.zhLevel||'暂无'}}
+                        </view>
+                    </view>
+                    <view class="content">
+                        <view class="label">学员简介:</view>
+                        <view class="value">{{form.brief}}
+                            <textarea name="brief" maxlength="-1" auto-height value="{{form.brief}}" disabled placeholder="请输入学员简介" />
+                        </view>
+                    </view>
+                    <view class="content">
+                        <view class="label">过往荣誉:</view>
+                        <view class="value">
+                            <textarea name="honer" maxlength="-1" auto-height value="{{form.honer}}" disabled placeholder="请输入过往荣誉" />
+                        </view>
+                    </view>
+                    <view class="content">
+                        <view class="label">训练经历:</view>
+                        <view class="value">
+                            <textarea name="exp" maxlength="-1" auto-height value="{{form.exp}}" disabled placeholder="请输入训练经历" />
+                        </view>
+                    </view>
+                </view>
+            </scroll-view>
+        </view>
+        <view class="btn">
+            <button type="primary" size="mini" bindtap="toEdit" data-result="1">通过</button>
+            <button type="primary" size="mini" bindtap="toEdit" data-result="-1">拒绝</button>
+        </view>
+    </view>
+</mobile-main>

+ 51 - 0
pages/soneapply/info.wxss

@@ -0,0 +1,51 @@
+.main {
+  background-color: var(--mainColor);
+  height: var(--twoHeight);
+}
+.main .one {
+  flex-grow: 1;
+  position: relative;
+  height: 81vh;
+}
+.main .one .content {
+  display: flex;
+  flex-direction: row;
+  border-bottom: 1px dashed var(--f1Color);
+  padding: 2vw 0;
+  margin: 0 2vw 2vw 2vw;
+}
+.main .one .content .value {
+  flex-grow: 1;
+  color: var(--blackColor);
+}
+.main .one .content .value textarea {
+  position: static;
+  width: 73vw;
+}
+.main .one .content .value image {
+  width: 100px;
+  height: 100px;
+}
+.main .btn {
+  text-align: center;
+  margin: 5vw 0 0 0;
+}
+.main .btn button {
+  width: 40vw;
+  margin: 0 2vw;
+  padding: 1vw 0;
+}
+.main .btn button:last-child {
+  background-color: #FF7F50;
+}
+.scroll-view {
+  position: absolute;
+  top: 0;
+  left: 0;
+  right: 0;
+  bottom: 0;
+}
+.scroll-view .list-scroll-view {
+  display: flex;
+  flex-direction: column;
+}

+ 119 - 0
pages/soneapply/list.js

@@ -0,0 +1,119 @@
+const app = getApp()
+import QRCode from '../../utils/weapp-qrcode.js';
+
+Page({
+    data: {
+        frameStyle: { useTop: true, name: '学员信息', leftArrow: true, useBar: false },
+        list: [],
+        total: 0,
+        page: 0,
+        skip: 0,
+        limit: 5,
+        // 等级列表
+        levelList: [],
+    },
+    // 返回
+    back: function () {
+        wx.navigateBack({ delta: 1 })
+    },
+
+    // 审核
+    toEdit: function (e) {
+        const that = this;
+        let { item } = e.currentTarget.dataset;
+        that.setData({ skip: 0, page: 0, list: [] })
+        wx.navigateTo({ url: `/pages/soneapply/info?id=${item._id}` })
+    },
+
+    // 分页
+    toPage: function () {
+        const that = this;
+        let list = that.data.list;
+        let limit = that.data.limit;
+        if (that.data.total > list.length) {
+            wx.showLoading({ title: '加载中', mask: true })
+            let page = that.data.page + 1;
+            that.setData({ page: page })
+            let skip = page * limit;
+            that.setData({ skip: skip })
+            that.watchLogin();
+            wx.hideLoading()
+        } else { wx.showToast({ title: '没有更多数据了', icon: 'none', duration: 2000 }) }
+    },
+    // 返回
+    back(e) {
+        wx.navigateBack({ delta: 1 })
+    },
+    /**
+     * 生命周期函数--监听页面加载
+     */
+    onLoad: function (options) { },
+    // 监听用户是否登录
+    watchLogin: async function () {
+        const that = this;
+        wx.getStorage({
+            key: 'user',
+            success: async res => {
+                // 学员等级
+                let aee = await app.$get(`/dict`, { code: 'student_grade' });
+                if (aee.errcode == '0' && aee.total > 0) that.setData({ levelList: aee.data[0].list })
+                let info = { skip: that.data.skip, limit: that.data.limit, school_id: res.data.info.id };
+                const arr = await app.$get(`/safs`, { ...info });
+                if (arr.errcode == '0') {
+                    for (const val of arr.data) {
+                        let level = that.data.levelList.find(i => i.value == val.student_id_level)
+                        if (level) val.zhLevel = level.label;
+                    }
+                    that.setData({ list: [...that.data.list, ...arr.data] });
+                    that.setData({ total: arr.total });
+                }
+                else { wx.showToast({ title: `${arr.errmsg}`, icon: 'error', duration: 2000 }) }
+            },
+            fail: async res => {
+                wx.redirectTo({ url: '/pages/index/index' })
+            }
+        })
+    },
+    /**
+     * 生命周期函数--监听页面初次渲染完成
+     */
+    onReady: function () { },
+    /**
+     * 生命周期函数--监听页面显示
+     */
+    onShow: function () {
+        const that = this;
+        // 监听用户是否登录
+        that.watchLogin();
+    },
+    /**
+     * 页面上拉触底事件的处理函数
+     */
+    /**
+     * 生命周期函数--监听页面隐藏
+     */
+    onHide: function () {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面卸载
+     */
+    onUnload: function () {
+
+    },
+
+    /**
+     * 页面相关事件处理函数--监听用户下拉动作
+     */
+    onPullDownRefresh: function () {
+
+    },
+
+    /**
+     * 用户点击右上角分享
+     */
+    onShareAppMessage: function () {
+
+    }
+})

+ 6 - 0
pages/soneapply/list.json

@@ -0,0 +1,6 @@
+{
+    "component": true,
+    "usingComponents": {
+      "mobile-main": "/commpents/mobile-frame/index"
+    }
+  }

+ 158 - 0
pages/soneapply/list.less

@@ -0,0 +1,158 @@
+.main {
+    height: var(--twoHeight);
+    background-color: var(--mainColor);
+
+    .one {
+        display: flex;
+        flex-direction: row;
+        padding: 2vw;
+        border-bottom: 1px solid var(--f1Color);
+
+        .one_1 {
+            flex-grow: 1;
+
+            input {
+                padding: 1vw 0 2vw 2vw;
+                background-color: var(--f1Color);
+                border-radius: 5px;
+            }
+        }
+
+        .one_2 {
+            width: 20vw;
+
+            button {
+                width: 100%;
+                padding: 2vw;
+                font-size: var(--font14Size);
+            }
+        }
+    }
+
+    .two {
+        flex-grow: 1;
+        position: relative;
+
+        .list {
+            display: flex;
+            flex-direction: column;
+            padding: 2vw;
+            margin: 2vw 2vw 0;
+            border-radius: 10px;
+            border: 1px dashed var(--blackColor);
+
+
+            .list_1 {
+                display: flex;
+                flex-direction: row;
+                margin: 0 0 2vw 0;
+                border: 2px dashed var(--blackColor);
+                border-radius: 10px;
+
+                .icon {
+                    width: 18vw;
+                    height: 18vw;
+                    margin-top: 2vw;
+                    margin-left: 2vw;
+
+                    image {
+                        width: 100%;
+                        height: 100%;
+                        border-radius: 50%;
+                        background-color: var(--f85Color);
+                    }
+                }
+
+                .content {
+                    display: flex;
+                    flex-direction: column;
+                    margin: 0 0 0 3vw;
+
+                    .name {
+                        font-weight: 700;
+                        font-size: var(--font18Szie);
+                        color: var(--blackColor);
+                        margin: 1vw 0;
+                    }
+
+                    .other {
+                        font-size: var(--font15Size);
+                        color: var(--f85Color);
+                        margin: 0.5vw 0 1vw 0;
+
+                        text {
+                            color: var(--redColor);
+                        }
+                    }
+                }
+            }
+
+            .btn {
+                display: flex;
+                flex-direction: row;
+
+                button {
+                    width: 100%;
+                    padding: 2vw;
+                    font-size: var(--font14Size);
+                    color: var(--whiteColor);
+                    border-radius: 50px;
+                    margin: 0 2vw;
+                    background-color: #35d4bd;
+                    box-sizing: content-box;
+                    border: 2px dashed var(--whiteColor);
+                }
+
+                button:nth-child(2n) {
+                    background-color: #f860df;
+                }
+
+                button:last-child {
+                    background-color: #FF7F50;
+                }
+            }
+        }
+    }
+}
+
+.scroll-view {
+    position: absolute;
+    top: 0;
+    left: 0;
+    right: 0;
+    bottom: 0;
+
+    .list-scroll-view {
+        display: flex;
+        flex-direction: column;
+    }
+}
+
+.dialog {
+    .dialog_1 {
+        .name {
+            text-align: center;
+            font-size: var(--font18Szie);
+            font-weight: bold;
+            margin: 3vw 0;
+        }
+
+        .image {
+            text-align: center;
+            height: 18vh;
+            overflow: hidden;
+
+            .qrcode {
+                height: 22vh;
+                position: absolute;
+                left: 32vw;
+            }
+        }
+
+        .remark {
+            text-align: center;
+            font-size: 15px;
+            margin: 0 0 4vw 0;
+        }
+    }
+}

+ 36 - 0
pages/soneapply/list.wxml

@@ -0,0 +1,36 @@
+<mobile-main frameStyle="{{frameStyle}}" bind:back="back">
+    <view slot="info" class="container main">
+        <view class="one">
+            <view class="one_1">
+                <input type="text" placeholder="请输入关键词" />
+            </view>
+        </view>
+        <view class="two">
+            <scroll-view scroll-y="true" class="scroll-view" bindscrolltolower="toPage">
+                <view class="list-scroll-view">
+                    <view class="list" wx:for="{{list}}" wx:key="item">
+                        <view class="list_1">
+                            <view class="icon">
+                                <image src="{{item.student_id_icon&&item.student_id_icon.length>0?item.student_id_icon[0].url:''}}">
+                                </image>
+                            </view>
+                            <view class="content">
+                                <view class="name textOver">{{item.student_id_name||'学员姓名'}}</view>
+                                <view class="other">学员等级:<text>{{item.zhLevel||'一级'}}</text>
+                                </view>
+                                <view class="other">联系电话:{{item.student_id_phone||'暂无'}}
+                                </view>
+                                <view class="other">状态:
+                                    <text>{{item.result==1?'已通过':item.result==-1?'已拒绝':'未审核'}}</text>
+                                </view>
+                            </view>
+                        </view>
+                        <view class="btn">
+                            <button bindtap="toEdit" data-item="{{item}}">审核信息</button>
+                        </view>
+                    </view>
+                </view>
+            </scroll-view>
+        </view>
+    </view>
+</mobile-main>

+ 129 - 0
pages/soneapply/list.wxss

@@ -0,0 +1,129 @@
+.main {
+  height: var(--twoHeight);
+  background-color: var(--mainColor);
+}
+.main .one {
+  display: flex;
+  flex-direction: row;
+  padding: 2vw;
+  border-bottom: 1px solid var(--f1Color);
+}
+.main .one .one_1 {
+  flex-grow: 1;
+}
+.main .one .one_1 input {
+  padding: 1vw 0 2vw 2vw;
+  background-color: var(--f1Color);
+  border-radius: 5px;
+}
+.main .one .one_2 {
+  width: 20vw;
+}
+.main .one .one_2 button {
+  width: 100%;
+  padding: 2vw;
+  font-size: var(--font14Size);
+}
+.main .two {
+  flex-grow: 1;
+  position: relative;
+}
+.main .two .list {
+  display: flex;
+  flex-direction: column;
+  padding: 2vw;
+  margin: 2vw 2vw 0;
+  border-radius: 10px;
+  border: 1px dashed var(--blackColor);
+}
+.main .two .list .list_1 {
+  display: flex;
+  flex-direction: row;
+  margin: 0 0 2vw 0;
+  border: 2px dashed var(--blackColor);
+  border-radius: 10px;
+}
+.main .two .list .list_1 .icon {
+  width: 18vw;
+  height: 18vw;
+  margin-top: 2vw;
+  margin-left: 2vw;
+}
+.main .two .list .list_1 .icon image {
+  width: 100%;
+  height: 100%;
+  border-radius: 50%;
+  background-color: var(--f85Color);
+}
+.main .two .list .list_1 .content {
+  display: flex;
+  flex-direction: column;
+  margin: 0 0 0 3vw;
+}
+.main .two .list .list_1 .content .name {
+  font-weight: 700;
+  font-size: var(--font18Szie);
+  color: var(--blackColor);
+  margin: 1vw 0;
+}
+.main .two .list .list_1 .content .other {
+  font-size: var(--font15Size);
+  color: var(--f85Color);
+  margin: 0.5vw 0 1vw 0;
+}
+.main .two .list .list_1 .content .other text {
+  color: var(--redColor);
+}
+.main .two .list .btn {
+  display: flex;
+  flex-direction: row;
+}
+.main .two .list .btn button {
+  width: 100%;
+  padding: 2vw;
+  font-size: var(--font14Size);
+  color: var(--whiteColor);
+  border-radius: 50px;
+  margin: 0 2vw;
+  background-color: #35d4bd;
+  box-sizing: content-box;
+  border: 2px dashed var(--whiteColor);
+}
+.main .two .list .btn button:nth-child(2n) {
+  background-color: #f860df;
+}
+.main .two .list .btn button:last-child {
+  background-color: #FF7F50;
+}
+.scroll-view {
+  position: absolute;
+  top: 0;
+  left: 0;
+  right: 0;
+  bottom: 0;
+}
+.scroll-view .list-scroll-view {
+  display: flex;
+  flex-direction: column;
+}
+.dialog .dialog_1 .name {
+  text-align: center;
+  font-size: var(--font18Szie);
+  font-weight: bold;
+  margin: 3vw 0;
+}
+.dialog .dialog_1 .image {
+  text-align: center;
+  height: 18vh;
+  overflow: hidden;
+}
+.dialog .dialog_1 .image .qrcode {
+  height: 22vh;
+  position: absolute;
+  left: 32vw;
+}
+.dialog .dialog_1 .remark {
+  text-align: center;
+  font-size: 15px;
+  margin: 0 0 4vw 0;
+}

+ 1 - 1
pages/sonefee/list.js

@@ -2,7 +2,7 @@ const app = getApp()
 Page({
     data: {
         frameStyle: { useTop: true, name: '审批教练费', leftArrow: true, useBar: false },
-        list: [{}, {}],
+        list: [{ }, {}],
         total: 0,
         page: 0,
         skip: 0,

+ 2 - 0
pages/sonefee/list.wxml

@@ -18,6 +18,8 @@
                                 <view class="name textOver">{{item.name||'教练姓名'}}</view>
                                 <view class="other">提现金额:<text>{{item.money||'0.00'}}元</text>
                                 </view>
+                                <view class="other">申请原因:<text>{{item.yy||'暂无'}}</text>
+                                </view>
                                 <view class="other">申请时间:{{item.time||'暂无'}}
                                 </view>
                             </view>

+ 211 - 0
pages/soneopen/add.js

@@ -0,0 +1,211 @@
+const app = getApp()
+import WxValidate from '../../utils/wxValidate'
+
+Page({
+
+    /**
+     * 页面的初始数据
+     */
+    data: {
+        frameStyle: { useTop: true, name: '公开课信息', leftArrow: true, useBar: false },
+        id: '',
+        school_id: '',
+        form: {
+            // 教练
+            coach_id: [],
+        },
+        // 状态列表
+        statusList: [],
+        coachForm: {},
+
+        // dialog弹框
+        dialog: { title: '添加教练', show: false, type: '1' },
+        // 教练列表
+        coachList: [],
+    },
+    initValidate() {
+        const rules = { title: { required: true }, brief: { required: true }, coach_id: { required: true }, limit: { required: true }, start_date: { required: true }, start_time: { required: true }, end_date: { required: true }, end_time: { required: true }, status: { required: true } }
+        // 验证字段的提示信息,若不传则调用默认的信息
+        const messages = { title: { required: '请输入课程标题', }, brief: { required: '请输入简介', }, coach_id: { required: '请选择教练', }, limit: { required: '请输入人数上限', }, start_date: { required: '请选择开始日期', }, start_time: { required: '请选择开始时间', }, end_date: { required: '请选择结束日期', }, end_time: { required: '请选择结束时间', }, status: { required: '请选择状态', } };
+        this.WxValidate = new WxValidate(rules, messages)
+    },
+    // 返回
+    back: function () {
+        wx.navigateBack({ delta: 1 })
+    },
+    // 选择性别
+    statusChange: function (e) {
+        const that = this;
+        let data = that.data.statusList[e.detail.value];
+        if (data) {
+            that.setData({ 'form.status': data.value });
+            that.setData({ 'form.zhstatus': data.label });
+        }
+    },
+    // 选择教练
+    coachChange: function (e) {
+        const that = this;
+        let data = that.data.coachList[e.detail.value];
+        if (data) {
+            that.setData({ 'coachForm.coach_id': data.coach_id });
+            that.setData({ 'coachForm.zhcoach': data.coach_id_name });
+        }
+    },
+    // 添加教练
+    toChange: function (e) {
+        const that = this;
+        that.setData({ dialog: { title: '添加教练', show: true, type: '1' } })
+    },
+    // 保存教练
+    coachSubmit: function (e) {
+        const that = this;
+        let data = e.detail.value;
+        let coachList = that.data.coachList;
+        let coach_id = [...that.data.form.coach_id];
+        let arr = coachList.find((i) => i.coach_id == data.coach_id);
+        if (arr) coach_id.push({ id: arr.coach_id, name: arr.coach_id_name, money: data.money })
+        that.setData({ 'form.coach_id': coach_id })
+        that.setData({ coachForm: {} })
+        that.setData({ dialog: { title: '添加教练', show: false, type: '1' } })
+    },
+    // 关闭弹框
+    toClose: function () {
+        const that = this;
+        that.setData({ form: {} })
+        that.setData({ dialog: { title: '账号绑定', show: false, type: '1' } })
+    },
+    // 开始上课日期
+    startdateChange: function (e) {
+        const that = this;
+        that.setData({ 'form.start_date': e.detail.value })
+    },
+    // 开始上课时间
+    starttimeChange: function (e) {
+        const that = this;
+        that.setData({ 'form.start_time': e.detail.value })
+    },
+    // 结束上课日期
+    enddateChange: function (e) {
+        const that = this;
+        that.setData({ 'form.end_date': e.detail.value })
+    },
+    // 结束上课时间
+    endtimeChange: function (e) {
+        const that = this;
+        that.setData({ 'form.end_time': e.detail.value })
+    },
+    // 提交保存
+    onSubmit: async function (e) {
+        const that = this;
+        const params = e.detail.value;
+        const form = that.data.form;
+        params.school_id = that.data.school_id;
+        params.time_start = form.start_date + '-' + form.start_time;
+        params.time_end = form.end_date + '-' + form.end_time;
+        params.coach_id = form.coach_id;
+        if (!this.WxValidate.checkForm(params)) {
+            const error = this.WxValidate.errorList[0];
+            wx.showToast({ title: `${error.msg}`, icon: 'error', duration: 2000 })
+            return false
+        } else {
+            let arr;
+            if (form._id) { arr = await app.$post(`/lessonPublic/${form._id}`, params); }
+            else { arr = await app.$post(`/lessonPublic`, params); }
+            if (arr.errcode == '0') { wx.showToast({ title: `维护信息完成`, icon: 'success', duration: 2000 }); that.back(); }
+            else wx.showToast({ title: `${error.msg}`, icon: 'error', duration: 2000 })
+        }
+    },
+    /**
+     * 生命周期函数--监听页面加载
+     */
+    onLoad: function (options) {
+        const that = this;
+        that.setData({ id: options.id || '' })
+        //验证规则函数
+        that.initValidate();
+        // 监听用户是否登录
+        that.watchLogin();
+    },
+    // 监听用户是否登录
+    watchLogin: async function () {
+        const that = this;
+        wx.getStorage({
+            key: 'user',
+            success: async res => {
+                that.setData({ school_id: res.data.info.id })
+                const aee = await app.$get(`/dict`, { code: "lesson_status" });
+                if (aee.errcode == '0' && aee.total > 0) that.setData({ statusList: aee.data[0].list });
+                const abb = await app.$get(`/rcs`, { school_id: res.data.info.id });
+                if (abb.errcode == '0' && aee.total > 0) {
+                    that.setData({ coachList: abb.data })
+                }
+                if (that.data.id) {
+                    const arr = await app.$get(`/lessonPublic/${that.data.id}`);
+                    if (arr.errcode == '0') {
+                        // 状态
+                        let status = that.data.statusList.find(i => i.value == arr.data.status)
+                        if (status) arr.data.zhstatus = status.label;
+                        // 开始时间
+                        arr.data.start_date = arr.data.time_start.slice(0, 10);
+                        arr.data.start_time = arr.data.time_start.slice(11, arr.data.time_start.length);
+                        // 结束时间
+                        arr.data.end_date = arr.data.time_end.slice(0, 10);
+                        arr.data.end_time = arr.data.time_end.slice(11, arr.data.time_end.length);
+                        that.setData({ form: arr.data });
+                    }
+                }
+            },
+            fail: res => {
+                wx.redirectTo({ url: '/pages/index/index', })
+            }
+        })
+    },
+    /**
+     * 生命周期函数--监听页面初次渲染完成
+     */
+    onReady: function () {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面显示
+     */
+    onShow: function () {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面隐藏
+     */
+    onHide: function () {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面卸载
+     */
+    onUnload: function () {
+
+    },
+
+    /**
+     * 页面相关事件处理函数--监听用户下拉动作
+     */
+    onPullDownRefresh: function () {
+
+    },
+
+    /**
+     * 页面上拉触底事件的处理函数
+     */
+    onReachBottom: function () {
+
+    },
+
+    /**
+     * 用户点击右上角分享
+     */
+    onShareAppMessage: function () {
+
+    }
+})

+ 7 - 0
pages/soneopen/add.json

@@ -0,0 +1,7 @@
+{
+    "component": true,
+    "usingComponents": {
+        "mobile-main": "/commpents/mobile-frame/index",
+        "dialog": "/commpents/dialog/index"
+    }
+}

+ 82 - 0
pages/soneopen/add.less

@@ -0,0 +1,82 @@
+.main {
+    background-color: var(--mainColor);
+    height: var(--twoHeight);
+
+    .one {
+        flex-grow: 1;
+        position: relative;
+        height: 81vh;
+
+        .content {
+            display: flex;
+            flex-direction: row;
+            border-bottom: 1px dashed var(--f1Color);
+            padding: 2vw 0;
+            margin: 0 2vw 2vw 2vw;
+
+            .value {
+                flex-grow: 1;
+                color: var(--blackColor);
+
+                textarea {
+                    position: static;
+                    width: 73vw;
+                }
+            }
+        }
+    }
+
+    .btn {
+        text-align: center;
+        margin: 5vw 0 0 0;
+
+        button {
+            width: 40vw;
+            margin: 0 2vw;
+            padding: 1vw 0;
+        }
+    }
+
+}
+
+.scroll-view {
+    position: absolute;
+    top: 0;
+    left: 0;
+    right: 0;
+    bottom: 0;
+
+    .list-scroll-view {
+        display: flex;
+        flex-direction: column;
+    }
+}
+
+.dialog {
+    .dialog_1 {
+        .name {
+            text-align: center;
+            font-size: var(--font18Szie);
+            font-weight: bold;
+            margin: 3vw 0;
+        }
+
+        .image {
+            text-align: center;
+            height: 18vh;
+            overflow: hidden;
+
+            .qrcode {
+                height: 22vh;
+                position: absolute;
+                left: 32vw;
+            }
+        }
+
+        .remark {
+            text-align: center;
+            font-size: 15px;
+            margin: 0 0 4vw 0;
+        }
+    }
+}

+ 122 - 0
pages/soneopen/add.wxml

@@ -0,0 +1,122 @@
+<mobile-main frameStyle="{{frameStyle}}" bind:back="back">
+    <view slot="info" class="container main">
+        <form catchsubmit="onSubmit">
+            <view class="one">
+                <scroll-view scroll-y="true" class="scroll-view">
+                    <view class="list-scroll-view">
+                        <view class="content">
+                            <view class="label">课程标题:</view>
+                            <view class="value">
+                                <input name="title" value="{{form.title}}" placeholder="请输入课程标题" />
+                            </view>
+                        </view>
+                        <view class="content">
+                            <view class="label">简介:</view>
+                            <view class="value">
+                                <textarea name="brief" maxlength="-1" auto-height value="{{form.brief}}" placeholder="请输入学员简介" />
+                            </view>
+                        </view>
+                        <view class="content">
+                            <view class="label">教练:</view>
+                            <view class="value">
+                                <button type="primary" size="mini" bindtap="toChange">请添加教练</button>
+                                <view class="list" wx:for="{{form.coach_id}}" wx:key="item">
+                                    <view>{{item.name}}</view>
+                                    <view> 金额:{{item.money}}</view>
+                                </view>
+                            </view>
+                        </view>
+                        <view class="content">
+                            <view class="label">人数上限:</view>
+                            <view class="value">
+                                <input name="limit" type="number" value="{{form.limit}}" placeholder="请输入人数上限" />
+                            </view>
+                        </view>
+                        <view class="content">
+                            <view class="label">上课开始日期:</view>
+                            <view class="value">
+                                <picker mode="date" name="start_date" value="{{form.start_date}}" bindchange="startdateChange">
+                                    <view class="picker">{{form.start_date||'请选择上课开始日期'}}</view>
+                                </picker>
+                            </view>
+                        </view>
+                        <view class="content">
+                            <view class="label">上课开始时间:</view>
+                            <view class="value">
+                                <picker mode="time" name="start_time" value="{{form.start_time}}" bindchange="starttimeChange">
+                                    <view class="picker">{{form.start_time||'请选择上课开始时间'}}</view>
+                                </picker>
+                            </view>
+                        </view>
+                        <view class="content">
+                            <view class="label">上课结束日期:</view>
+                            <view class="value">
+                                <picker mode="date" name="end_date" value="{{form.end_date}}" bindchange="enddateChange">
+                                    <view class="picker">{{form.end_date||'请选择上课结束日期'}}</view>
+                                </picker>
+                            </view>
+                        </view>
+                        <view class="content">
+                            <view class="label">上课结束时间:</view>
+                            <view class="value">
+                                <picker mode="time" name="end_time" value="{{form.end_time}}" bindchange="endtimeChange">
+                                    <view class="picker">{{form.end_time||'请选择上课结束时间'}}</view>
+                                </picker>
+                            </view>
+                        </view>
+                        <view class="content">
+                            <view class="label">状态:</view>
+                            <view class="value">
+                                <picker mode="selector" bindchange="statusChange" name="status" value="{{form.status}}" range="{{statusList}}" range-key="label">
+                                    <view class="picker">{{form.zhstatus||'请选择状态'}}</view>
+                                </picker>
+                            </view>
+                        </view>
+                    </view>
+                </scroll-view>
+            </view>
+            <view class="btn">
+                <button type="primary" size="mini" formType="submit">提交保存</button>
+            </view>
+        </form>
+    </view>
+</mobile-main>
+<dialog dialog="{{dialog}}" bind:toClose="toClose">
+    <view slot="info" class="dialog">
+        <view class="dialog_1" wx:if="{{dialog.type=='1'}}">
+            <form catchsubmit="coachSubmit">
+                <view class="content">
+                    <view class="label">教练:</view>
+                    <view class="value">
+                        <picker mode="selector" bindchange="coachChange" name="coach_id" value="{{coachForm.coach_id}}" range="{{coachList}}" range-key="coach_id_name">
+                            <view class="picker">{{coachForm.zhcoach||'请选择教练'}}</view>
+                        </picker>
+                    </view>
+                </view>
+                <view class="content">
+                    <view class="label">价格:</view>
+                    <view class="value">
+                        <input name="money" value="{{coachForm.money}}" placeholder="请输入价格" />
+                    </view>
+                </view>
+                <view class="btn">
+                    <button type="primary" size="mini" formType="submit">保存</button>
+                </view>
+            </form>
+            <!-- <view>
+                <checkbox-group bindchange="memChange">
+                    <view class="coachList" wx:for="{{coachList}}" wx:key="item">
+                        <label>
+                            <text>{{item.coach_id_name}}</text>
+                            <checkbox value="{{item.coach_id}}" checked="{{item.checked}}" />
+                        </label>
+                    </view>
+                </checkbox-group>
+            </view>
+            <view class="btn">
+                <button type="primary" size="mini" bindtap="memfirmSubmit">确定</button>
+                <button type="warn" size="mini" bindtap="memClose">取消</button>
+            </view> -->
+        </view>
+    </view>
+</dialog>

+ 65 - 0
pages/soneopen/add.wxss

@@ -0,0 +1,65 @@
+.main {
+  background-color: var(--mainColor);
+  height: var(--twoHeight);
+}
+.main .one {
+  flex-grow: 1;
+  position: relative;
+  height: 81vh;
+}
+.main .one .content {
+  display: flex;
+  flex-direction: row;
+  border-bottom: 1px dashed var(--f1Color);
+  padding: 2vw 0;
+  margin: 0 2vw 2vw 2vw;
+}
+.main .one .content .value {
+  flex-grow: 1;
+  color: var(--blackColor);
+}
+.main .one .content .value textarea {
+  position: static;
+  width: 73vw;
+}
+.main .btn {
+  text-align: center;
+  margin: 5vw 0 0 0;
+}
+.main .btn button {
+  width: 40vw;
+  margin: 0 2vw;
+  padding: 1vw 0;
+}
+.scroll-view {
+  position: absolute;
+  top: 0;
+  left: 0;
+  right: 0;
+  bottom: 0;
+}
+.scroll-view .list-scroll-view {
+  display: flex;
+  flex-direction: column;
+}
+.dialog .dialog_1 .name {
+  text-align: center;
+  font-size: var(--font18Szie);
+  font-weight: bold;
+  margin: 3vw 0;
+}
+.dialog .dialog_1 .image {
+  text-align: center;
+  height: 18vh;
+  overflow: hidden;
+}
+.dialog .dialog_1 .image .qrcode {
+  height: 22vh;
+  position: absolute;
+  left: 32vw;
+}
+.dialog .dialog_1 .remark {
+  text-align: center;
+  font-size: 15px;
+  margin: 0 0 4vw 0;
+}

+ 57 - 2
pages/soneopen/list.js

@@ -2,11 +2,51 @@ const app = getApp()
 Page({
     data: {
         frameStyle: { useTop: true, name: '公开课', leftArrow: true, useBar: false },
+        list: [],
+        total: 0,
+        page: 0,
+        skip: 0,
+        limit: 5,
+        statusList: [],
     },
     // 返回
     back(e) {
         wx.navigateBack({ delta: 1 })
     },
+    // 添加
+    toAdd() {
+        const that = this;
+        that.setData({ skip: 0, page: 0, list: [] })
+        wx.navigateTo({ url: '/pages/soneopen/add' })
+    },
+    // 修改
+    toEdit: function (e) {
+        const that = this;
+        let { item } = e.currentTarget.dataset;
+        that.setData({ skip: 0, page: 0, list: [] })
+        wx.navigateTo({ url: `/pages/soneopen/add?id=${item._id}` })
+    },
+    // 删除
+    toDel: async function (e) {
+        const that = this;
+        const { item } = e.currentTarget.dataset;
+        wx.showModal({
+            title: '提示',
+            content: '是否确认删除该条数据?',
+            async success(res) {
+                if (res.confirm) {
+                    const arr = await app.$delete(`/lessonPublic/${item.id}`);
+                    if (arr.errcode == '0') {
+                        wx.showToast({ title: `删除信息成功`, icon: 'success', duration: 2000 })
+                        that.setData({ skip: 0, page: 0, list: [] })
+                        that.watchLogin()
+                    } else {
+                        wx.showToast({ title: `${arr.errmsg}`, icon: 'error', duration: 2000 })
+                    }
+                }
+            }
+        })
+    },
     /**
      * 生命周期函数--监听页面加载
      */
@@ -16,9 +56,24 @@ Page({
         const that = this;
         wx.getStorage({
             key: 'user',
-            success: async res => { },
+            success: async res => {
+                const aee = await app.$get(`/dict`, { code: "lesson_status" });
+                if (aee.errcode == '0' && aee.total > 0) that.setData({ statusList: aee.data[0].list });
+                let info = { skip: that.data.skip, limit: that.data.limit, school_id: res.data.info.id };
+                const arr = await app.$get(`/lessonPublic`, { ...info });
+                if (arr.errcode == '0') {
+                    for (const val of arr.data) {
+                        let level = that.data.statusList.find(i => i.value == val.status)
+                        if (level) val.zhstatus = level.label;
+                    }
+                    that.setData({ list: [...that.data.list, ...arr.data] });
+                    that.setData({ total: arr.total });
+                }
+                else { wx.showToast({ title: `${arr.errmsg}`, icon: 'error', duration: 2000 }) }
+
+            },
             fail: async res => {
-                // wx.redirectTo({ url: '/pages/index/index' })
+                wx.redirectTo({ url: '/pages/index/index' })
             }
         })
     },

+ 154 - 0
pages/soneopen/list.less

@@ -1,4 +1,158 @@
 .main {
+    height: var(--twoHeight);
     background-color: var(--mainColor);
+
+    .one {
+        display: flex;
+        flex-direction: row;
+        padding: 2vw;
+        border-bottom: 1px solid var(--f1Color);
+
+        .one_1 {
+            flex-grow: 1;
+
+            input {
+                padding: 1vw 0 2vw 2vw;
+                background-color: var(--f1Color);
+                border-radius: 5px;
+            }
+        }
+
+        .one_2 {
+            width: 20vw;
+
+            button {
+                width: 100%;
+                padding: 2vw;
+                font-size: var(--font14Size);
+            }
+        }
+    }
+
+    .two {
+        flex-grow: 1;
+        position: relative;
+
+        .list {
+            display: flex;
+            flex-direction: column;
+            padding: 2vw;
+            margin: 2vw 2vw 0;
+            border-radius: 10px;
+            border: 1px dashed var(--blackColor);
+
+
+            .list_1 {
+                display: flex;
+                flex-direction: row;
+                margin: 0 0 2vw 0;
+                border: 2px dashed var(--blackColor);
+                border-radius: 10px;
+
+                .icon {
+                    width: 18vw;
+                    height: 18vw;
+                    margin-top: 2vw;
+                    margin-left: 2vw;
+
+                    image {
+                        width: 100%;
+                        height: 100%;
+                        border-radius: 50%;
+                        background-color: var(--f85Color);
+                    }
+                }
+
+                .content {
+                    display: flex;
+                    flex-direction: column;
+                    margin: 0 0 0 3vw;
+
+                    .name {
+                        font-weight: 700;
+                        font-size: var(--font18Szie);
+                        color: var(--blackColor);
+                        margin: 1vw 0;
+                    }
+
+                    .other {
+                        font-size: var(--font15Size);
+                        color: var(--f85Color);
+                        margin: 0.5vw 0 1vw 0;
+
+                        text {
+                            color: var(--redColor);
+                        }
+                    }
+                }
+            }
+
+            .btn {
+                display: flex;
+                flex-direction: row;
+
+                button {
+                    width: 100%;
+                    padding: 2vw;
+                    font-size: var(--font14Size);
+                    color: var(--whiteColor);
+                    border-radius: 50px;
+                    margin: 0 2vw;
+                    background-color: #35d4bd;
+                    box-sizing: content-box;
+                    border: 2px dashed var(--whiteColor);
+                }
+
+                button:nth-child(2n) {
+                    background-color: #f860df;
+                }
+
+                button:last-child {
+                    background-color: #FF7F50;
+                }
+            }
+        }
+    }
 }
 
+.scroll-view {
+    position: absolute;
+    top: 0;
+    left: 0;
+    right: 0;
+    bottom: 0;
+
+    .list-scroll-view {
+        display: flex;
+        flex-direction: column;
+    }
+}
+
+.dialog {
+    .dialog_1 {
+        .name {
+            text-align: center;
+            font-size: var(--font18Szie);
+            font-weight: bold;
+            margin: 3vw 0;
+        }
+
+        .image {
+            text-align: center;
+            height: 18vh;
+            overflow: hidden;
+
+            .qrcode {
+                height: 22vh;
+                position: absolute;
+                left: 32vw;
+            }
+        }
+
+        .remark {
+            text-align: center;
+            font-size: 15px;
+            margin: 0 0 4vw 0;
+        }
+    }
+}

+ 31 - 1
pages/soneopen/list.wxml

@@ -1,5 +1,35 @@
 <mobile-main frameStyle="{{frameStyle}}" bind:back="back">
     <view slot="info" class="container main">
-        1
+        <view class="one">
+            <view class="one_1">
+                <input type="text" placeholder="请输入关键词" />
+            </view>
+            <view class="one_2">
+                <button type="primary" bindtap="toAdd">添加</button>
+            </view>
+        </view>
+        <view class="two">
+            <scroll-view scroll-y="true" class="scroll-view" bindscrolltolower="toPage">
+                <view class="list-scroll-view">
+                    <view class="list" wx:for="{{list}}" wx:key="item">
+                        <view class="list_1">
+                            <view class="content">
+                                <view class="name textOver">{{item.title||'暂无'}}</view>
+                                <view class="other">公开课状态:<text>{{item.zhstatus||'暂无'}}</text>
+                                </view>
+                                <view class="other">公开课时间:{{item.time_start||'暂无'}}
+                                </view>
+                                <view class="other">公开课人数上限:{{item.limit||'暂无'}}
+                                </view>
+                            </view>
+                        </view>
+                        <view class="btn">
+                            <button bindtap="toEdit" data-item="{{item}}">信息维护</button>
+                            <button bindtap="toDel" data-item="{{item}}">删除信息</button>
+                        </view>
+                    </view>
+                </view>
+            </scroll-view>
+        </view>
     </view>
 </mobile-main>

+ 126 - 0
pages/soneopen/list.wxss

@@ -1,3 +1,129 @@
 .main {
+  height: var(--twoHeight);
   background-color: var(--mainColor);
 }
+.main .one {
+  display: flex;
+  flex-direction: row;
+  padding: 2vw;
+  border-bottom: 1px solid var(--f1Color);
+}
+.main .one .one_1 {
+  flex-grow: 1;
+}
+.main .one .one_1 input {
+  padding: 1vw 0 2vw 2vw;
+  background-color: var(--f1Color);
+  border-radius: 5px;
+}
+.main .one .one_2 {
+  width: 20vw;
+}
+.main .one .one_2 button {
+  width: 100%;
+  padding: 2vw;
+  font-size: var(--font14Size);
+}
+.main .two {
+  flex-grow: 1;
+  position: relative;
+}
+.main .two .list {
+  display: flex;
+  flex-direction: column;
+  padding: 2vw;
+  margin: 2vw 2vw 0;
+  border-radius: 10px;
+  border: 1px dashed var(--blackColor);
+}
+.main .two .list .list_1 {
+  display: flex;
+  flex-direction: row;
+  margin: 0 0 2vw 0;
+  border: 2px dashed var(--blackColor);
+  border-radius: 10px;
+}
+.main .two .list .list_1 .icon {
+  width: 18vw;
+  height: 18vw;
+  margin-top: 2vw;
+  margin-left: 2vw;
+}
+.main .two .list .list_1 .icon image {
+  width: 100%;
+  height: 100%;
+  border-radius: 50%;
+  background-color: var(--f85Color);
+}
+.main .two .list .list_1 .content {
+  display: flex;
+  flex-direction: column;
+  margin: 0 0 0 3vw;
+}
+.main .two .list .list_1 .content .name {
+  font-weight: 700;
+  font-size: var(--font18Szie);
+  color: var(--blackColor);
+  margin: 1vw 0;
+}
+.main .two .list .list_1 .content .other {
+  font-size: var(--font15Size);
+  color: var(--f85Color);
+  margin: 0.5vw 0 1vw 0;
+}
+.main .two .list .list_1 .content .other text {
+  color: var(--redColor);
+}
+.main .two .list .btn {
+  display: flex;
+  flex-direction: row;
+}
+.main .two .list .btn button {
+  width: 100%;
+  padding: 2vw;
+  font-size: var(--font14Size);
+  color: var(--whiteColor);
+  border-radius: 50px;
+  margin: 0 2vw;
+  background-color: #35d4bd;
+  box-sizing: content-box;
+  border: 2px dashed var(--whiteColor);
+}
+.main .two .list .btn button:nth-child(2n) {
+  background-color: #f860df;
+}
+.main .two .list .btn button:last-child {
+  background-color: #FF7F50;
+}
+.scroll-view {
+  position: absolute;
+  top: 0;
+  left: 0;
+  right: 0;
+  bottom: 0;
+}
+.scroll-view .list-scroll-view {
+  display: flex;
+  flex-direction: column;
+}
+.dialog .dialog_1 .name {
+  text-align: center;
+  font-size: var(--font18Szie);
+  font-weight: bold;
+  margin: 3vw 0;
+}
+.dialog .dialog_1 .image {
+  text-align: center;
+  height: 18vh;
+  overflow: hidden;
+}
+.dialog .dialog_1 .image .qrcode {
+  height: 22vh;
+  position: absolute;
+  left: 32vw;
+}
+.dialog .dialog_1 .remark {
+  text-align: center;
+  font-size: 15px;
+  margin: 0 0 4vw 0;
+}

+ 183 - 0
pages/soneprivate/add.js

@@ -0,0 +1,183 @@
+const app = getApp()
+import WxValidate from '../../utils/wxValidate'
+
+Page({
+
+    /**
+     * 页面的初始数据
+     */
+    data: {
+        frameStyle: { useTop: true, name: '私教课信息', leftArrow: true, useBar: false },
+        id: '',
+        school_id: '',
+        form: {},
+        // 状态列表
+        statusList: [],
+        // 教练列表
+        coachList: [],
+    },
+    initValidate() {
+        const rules = { title: { required: true }, brief: { required: true }, coach_id: { required: true }, limit: { required: true }, start_date: { required: true }, start_time: { required: true }, end_date: { required: true }, end_time: { required: true }, status: { required: true } }
+        // 验证字段的提示信息,若不传则调用默认的信息
+        const messages = { title: { required: '请输入课程标题', }, brief: { required: '请输入简介', }, coach_id: { required: '请选择教练', }, limit: { required: '请输入人数上限', }, start_date: { required: '请选择开始日期', }, start_time: { required: '请选择开始时间', }, end_date: { required: '请选择结束日期', }, end_time: { required: '请选择结束时间', }, status: { required: '请选择状态', } };
+        this.WxValidate = new WxValidate(rules, messages)
+    },
+    // 返回
+    back: function () {
+        wx.navigateBack({ delta: 1 })
+    },
+    // 选择性别
+    statusChange: function (e) {
+        const that = this;
+        let data = that.data.statusList[e.detail.value];
+        if (data) {
+            that.setData({ 'form.status': data.value });
+            that.setData({ 'form.zhstatus': data.label });
+        }
+    },
+    // 选择教练
+    coachChange: function (e) {
+        const that = this;
+        let data = that.data.coachList[e.detail.value];
+        if (data) {
+            that.setData({ 'form.coach_id': data.coach_id });
+            that.setData({ 'form.zhcoach': data.coach_id_name });
+        }
+    },
+    // 开始上课日期
+    startdateChange: function (e) {
+        const that = this;
+        that.setData({ 'form.start_date': e.detail.value })
+    },
+    // 开始上课时间
+    starttimeChange: function (e) {
+        const that = this;
+        that.setData({ 'form.start_time': e.detail.value })
+    },
+    // 结束上课日期
+    enddateChange: function (e) {
+        const that = this;
+        that.setData({ 'form.end_date': e.detail.value })
+    },
+    // 结束上课时间
+    endtimeChange: function (e) {
+        const that = this;
+        that.setData({ 'form.end_time': e.detail.value })
+    },
+    // 提交保存
+    onSubmit: async function (e) {
+        const that = this;
+        const params = e.detail.value;
+        const form = that.data.form;
+        params.school_id = that.data.school_id;
+        params.time_start = form.start_date + '-' + form.start_time;
+        params.time_end = form.end_date + '-' + form.end_time;
+        if (!this.WxValidate.checkForm(params)) {
+            const error = this.WxValidate.errorList[0];
+            wx.showToast({ title: `${error.msg}`, icon: 'error', duration: 2000 })
+            return false
+        } else {
+            let arr;
+            if (form._id) { arr = await app.$post(`/lessonPrivate/${form._id}`, params); }
+            else { arr = await app.$post(`/lessonPrivate`, params); }
+            if (arr.errcode == '0') { wx.showToast({ title: `维护信息完成`, icon: 'success', duration: 2000 }); that.back(); }
+            else wx.showToast({ title: `${error.msg}`, icon: 'error', duration: 2000 })
+        }
+    },
+    /**
+     * 生命周期函数--监听页面加载
+     */
+    onLoad: function (options) {
+        const that = this;
+        that.setData({ id: options.id || '' })
+        //验证规则函数
+        that.initValidate();
+        // 监听用户是否登录
+        that.watchLogin();
+    },
+    // 监听用户是否登录
+    watchLogin: async function () {
+        const that = this;
+        wx.getStorage({
+            key: 'user',
+            success: async res => {
+                that.setData({ school_id: res.data.info.id })
+                const aee = await app.$get(`/dict`, { code: "lesson_status" });
+                if (aee.errcode == '0' && aee.total > 0) that.setData({ statusList: aee.data[0].list });
+                const abb = await app.$get(`/rcs`, { school_id: res.data.info.id });
+                if (abb.errcode == '0' && aee.total > 0) {
+                    that.setData({ coachList: abb.data })
+                }
+                if (that.data.id) {
+                    const arr = await app.$get(`/lessonPrivate/${that.data.id}`);
+                    if (arr.errcode == '0') {
+                        // 状态
+                        let status = that.data.statusList.find(i => i.value == arr.data.status)
+                        if (status) arr.data.zhstatus = status.label;
+                        // 教练
+                        let coach_id = that.data.coachList.find(i => i.coach_id == arr.data.coach_id)
+                        if (coach_id) arr.data.zhcoach = coach_id.coach_id_name;
+                        // 开始时间
+                        arr.data.start_date = arr.data.time_start.slice(0, 10);
+                        arr.data.start_time = arr.data.time_start.slice(11, arr.data.time_start.length);
+                        // 结束时间
+                        arr.data.end_date = arr.data.time_end.slice(0, 10);
+                        arr.data.end_time = arr.data.time_end.slice(11, arr.data.time_end.length);
+                        that.setData({ form: arr.data });
+                    }
+                }
+            },
+            fail: res => {
+                wx.redirectTo({ url: '/pages/index/index', })
+            }
+        })
+    },
+    /**
+     * 生命周期函数--监听页面初次渲染完成
+     */
+    onReady: function () {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面显示
+     */
+    onShow: function () {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面隐藏
+     */
+    onHide: function () {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面卸载
+     */
+    onUnload: function () {
+
+    },
+
+    /**
+     * 页面相关事件处理函数--监听用户下拉动作
+     */
+    onPullDownRefresh: function () {
+
+    },
+
+    /**
+     * 页面上拉触底事件的处理函数
+     */
+    onReachBottom: function () {
+
+    },
+
+    /**
+     * 用户点击右上角分享
+     */
+    onShareAppMessage: function () {
+
+    }
+})

+ 6 - 0
pages/soneprivate/add.json

@@ -0,0 +1,6 @@
+{
+    "component": true,
+    "usingComponents": {
+        "mobile-main": "/commpents/mobile-frame/index"
+    }
+}

+ 82 - 0
pages/soneprivate/add.less

@@ -0,0 +1,82 @@
+.main {
+    background-color: var(--mainColor);
+    height: var(--twoHeight);
+
+    .one {
+        flex-grow: 1;
+        position: relative;
+        height: 81vh;
+
+        .content {
+            display: flex;
+            flex-direction: row;
+            border-bottom: 1px dashed var(--f1Color);
+            padding: 2vw 0;
+            margin: 0 2vw 2vw 2vw;
+
+            .value {
+                flex-grow: 1;
+                color: var(--blackColor);
+
+                textarea {
+                    position: static;
+                    width: 73vw;
+                }
+            }
+        }
+    }
+
+    .btn {
+        text-align: center;
+        margin: 5vw 0 0 0;
+
+        button {
+            width: 40vw;
+            margin: 0 2vw;
+            padding: 1vw 0;
+        }
+    }
+
+}
+
+.scroll-view {
+    position: absolute;
+    top: 0;
+    left: 0;
+    right: 0;
+    bottom: 0;
+
+    .list-scroll-view {
+        display: flex;
+        flex-direction: column;
+    }
+}
+
+.dialog {
+    .dialog_1 {
+        .name {
+            text-align: center;
+            font-size: var(--font18Szie);
+            font-weight: bold;
+            margin: 3vw 0;
+        }
+
+        .image {
+            text-align: center;
+            height: 18vh;
+            overflow: hidden;
+
+            .qrcode {
+                height: 22vh;
+                position: absolute;
+                left: 32vw;
+            }
+        }
+
+        .remark {
+            text-align: center;
+            font-size: 15px;
+            margin: 0 0 4vw 0;
+        }
+    }
+}

+ 87 - 0
pages/soneprivate/add.wxml

@@ -0,0 +1,87 @@
+<mobile-main frameStyle="{{frameStyle}}" bind:back="back">
+    <view slot="info" class="container main">
+        <form catchsubmit="onSubmit">
+            <view class="one">
+                <scroll-view scroll-y="true" class="scroll-view">
+                    <view class="list-scroll-view">
+                        <view class="content">
+                            <view class="label">课程标题:</view>
+                            <view class="value">
+                                <input name="title" value="{{form.title}}" placeholder="请输入课程标题" />
+                            </view>
+                        </view>
+                        <view class="content">
+                            <view class="label">简介:</view>
+                            <view class="value">
+                                <textarea name="brief" maxlength="-1" auto-height value="{{form.brief}}" placeholder="请输入学员简介" />
+                            </view>
+                        </view>
+                        <view class="content">
+                            <view class="label">教练:</view>
+                            <view class="value">
+                                <picker mode="selector" bindchange="coachChange" name="coach_id" value="{{form.coach_id}}" range="{{coachList}}" range-key="coach_id_name">
+                                    <view class="picker">{{form.zhcoach||'请选择教练'}}</view>
+                                </picker>
+                            </view>
+                        </view>
+                        <view class="content">
+                            <view class="label">金额:</view>
+                            <view class="value">
+                                <input name="money" type="number" value="{{form.money}}" placeholder="请输入金额" />
+                            </view>
+                        </view>
+                        <view class="content">
+                            <view class="label">人数上限:</view>
+                            <view class="value">
+                                <input name="limit" type="number" value="{{form.limit}}" placeholder="请输入人数上限" />
+                            </view>
+                        </view>
+                        <view class="content">
+                            <view class="label">上课开始日期:</view>
+                            <view class="value">
+                                <picker mode="date" name="start_date" value="{{form.start_date}}" bindchange="startdateChange">
+                                    <view class="picker">{{form.start_date||'请选择上课开始日期'}}</view>
+                                </picker>
+                            </view>
+                        </view>
+                        <view class="content">
+                            <view class="label">上课开始时间:</view>
+                            <view class="value">
+                                <picker mode="time" name="start_time" value="{{form.start_time}}" bindchange="starttimeChange">
+                                    <view class="picker">{{form.start_time||'请选择上课开始时间'}}</view>
+                                </picker>
+                            </view>
+                        </view>
+                        <view class="content">
+                            <view class="label">上课结束日期:</view>
+                            <view class="value">
+                                <picker mode="date" name="end_date" value="{{form.end_date}}" bindchange="enddateChange">
+                                    <view class="picker">{{form.end_date||'请选择上课结束日期'}}</view>
+                                </picker>
+                            </view>
+                        </view>
+                        <view class="content">
+                            <view class="label">上课结束时间:</view>
+                            <view class="value">
+                                <picker mode="time" name="end_time" value="{{form.end_time}}" bindchange="endtimeChange">
+                                    <view class="picker">{{form.end_time||'请选择上课结束时间'}}</view>
+                                </picker>
+                            </view>
+                        </view>
+                        <view class="content">
+                            <view class="label">状态:</view>
+                            <view class="value">
+                                <picker mode="selector" bindchange="statusChange" name="status" value="{{form.status}}" range="{{statusList}}" range-key="label">
+                                    <view class="picker">{{form.zhstatus||'请选择状态'}}</view>
+                                </picker>
+                            </view>
+                        </view>
+                    </view>
+                </scroll-view>
+            </view>
+            <view class="btn">
+                <button type="primary" size="mini" formType="submit">提交保存</button>
+            </view>
+        </form>
+    </view>
+</mobile-main>

+ 65 - 0
pages/soneprivate/add.wxss

@@ -0,0 +1,65 @@
+.main {
+  background-color: var(--mainColor);
+  height: var(--twoHeight);
+}
+.main .one {
+  flex-grow: 1;
+  position: relative;
+  height: 81vh;
+}
+.main .one .content {
+  display: flex;
+  flex-direction: row;
+  border-bottom: 1px dashed var(--f1Color);
+  padding: 2vw 0;
+  margin: 0 2vw 2vw 2vw;
+}
+.main .one .content .value {
+  flex-grow: 1;
+  color: var(--blackColor);
+}
+.main .one .content .value textarea {
+  position: static;
+  width: 73vw;
+}
+.main .btn {
+  text-align: center;
+  margin: 5vw 0 0 0;
+}
+.main .btn button {
+  width: 40vw;
+  margin: 0 2vw;
+  padding: 1vw 0;
+}
+.scroll-view {
+  position: absolute;
+  top: 0;
+  left: 0;
+  right: 0;
+  bottom: 0;
+}
+.scroll-view .list-scroll-view {
+  display: flex;
+  flex-direction: column;
+}
+.dialog .dialog_1 .name {
+  text-align: center;
+  font-size: var(--font18Szie);
+  font-weight: bold;
+  margin: 3vw 0;
+}
+.dialog .dialog_1 .image {
+  text-align: center;
+  height: 18vh;
+  overflow: hidden;
+}
+.dialog .dialog_1 .image .qrcode {
+  height: 22vh;
+  position: absolute;
+  left: 32vw;
+}
+.dialog .dialog_1 .remark {
+  text-align: center;
+  font-size: 15px;
+  margin: 0 0 4vw 0;
+}

+ 56 - 2
pages/soneprivate/list.js

@@ -2,11 +2,51 @@ const app = getApp()
 Page({
     data: {
         frameStyle: { useTop: true, name: '私教课', leftArrow: true, useBar: false },
+        list: [],
+        total: 0,
+        page: 0,
+        skip: 0,
+        limit: 5,
+        statusList: [],
     },
     // 返回
     back(e) {
         wx.navigateBack({ delta: 1 })
     },
+    // 添加
+    toAdd() {
+        const that = this;
+        that.setData({ skip: 0, page: 0, list: [] })
+        wx.navigateTo({ url: '/pages/soneprivate/add' })
+    },
+    // 修改
+    toEdit: function (e) {
+        const that = this;
+        let { item } = e.currentTarget.dataset;
+        that.setData({ skip: 0, page: 0, list: [] })
+        wx.navigateTo({ url: `/pages/soneprivate/add?id=${item._id}` })
+    },
+    // 删除
+    toDel: async function (e) {
+        const that = this;
+        const { item } = e.currentTarget.dataset;
+        wx.showModal({
+            title: '提示',
+            content: '是否确认删除该条数据?',
+            async success(res) {
+                if (res.confirm) {
+                    const arr = await app.$delete(`/lessonPrivate/${item.id}`);
+                    if (arr.errcode == '0') {
+                        wx.showToast({ title: `删除信息成功`, icon: 'success', duration: 2000 })
+                        that.setData({ skip: 0, page: 0, list: [] })
+                        that.watchLogin()
+                    } else {
+                        wx.showToast({ title: `${arr.errmsg}`, icon: 'error', duration: 2000 })
+                    }
+                }
+            }
+        })
+    },
     /**
      * 生命周期函数--监听页面加载
      */
@@ -16,9 +56,23 @@ Page({
         const that = this;
         wx.getStorage({
             key: 'user',
-            success: async res => { },
+            success: async res => {
+                const aee = await app.$get(`/dict`, { code: "lesson_status" });
+                if (aee.errcode == '0' && aee.total > 0) that.setData({ statusList: aee.data[0].list });
+                let info = { skip: that.data.skip, limit: that.data.limit, school_id: res.data.info.id };
+                const arr = await app.$get(`/lessonPrivate`, { ...info });
+                if (arr.errcode == '0') {
+                    for (const val of arr.data) {
+                        let level = that.data.statusList.find(i => i.value == val.status)
+                        if (level) val.zhstatus = level.label;
+                    }
+                    that.setData({ list: [...that.data.list, ...arr.data] });
+                    that.setData({ total: arr.total });
+                }
+                else { wx.showToast({ title: `${arr.errmsg}`, icon: 'error', duration: 2000 }) }
+            },
             fail: async res => {
-                // wx.redirectTo({ url: '/pages/index/index' })
+                wx.redirectTo({ url: '/pages/index/index' })
             }
         })
     },

+ 154 - 0
pages/soneprivate/list.less

@@ -1,4 +1,158 @@
 .main {
+    height: var(--twoHeight);
     background-color: var(--mainColor);
+
+    .one {
+        display: flex;
+        flex-direction: row;
+        padding: 2vw;
+        border-bottom: 1px solid var(--f1Color);
+
+        .one_1 {
+            flex-grow: 1;
+
+            input {
+                padding: 1vw 0 2vw 2vw;
+                background-color: var(--f1Color);
+                border-radius: 5px;
+            }
+        }
+
+        .one_2 {
+            width: 20vw;
+
+            button {
+                width: 100%;
+                padding: 2vw;
+                font-size: var(--font14Size);
+            }
+        }
+    }
+
+    .two {
+        flex-grow: 1;
+        position: relative;
+
+        .list {
+            display: flex;
+            flex-direction: column;
+            padding: 2vw;
+            margin: 2vw 2vw 0;
+            border-radius: 10px;
+            border: 1px dashed var(--blackColor);
+
+
+            .list_1 {
+                display: flex;
+                flex-direction: row;
+                margin: 0 0 2vw 0;
+                border: 2px dashed var(--blackColor);
+                border-radius: 10px;
+
+                .icon {
+                    width: 18vw;
+                    height: 18vw;
+                    margin-top: 2vw;
+                    margin-left: 2vw;
+
+                    image {
+                        width: 100%;
+                        height: 100%;
+                        border-radius: 50%;
+                        background-color: var(--f85Color);
+                    }
+                }
+
+                .content {
+                    display: flex;
+                    flex-direction: column;
+                    margin: 0 0 0 3vw;
+
+                    .name {
+                        font-weight: 700;
+                        font-size: var(--font18Szie);
+                        color: var(--blackColor);
+                        margin: 1vw 0;
+                    }
+
+                    .other {
+                        font-size: var(--font15Size);
+                        color: var(--f85Color);
+                        margin: 0.5vw 0 1vw 0;
+
+                        text {
+                            color: var(--redColor);
+                        }
+                    }
+                }
+            }
+
+            .btn {
+                display: flex;
+                flex-direction: row;
+
+                button {
+                    width: 100%;
+                    padding: 2vw;
+                    font-size: var(--font14Size);
+                    color: var(--whiteColor);
+                    border-radius: 50px;
+                    margin: 0 2vw;
+                    background-color: #35d4bd;
+                    box-sizing: content-box;
+                    border: 2px dashed var(--whiteColor);
+                }
+
+                button:nth-child(2n) {
+                    background-color: #f860df;
+                }
+
+                button:last-child {
+                    background-color: #FF7F50;
+                }
+            }
+        }
+    }
 }
 
+.scroll-view {
+    position: absolute;
+    top: 0;
+    left: 0;
+    right: 0;
+    bottom: 0;
+
+    .list-scroll-view {
+        display: flex;
+        flex-direction: column;
+    }
+}
+
+.dialog {
+    .dialog_1 {
+        .name {
+            text-align: center;
+            font-size: var(--font18Szie);
+            font-weight: bold;
+            margin: 3vw 0;
+        }
+
+        .image {
+            text-align: center;
+            height: 18vh;
+            overflow: hidden;
+
+            .qrcode {
+                height: 22vh;
+                position: absolute;
+                left: 32vw;
+            }
+        }
+
+        .remark {
+            text-align: center;
+            font-size: 15px;
+            margin: 0 0 4vw 0;
+        }
+    }
+}

+ 31 - 1
pages/soneprivate/list.wxml

@@ -1,5 +1,35 @@
 <mobile-main frameStyle="{{frameStyle}}" bind:back="back">
     <view slot="info" class="container main">
-        1
+        <view class="one">
+            <view class="one_1">
+                <input type="text" placeholder="请输入关键词" />
+            </view>
+            <view class="one_2">
+                <button type="primary" bindtap="toAdd">添加</button>
+            </view>
+        </view>
+        <view class="two">
+            <scroll-view scroll-y="true" class="scroll-view" bindscrolltolower="toPage">
+                <view class="list-scroll-view">
+                    <view class="list" wx:for="{{list}}" wx:key="item">
+                        <view class="list_1">
+                            <view class="content">
+                                <view class="name textOver">{{item.title||'暂无'}}</view>
+                                <view class="other">公开课状态:<text>{{item.zhstatus||'暂无'}}</text>
+                                </view>
+                                <view class="other">公开课时间:{{item.time_start||'暂无'}}
+                                </view>
+                                <view class="other">公开课人数上限:{{item.limit||'暂无'}}
+                                </view>
+                            </view>
+                        </view>
+                        <view class="btn">
+                            <button bindtap="toEdit" data-item="{{item}}">信息维护</button>
+                            <button bindtap="toDel" data-item="{{item}}">删除信息</button>
+                        </view>
+                    </view>
+                </view>
+            </scroll-view>
+        </view>
     </view>
 </mobile-main>

+ 126 - 0
pages/soneprivate/list.wxss

@@ -1,3 +1,129 @@
 .main {
+  height: var(--twoHeight);
   background-color: var(--mainColor);
 }
+.main .one {
+  display: flex;
+  flex-direction: row;
+  padding: 2vw;
+  border-bottom: 1px solid var(--f1Color);
+}
+.main .one .one_1 {
+  flex-grow: 1;
+}
+.main .one .one_1 input {
+  padding: 1vw 0 2vw 2vw;
+  background-color: var(--f1Color);
+  border-radius: 5px;
+}
+.main .one .one_2 {
+  width: 20vw;
+}
+.main .one .one_2 button {
+  width: 100%;
+  padding: 2vw;
+  font-size: var(--font14Size);
+}
+.main .two {
+  flex-grow: 1;
+  position: relative;
+}
+.main .two .list {
+  display: flex;
+  flex-direction: column;
+  padding: 2vw;
+  margin: 2vw 2vw 0;
+  border-radius: 10px;
+  border: 1px dashed var(--blackColor);
+}
+.main .two .list .list_1 {
+  display: flex;
+  flex-direction: row;
+  margin: 0 0 2vw 0;
+  border: 2px dashed var(--blackColor);
+  border-radius: 10px;
+}
+.main .two .list .list_1 .icon {
+  width: 18vw;
+  height: 18vw;
+  margin-top: 2vw;
+  margin-left: 2vw;
+}
+.main .two .list .list_1 .icon image {
+  width: 100%;
+  height: 100%;
+  border-radius: 50%;
+  background-color: var(--f85Color);
+}
+.main .two .list .list_1 .content {
+  display: flex;
+  flex-direction: column;
+  margin: 0 0 0 3vw;
+}
+.main .two .list .list_1 .content .name {
+  font-weight: 700;
+  font-size: var(--font18Szie);
+  color: var(--blackColor);
+  margin: 1vw 0;
+}
+.main .two .list .list_1 .content .other {
+  font-size: var(--font15Size);
+  color: var(--f85Color);
+  margin: 0.5vw 0 1vw 0;
+}
+.main .two .list .list_1 .content .other text {
+  color: var(--redColor);
+}
+.main .two .list .btn {
+  display: flex;
+  flex-direction: row;
+}
+.main .two .list .btn button {
+  width: 100%;
+  padding: 2vw;
+  font-size: var(--font14Size);
+  color: var(--whiteColor);
+  border-radius: 50px;
+  margin: 0 2vw;
+  background-color: #35d4bd;
+  box-sizing: content-box;
+  border: 2px dashed var(--whiteColor);
+}
+.main .two .list .btn button:nth-child(2n) {
+  background-color: #f860df;
+}
+.main .two .list .btn button:last-child {
+  background-color: #FF7F50;
+}
+.scroll-view {
+  position: absolute;
+  top: 0;
+  left: 0;
+  right: 0;
+  bottom: 0;
+}
+.scroll-view .list-scroll-view {
+  display: flex;
+  flex-direction: column;
+}
+.dialog .dialog_1 .name {
+  text-align: center;
+  font-size: var(--font18Szie);
+  font-weight: bold;
+  margin: 3vw 0;
+}
+.dialog .dialog_1 .image {
+  text-align: center;
+  height: 18vh;
+  overflow: hidden;
+}
+.dialog .dialog_1 .image .qrcode {
+  height: 22vh;
+  position: absolute;
+  left: 32vw;
+}
+.dialog .dialog_1 .remark {
+  text-align: center;
+  font-size: 15px;
+  margin: 0 0 4vw 0;
+}

+ 1 - 2
pages/sonestudent/add.wxml

@@ -28,11 +28,10 @@
                         <input type="number" name="age" value="{{form.age}}" placeholder="请输入年龄" />
                     </view>
                 </view>
-
                 <view class="content">
                     <view class="label">联系电话:</view>
                     <view class="value">
-                        <input type="text" name="phone" value="{{form.phone}}" placeholder="请输入联系电话" />
+                        <input type="text" name="phone" maxlength="11" value="{{form.phone}}" placeholder="请输入联系电话" />
                     </view>
                 </view>
                 <view class="content">

+ 2 - 1
utils/dict.js

@@ -52,10 +52,11 @@ export const school_menu = [
                 title: '羽校管理',
                 icon: 'icon-xuexiao',
                 btn: [
-                    { title: '学校信息', route: '/soneschool/list', icon: 'icon-xuexiao_xuexiaoxinxi' },
+                    { title: '学校信息', route: 'soneschool/list', icon: 'icon-xuexiao_xuexiaoxinxi' },
                     { title: '教练信息', route: 'sonecoach/list', icon: 'icon-jiaolian1' },
                     { title: '审批教练费', route: 'sonefee/list', icon: 'icon-tianshenpi' },
                     { title: '学员信息', route: 'sonestudent/list', icon: 'icon-zaiduxueyuan' },
+                    { title: '入学审核', route: 'soneapply/list', icon: 'icon-shenhe' },
                 ]
             },
             {