guhongwei 2 年之前
父节点
当前提交
4693327b84
共有 100 个文件被更改,包括 222 次插入5577 次删除
  1. 1 0
      app.js
  2. 14 50
      app.json
  3. 2 0
      pages/index/index.js
  4. 0 159
      pagesSchool/coaAdmin/archives/info.js
  5. 0 43
      pagesSchool/coaAdmin/archives/info.less
  6. 0 34
      pagesSchool/coaAdmin/archives/info.wxss
  7. 0 111
      pagesSchool/coaAdmin/cashout/add.js
  8. 0 7
      pagesSchool/coaAdmin/cashout/add.json
  9. 0 36
      pagesSchool/coaAdmin/cashout/add.less
  10. 0 29
      pagesSchool/coaAdmin/cashout/add.wxml
  11. 0 28
      pagesSchool/coaAdmin/cashout/add.wxss
  12. 0 129
      pagesSchool/coaAdmin/cashout/list.js
  13. 0 7
      pagesSchool/coaAdmin/cashout/list.json
  14. 0 106
      pagesSchool/coaAdmin/cashout/list.less
  15. 0 73
      pagesSchool/coaAdmin/cashout/list.wxml
  16. 0 84
      pagesSchool/coaAdmin/cashout/list.wxss
  17. 70 0
      pagesSchool/coaAdmin/coach/basic.js
  18. 0 0
      pagesSchool/coaAdmin/coach/basic.json
  19. 1 0
      pagesSchool/coaAdmin/coach/basic.less
  20. 5 0
      pagesSchool/coaAdmin/coach/basic.wxml
  21. 1 0
      pagesSchool/coaAdmin/coach/basic.wxss
  22. 0 183
      pagesSchool/coaAdmin/course/add.js
  23. 0 6
      pagesSchool/coaAdmin/course/add.json
  24. 0 40
      pagesSchool/coaAdmin/course/add.less
  25. 0 109
      pagesSchool/coaAdmin/course/add.wxml
  26. 0 30
      pagesSchool/coaAdmin/course/add.wxss
  27. 0 119
      pagesSchool/coaAdmin/course/coachadd.js
  28. 0 36
      pagesSchool/coaAdmin/course/coachadd.less
  29. 0 41
      pagesSchool/coaAdmin/course/coachadd.wxml
  30. 0 28
      pagesSchool/coaAdmin/course/coachadd.wxss
  31. 0 139
      pagesSchool/coaAdmin/course/coachlist.js
  32. 0 6
      pagesSchool/coaAdmin/course/coachlist.json
  33. 0 160
      pagesSchool/coaAdmin/course/coachlist.less
  34. 0 31
      pagesSchool/coaAdmin/course/coachlist.wxml
  35. 0 130
      pagesSchool/coaAdmin/course/coachlist.wxss
  36. 0 124
      pagesSchool/coaAdmin/course/info.js
  37. 0 7
      pagesSchool/coaAdmin/course/info.json
  38. 0 108
      pagesSchool/coaAdmin/course/info.less
  39. 0 107
      pagesSchool/coaAdmin/course/info.wxml
  40. 0 88
      pagesSchool/coaAdmin/course/info.wxss
  41. 8 101
      pagesSchool/coaAdmin/course/list.js
  42. 1 92
      pagesSchool/coaAdmin/course/list.less
  43. 1 29
      pagesSchool/coaAdmin/course/list.wxml
  44. 1 75
      pagesSchool/coaAdmin/course/list.wxss
  45. 0 219
      pagesSchool/coaAdmin/course/statusadd.js
  46. 0 8
      pagesSchool/coaAdmin/course/statusadd.json
  47. 0 65
      pagesSchool/coaAdmin/course/statusadd.less
  48. 0 62
      pagesSchool/coaAdmin/course/statusadd.wxml
  49. 0 49
      pagesSchool/coaAdmin/course/statusadd.wxss
  50. 0 133
      pagesSchool/coaAdmin/course/statuslist.js
  51. 0 6
      pagesSchool/coaAdmin/course/statuslist.json
  52. 0 92
      pagesSchool/coaAdmin/course/statuslist.less
  53. 0 26
      pagesSchool/coaAdmin/course/statuslist.wxml
  54. 0 75
      pagesSchool/coaAdmin/course/statuslist.wxss
  55. 0 144
      pagesSchool/coaAdmin/money/add.js
  56. 0 36
      pagesSchool/coaAdmin/money/add.less
  57. 0 17
      pagesSchool/coaAdmin/money/add.wxml
  58. 0 28
      pagesSchool/coaAdmin/money/add.wxss
  59. 0 117
      pagesSchool/coaAdmin/money/list.js
  60. 0 93
      pagesSchool/coaAdmin/money/list.less
  61. 0 30
      pagesSchool/coaAdmin/money/list.wxml
  62. 0 76
      pagesSchool/coaAdmin/money/list.wxss
  63. 0 101
      pagesSchool/coaAdmin/school/info.js
  64. 0 54
      pagesSchool/coaAdmin/school/info.less
  65. 0 30
      pagesSchool/coaAdmin/school/info.wxml
  66. 0 41
      pagesSchool/coaAdmin/school/info.wxss
  67. 7 54
      pagesSchool/coaAdmin/school/list.js
  68. 1 92
      pagesSchool/coaAdmin/school/list.less
  69. 1 23
      pagesSchool/coaAdmin/school/list.wxml
  70. 1 75
      pagesSchool/coaAdmin/school/list.wxss
  71. 0 159
      pagesSchool/coaAdmin/stat/income.js
  72. 0 8
      pagesSchool/coaAdmin/stat/income.json
  73. 0 11
      pagesSchool/coaAdmin/stat/income.less
  74. 0 7
      pagesSchool/coaAdmin/stat/income.wxml
  75. 0 9
      pagesSchool/coaAdmin/stat/income.wxss
  76. 26 93
      pagesSchool/coaAdmin/stat/lecture.js
  77. 2 3
      pagesSchool/coaAdmin/stat/lecture.json
  78. 1 19
      pagesSchool/coaAdmin/stat/lecture.less
  79. 1 6
      pagesSchool/coaAdmin/stat/lecture.wxml
  80. 0 15
      pagesSchool/coaAdmin/stat/lecture.wxss
  81. 0 137
      pagesSchool/coaAdmin/stat/student.js
  82. 0 7
      pagesSchool/coaAdmin/stat/student.json
  83. 0 19
      pagesSchool/coaAdmin/stat/student.less
  84. 0 10
      pagesSchool/coaAdmin/stat/student.wxml
  85. 0 16
      pagesSchool/coaAdmin/stat/student.wxss
  86. 0 177
      pagesSchool/coaAdmin/student/add.js
  87. 0 36
      pagesSchool/coaAdmin/student/add.less
  88. 0 51
      pagesSchool/coaAdmin/student/add.wxml
  89. 0 28
      pagesSchool/coaAdmin/student/add.wxss
  90. 0 133
      pagesSchool/coaAdmin/student/list.js
  91. 0 6
      pagesSchool/coaAdmin/student/list.json
  92. 0 92
      pagesSchool/coaAdmin/student/list.less
  93. 0 29
      pagesSchool/coaAdmin/student/list.wxml
  94. 0 75
      pagesSchool/coaAdmin/student/list.wxss
  95. 70 0
      pagesSchool/common/coachinfo.js
  96. 0 0
      pagesSchool/common/coachinfo.json
  97. 1 0
      pagesSchool/common/coachinfo.less
  98. 5 0
      pagesSchool/common/coachinfo.wxml
  99. 1 0
      pagesSchool/common/coachinfo.wxss
  100. 0 0
      pagesSchool/common/lessoninfo.js

+ 1 - 0
app.js

@@ -22,6 +22,7 @@ App({
         userInfo: {},
         // 微信用户openid,sessionKey
         wxInfo: {},
+        icon: 'https://thirdwx.qlogo.cn/mmopen/vi_32/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg/132',
         // 当前设备信息
         client: {},
         // 数据请求接口域名

+ 14 - 50
app.json

@@ -18,73 +18,37 @@
             "root": "pagesSchool",
             "independent": true,
             "pages": [
-                "school/info",
                 "system/index",
-                "schAdmin/school/info",
+                "school/info",
+                "superAdmin/school/list",
+                "superAdmin/school/add",
+                "superAdmin/user/list",
+                "superAdmin/dict/list",
+                "schAdmin/school/basic",
                 "schAdmin/coach/list",
-                "schAdmin/coach/add",
-                "schAdmin/coachexam/list",
-                "schAdmin/coachprofit/list",
-                "schAdmin/coachprofit/info",
                 "schAdmin/student/list",
-                "schAdmin/student/add",
-                "schAdmin/studentexam/list",
-                "schAdmin/studentexam/info",
                 "schAdmin/course/list",
-                "schAdmin/course/add",
-                "schAdmin/course/info",
-                "schAdmin/course/coachlist",
-                "schAdmin/course/coachadd",
-                "schAdmin/coursestu/list",
-                "schAdmin/coursestu/info",
-                "schAdmin/coursetryexam/list",
-                "schAdmin/coursetryexam/info",
                 "schAdmin/courseexam/list",
-                "schAdmin/courseexam/info",
                 "schAdmin/stat/income",
                 "schAdmin/stat/student",
                 "schAdmin/stat/coach",
-                "coaAdmin/money/list",
-                "coaAdmin/money/add",
-                "coaAdmin/archives/info",
+                "schAdmin/stat/lesson",
+                "coaAdmin/coach/basic",
                 "coaAdmin/school/list",
-                "coaAdmin/school/info",
-                "coaAdmin/cashout/list",
-                "coaAdmin/cashout/add",
                 "coaAdmin/course/list",
-                "coaAdmin/course/add",
-                "coaAdmin/course/info",
-                "coaAdmin/course/coachlist",
-                "coaAdmin/course/coachadd",
-                "coaAdmin/course/statuslist",
-                "coaAdmin/course/statusadd",
-                "coaAdmin/student/list",
-                "coaAdmin/student/add",
                 "coaAdmin/stat/lecture",
-                "coaAdmin/stat/income",
-                "coaAdmin/stat/student",
                 "stuAdmin/money/list",
-                "stuAdmin/money/add",
-                "stuAdmin/archives/list",
+                "stuAdmin/student/basic",
                 "stuAdmin/school/list",
-                "stuAdmin/school/info",
-                "stuAdmin/coach/list",
-                "stuAdmin/coach/info",
                 "stuAdmin/course/list",
-                "stuAdmin/course/info",
-                "stuAdmin/course/sign",
                 "stuAdmin/stat/study",
                 "stuAdmin/stat/fee",
-                "superAdmin/dict/list",
-                "superAdmin/dict/add",
-                "superAdmin/user/list",
+                "common/lessoninfo",
+                "common/coachinfo",
                 "superAdmin/user/add",
-                "superAdmin/school/list",
-                "superAdmin/school/add",
-                "superAdmin/coach/list",
-                "superAdmin/coach/add",
-                "superAdmin/student/list",
-                "superAdmin/student/add"
+                "superAdmin/dict/add",
+                "schAdmin/coach/add",
+                "schAdmin/student/add"
             ]
         },
         {

+ 2 - 0
pages/index/index.js

@@ -18,6 +18,8 @@ Page({
             key: 'user',
             success: async res => {
                 if (res.data) wx.redirectTo({ url: '/pages/school/index' })
+                // /pages/school/index
+                // /pagesSchool/schAdmin/coach/list
             },
             fail: async res => {
                 wx.login({

+ 0 - 159
pagesSchool/coaAdmin/archives/info.js

@@ -1,159 +0,0 @@
-const app = getApp()
-import WxValidate from '../../../utils/wxValidate'
-Page({
-    data: {
-        frameStyle: { useTop: true, name: '个人档案', leftArrow: true, useBar: false },
-        form: { icon: [] },
-        // 性别
-        genderList: [],
-        // 等级列表
-        levelList: [],
-    },
-    initValidate() {
-        const rules = { icon: { required: true }, name: { required: true }, gender: { required: true }, age: { required: true }, phone: { required: true, tel: true } }
-        // 验证字段的提示信息,若不传则调用默认的信息
-        const messages = { icon: { required: '请选择头像', }, name: { required: '请输入用户姓名', }, gender: { required: '请选择性别', }, age: { required: '请输入年龄', }, phone: { required: '请输入联系电话', } };
-        this.WxValidate = new WxValidate(rules, messages)
-    },
-    // 返回
-    back(e) {
-        wx.navigateBack({ delta: 1 })
-    },
-    imgUpl: function (e) {
-        const that = this;
-        let data = that.data.form.icon;
-        data.push(e.detail)
-        that.setData({ 'form.icon': data })
-    },
-    // 删除图片
-    imgDel: function (e) {
-        const that = this;
-        let list = that.data.form.icon;
-        let arr = list.filter((i, index) => index != e.detail.index)
-        that.setData({ 'form.icon': arr })
-    },
-    // 选择性别
-    genderChange: function (e) {
-        const that = this;
-        let data = that.data.genderList[e.detail.value];
-        if (data) {
-            that.setData({ 'form.gender': data.value });
-            that.setData({ 'form.zhGender': data.label });
-        }
-    },
-    //选择等级
-    coachChange: function (e) {
-        const that = this;
-        let data = that.data.levelList[e.detail.value];
-        if (data) {
-            that.setData({ 'form.level': data.value });
-            that.setData({ 'form.zhLevel': data.label });
-        }
-    },
-    // 提交保运
-    onSubmit: async function (e) {
-        const that = this;
-        const params = e.detail.value;
-        const form = that.data.form;
-        params.icon = form.icon;
-        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 = await app.$post(`/coach/${params._id}`, params);
-            if (arr.errcode == '0') {
-                wx.showToast({ title: `维护信息完成`, icon: 'success', duration: 2000 });
-                that.back()
-            }
-            else wx.showToast({ title: `${arr.errmsg}`, icon: 'error', duration: 2000 })
-        }
-    },
-    /**
-     * 生命周期函数--监听页面加载
-     */
-    onLoad: async function (options) {
-        const that = this;
-        //验证规则函数
-        that.initValidate();
-        // 查询其他信息
-        await that.searchOther();
-        // 监听用户是否登录
-        await that.watchLogin();
-    },
-    // 查询其他信息
-    searchOther: async function () {
-        const that = this;
-        let arr;
-        // 等级
-        arr = await app.$get(`/dict`, { code: "coach_grade" });
-        if (arr.errcode == '0' && arr.total > 0) that.setData({ levelList: arr.data[0].list });
-        // 性别
-        arr = await app.$get(`/dict`, { code: "gender" });
-        if (arr.errcode == '0' && arr.total > 0) that.setData({ genderList: arr.data[0].list });
-    },
-    // 监听用户是否登录
-    watchLogin: async function () {
-        const that = this;
-        let levelList = that.data.levelList;
-        let genderList = that.data.genderList;
-        wx.getStorage({
-            key: 'user',
-            success: async res => {
-                const arr = await app.$get(`/coach/${res.data?.info?._id}`);
-                if (arr.errcode == '0') {
-                    // 等级
-                    let grade = levelList.find(i => i.value == arr.data.level);
-                    if (grade) arr.data.zhLevel = grade.label;
-                    // 性别
-                    let gender = genderList.find(i => i.value == arr.data.gender);
-                    if (gender) arr.data.zhGender = gender.label;
-                    that.setData({ form: arr.data })
-                }
-            },
-            fail: async res => {
-                wx.redirectTo({ url: '/pages/index/index' })
-            }
-        })
-    },
-    /**
-     * 生命周期函数--监听页面初次渲染完成
-     */
-    onReady: function () { },
-    /**
-     * 生命周期函数--监听页面显示
-     */
-    onShow: function () {
-
-    },
-    /**
-     * 页面上拉触底事件的处理函数
-     */
-    /**
-     * 生命周期函数--监听页面隐藏
-     */
-    onHide: function () {
-
-    },
-
-    /**
-     * 生命周期函数--监听页面卸载
-     */
-    onUnload: function () {
-
-    },
-
-    /**
-     * 页面相关事件处理函数--监听用户下拉动作
-     */
-    onPullDownRefresh: function () {
-
-    },
-
-    /**
-     * 用户点击右上角分享
-     */
-    onShareAppMessage: function () {
-
-    }
-})

+ 0 - 43
pagesSchool/coaAdmin/archives/info.less

@@ -1,43 +0,0 @@
-@import (css) "/app.wxss";
-
-.main {
-    background-color: var(--mainColor);
-
-    .one {
-        flex-grow: 1;
-        position: relative;
-
-        .content {
-            display: flex;
-            flex-direction: row;
-            padding: 2vw;
-            border-bottom: 1px dashed var(--f1Color);
-
-            .label {
-                font-size: var(--font16Size);
-            }
-
-            .value {
-                font-size: var(--font16Size);
-                width: 70vw;
-
-                textarea {
-                    width: 100%;
-                    height: 120px;
-                }
-            }
-        }
-    }
-
-    .btn {
-        text-align: center;
-        margin: 5vw 0 0 0;
-
-        button {
-            width: 40vw;
-            margin: 0 2vw;
-            padding: 1vw 0;
-        }
-    }
-
-}

+ 0 - 34
pagesSchool/coaAdmin/archives/info.wxss

@@ -1,34 +0,0 @@
-@import "/app.wxss";
-.main {
-  background-color: var(--mainColor);
-}
-.main .one {
-  flex-grow: 1;
-  position: relative;
-}
-.main .one .content {
-  display: flex;
-  flex-direction: row;
-  padding: 2vw;
-  border-bottom: 1px dashed var(--f1Color);
-}
-.main .one .content .label {
-  font-size: var(--font16Size);
-}
-.main .one .content .value {
-  font-size: var(--font16Size);
-  width: 70vw;
-}
-.main .one .content .value textarea {
-  width: 100%;
-  height: 120px;
-}
-.main .btn {
-  text-align: center;
-  margin: 5vw 0 0 0;
-}
-.main .btn button {
-  width: 40vw;
-  margin: 0 2vw;
-  padding: 1vw 0;
-}

+ 0 - 111
pagesSchool/coaAdmin/cashout/add.js

@@ -1,111 +0,0 @@
-const app = getApp()
-import WxValidate from '../../../utils/wxValidate';
-Page({
-    data: {
-        frameStyle: { useTop: true, name: '提现申请信息', leftArrow: true, useBar: false },
-        form: {},
-    },
-    initValidate() {
-        const rules = { salary: { required: true } }
-        // 验证字段的提示信息,若不传则调用默认的信息
-        const messages = { salary: { required: '请输入提现金额' } };
-        this.WxValidate = new WxValidate(rules, messages)
-    },
-    // 返回
-    back: function () {
-        wx.navigateBack({ delta: 1 })
-    },
-    //提交
-    onSubmit: async function (e) {
-        const that = this;
-        const params = e.detail.value;
-        if (!this.WxValidate.checkForm(params)) {
-            const error = this.WxValidate.errorList[0];
-            wx.showToast({ title: `${error.msg}`, icon: 'error', duration: 2000 })
-            return false
-        } else {
-            const arr = await app.$post(`/billApply`, params)
-            if (arr.errcode == '0') { wx.showToast({ title: `维护信息完成`, icon: 'success', duration: 2000 }); that.back(); }
-            else wx.showToast({ title: `${arr.errmsg}`, icon: 'error', duration: 2000 })
-        }
-    },
-    /**
-     * 生命周期函数--监听页面加载
-     */
-    onLoad: async function (options) {
-        const that = this;
-        that.setData({ id: options.id || '' })
-        //验证规则函数
-        that.initValidate();
-        // 监听用户是否登录
-        await that.watchLogin();
-    },
-
-    // 监听用户是否登录
-    watchLogin: async function () {
-        const that = this;
-        wx.getStorage({
-            key: 'user',
-            success: async res => {
-                let data = res.data;
-                let form = { coach_id: data.info.id };
-                // 教练与学校的关系
-                const school = await app.$get(`/rcs`, { coach_id: form.coach_id });
-                if (school.errcode == '0' && school.total > 0) { form.school_id = school.data[0].school_id }
-                else { wx.showToast({ title: `缺少必要信息`, icon: 'error', duration: 2000 }) };
-                that.setData({ form })
-            },
-            fail: async res => {
-                wx.redirectTo({ url: '/pages/index/index' })
-            }
-        })
-    },
-    /**
-     * 生命周期函数--监听页面初次渲染完成
-     */
-    onReady: function () {
-
-    },
-
-    /**
-     * 生命周期函数--监听页面显示
-     */
-    onShow: function () {
-
-    },
-
-    /**
-     * 生命周期函数--监听页面隐藏
-     */
-    onHide: function () {
-
-    },
-
-    /**
-     * 生命周期函数--监听页面卸载
-     */
-    onUnload: function () {
-
-    },
-
-    /**
-     * 页面相关事件处理函数--监听用户下拉动作
-     */
-    onPullDownRefresh: function () {
-
-    },
-
-    /**
-     * 页面上拉触底事件的处理函数
-     */
-    onReachBottom: function () {
-
-    },
-
-    /**
-     * 用户点击右上角分享
-     */
-    onShareAppMessage: function () {
-
-    }
-})

+ 0 - 7
pagesSchool/coaAdmin/cashout/add.json

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

+ 0 - 36
pagesSchool/coaAdmin/cashout/add.less

@@ -1,36 +0,0 @@
-@import (css) "/app.wxss";
-
-.main {
-    background-color: var(--mainColor);
-
-    .one {
-        .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;
-            }
-        }
-    }
-}

+ 0 - 29
pagesSchool/coaAdmin/cashout/add.wxml

@@ -1,29 +0,0 @@
-<mobile-main frameStyle="{{frameStyle}}" bind:back="back">
-    <view slot="info" class="container main">
-        <view class="one">
-            <form catchsubmit="onSubmit">
-                <view class="content">
-                    <view class="label">学校id:</view>
-                    <view class="value">
-                        <input type="text" name="school_id" value="{{form.school_id}}" placeholder="请输入学校id" />
-                    </view>
-                </view>
-                <view class="content">
-                    <view class="label">教练id:</view>
-                    <view class="value">
-                        <input type="text" name="coach_id" value="{{form.coach_id}}" placeholder="请输入coach_id" />
-                    </view>
-                </view>
-                <view class="content">
-                    <view class="label">提现金额:</view>
-                    <view class="value">
-                        <input type="number" name="salary" value="{{form.salary}}" placeholder="请输入提现金额" />
-                    </view>
-                </view>
-                <view class="btn">
-                    <button type="primary" size="mini" formType="submit">提交保存</button>
-                </view>
-            </form>
-        </view>
-    </view>
-</mobile-main>

+ 0 - 28
pagesSchool/coaAdmin/cashout/add.wxss

@@ -1,28 +0,0 @@
-@import "/app.wxss";
-.main {
-  background-color: var(--mainColor);
-}
-.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 .btn {
-  text-align: center;
-  margin: 5vw 0 0 0;
-}
-.main .one .btn button {
-  width: 40vw;
-  margin: 0 2vw;
-  padding: 1vw 0;
-}

+ 0 - 129
pagesSchool/coaAdmin/cashout/list.js

@@ -1,129 +0,0 @@
-const app = getApp()
-const moment = require("../../../utils/moment.min")
-Page({
-
-    /**
-     * 页面的初始数据
-     */
-    data: {
-        frameStyle: { useTop: true, name: '提现申请', leftArrow: true, useBar: false },
-        list: [],
-        total: 0,
-        page: 0,
-        skip: 0,
-        limit: 5,
-        // dialog弹框
-        dialog: { title: '详细信息', show: false, type: '1' },
-        form: {}
-    },
-    // 返回
-    back: function () {
-        wx.navigateBack({ delta: 1 })
-    },
-    //详细信息
-    toView: function (e) {
-        const that = this;
-        const { item } = e.currentTarget.dataset;
-        that.setData({ form: item });
-        that.setData({ dialog: { title: '详细信息', show: true, type: '1' } })
-    },
-    // 关闭弹框
-    toClose: function () {
-        const that = this;
-        that.setData({ form: {} })
-        that.setData({ dialog: { title: '详细信息', show: false, type: '1' } })
-    },
-    // 分页
-    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 }) }
-    },
-    /**
-     * 生命周期函数--监听页面加载
-     */
-    onLoad: function (options) {
-
-    },
-
-    /**
-     * 生命周期函数--监听页面初次渲染完成
-     */
-    onReady: function () {
-
-    },
-
-    /**
-     * 生命周期函数--监听页面显示
-     */
-    onShow: async function () {
-        const that = this;
-        // 监听用户是否登录
-        await that.watchLogin();
-    },
-
-    // 监听用户是否登录
-    watchLogin: async function () {
-        const that = this;
-        wx.getStorage({
-            key: 'user',
-            success: async res => {
-                let info = { skip: that.data.skip, limit: that.data.limit };
-                let arr = await app.$get(`/billApply`, { ...info });
-                if (arr.errcode == '0') {
-                    let list = [...that.data.list, ...arr.data];
-                    for (const val of list) { val.create_time = moment(val.meta.createdAt).format('YYYY-MM-DD HH:mm:ss') }
-                    that.setData({ list: list })
-                    that.setData({ total: arr.total })
-                } else { wx.showToast({ title: `${arr.errmsg}`, icon: 'error', duration: 2000 }) }
-            },
-            fail: async res => {
-                wx.redirectTo({ url: '/pages/index/index' })
-            }
-        })
-    },
-
-    /**
-     * 生命周期函数--监听页面隐藏
-     */
-    onHide: function () {
-
-    },
-
-    /**
-     * 生命周期函数--监听页面卸载
-     */
-    onUnload: function () {
-
-    },
-
-    /**
-     * 页面相关事件处理函数--监听用户下拉动作
-     */
-    onPullDownRefresh: function () {
-
-    },
-
-    /**
-     * 页面上拉触底事件的处理函数
-     */
-    onReachBottom: function () {
-
-    },
-
-    /**
-     * 用户点击右上角分享
-     */
-    onShareAppMessage: function () {
-
-    }
-})

+ 0 - 7
pagesSchool/coaAdmin/cashout/list.json

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

+ 0 - 106
pagesSchool/coaAdmin/cashout/list.less

@@ -1,106 +0,0 @@
-@import (css) "/app.wxss";
-
-.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;
-        width: 96vw;
-        margin: 2vw;
-        background-color: var(--mainColor);
-
-        .list {
-            display: flex;
-            flex-direction: column;
-            border: 2px dashed var(--f1Color);
-            padding: 2vw;
-            margin: 0 0 2vw 0;
-            border-radius: 10px;
-
-            .name {
-                font-size: var(--font20Szie);
-                color: var(--redColor);
-                font-weight: bold;
-                margin: 0 0 2vw 0;
-            }
-
-            .other {
-                margin: 0 0 2vw 0;
-
-                .other_1 {
-                    font-size: var(--font16Szie);
-                    margin: 0 0 1vw 0;
-
-                    text:first-child {
-                        color: var(--f85Color);
-                    }
-                }
-            }
-
-            .btn {
-                margin: 2vw 0 0 0;
-                text-align: center;
-            }
-        }
-
-    }
-}
-
-.scroll-view {
-    position: absolute;
-    top: 0;
-    left: 0;
-    right: 0;
-    bottom: 0;
-
-    .list-scroll-view {
-        display: flex;
-        flex-direction: column;
-    }
-}
-
-.dialog {
-    .dialog_1 {
-        .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);
-            }
-        }
-    }
-}

+ 0 - 73
pagesSchool/coaAdmin/cashout/list.wxml

@@ -1,73 +0,0 @@
-<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 class="one_2">
-                <button type="primary" bindtap="toCommon" data-route="coaAdmin/cashout/add">添加</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="name">{{item.salary}}元</view>
-                        <view class="other">
-                            <view class="other_1"><text>所在学校:</text><text>{{item.school_id_name}}</text></view>
-                            <view class="other_1"><text>提现时间:</text><text>{{item.create_time}}</text></view>
-                            <view class="other_1"><text>审核状态:</text><text>{{item.result=='0'?'未审核':item.result=='1'?'审核成功':'审核拒绝'}}</text></view>
-                        </view>
-                        <view class="btn">
-                            <button size="mini" type="primary" bindtap="toView" data-item="{{item}}">详细信息</button>
-                        </view>
-                    </view>
-                </view>
-            </scroll-view>
-        </view>
-    </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="onSubmit">
-                <view class="content">
-                    <view class="label">学校名称:</view>
-                    <view class="value">
-                        <input name="school_id_name" value="{{form.school_id_name}}" disabled />
-                    </view>
-                </view>
-                <view class="content">
-                    <view class="label">教练姓名:</view>
-                    <view class="value">
-                        <input name="coach_id_name" value="{{form.coach_id_name}}" disabled />
-                    </view>
-                </view>
-                <view class="content">
-                    <view class="label">提现金额(元):</view>
-                    <view class="value">
-                        <input name="salary" value="{{form.salary}}" disabled />
-                    </view>
-                </view>
-                <view class="content">
-                    <view class="label">申请时间:</view>
-                    <view class="value">
-                        <input name="create_time" value="{{form.create_time}}" disabled />
-                    </view>
-                </view>
-                <view class="content">
-                    <view class="label">审核状态:</view>
-                    <view class="value">
-                        <input name="result" value="{{form.result=='0'?'未审核':form.result=='1'?'审核成功':'审核拒绝'}}" disabled />
-                    </view>
-                </view>
-                <view class="content">
-                    <view class="label">审核原因:</view>
-                    <view class="value">
-                        <input name="reason" value="{{form.reason||'暂无'}}" disabled />
-                    </view>
-                </view>
-            </form>
-        </view>
-    </view>
-</dialog>

+ 0 - 84
pagesSchool/coaAdmin/cashout/list.wxss

@@ -1,84 +0,0 @@
-@import "/app.wxss";
-.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;
-  width: 96vw;
-  margin: 2vw;
-  background-color: var(--mainColor);
-}
-.main .two .list {
-  display: flex;
-  flex-direction: column;
-  border: 2px dashed var(--f1Color);
-  padding: 2vw;
-  margin: 0 0 2vw 0;
-  border-radius: 10px;
-}
-.main .two .list .name {
-  font-size: var(--font20Szie);
-  color: var(--redColor);
-  font-weight: bold;
-  margin: 0 0 2vw 0;
-}
-.main .two .list .other {
-  margin: 0 0 2vw 0;
-}
-.main .two .list .other .other_1 {
-  font-size: var(--font16Szie);
-  margin: 0 0 1vw 0;
-}
-.main .two .list .other .other_1 text:first-child {
-  color: var(--f85Color);
-}
-.main .two .list .btn {
-  margin: 2vw 0 0 0;
-  text-align: center;
-}
-.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 .content {
-  display: flex;
-  flex-direction: row;
-  border-bottom: 1px dashed var(--f1Color);
-  padding: 2vw 0;
-  margin: 0 2vw 2vw 2vw;
-}
-.dialog .dialog_1 .content .value {
-  flex-grow: 1;
-  color: var(--blackColor);
-}

+ 70 - 0
pagesSchool/coaAdmin/coach/basic.js

@@ -0,0 +1,70 @@
+const app = getApp();
+Page({
+    /**
+     * 页面的初始数据
+     */
+    data: {
+        frameStyle: { useTop: true, name: '个人档案', leftArrow: true, useBar: false },
+    },
+    // 跳转菜单
+    back(e) {
+        wx.navigateBack({ delta: 1 })
+    },
+
+    /**
+     * 生命周期函数--监听页面加载
+     */
+    onLoad: function (options) {
+
+    },
+    /**
+     * 生命周期函数--监听页面初次渲染完成
+     */
+    onReady: function () {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面显示
+     */
+    onShow: function () {
+        const that = this;
+
+    },
+
+
+    /**
+     * 生命周期函数--监听页面隐藏
+     */
+    onHide: function () {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面卸载
+     */
+    onUnload: function () {
+
+    },
+
+    /**
+     * 页面相关事件处理函数--监听用户下拉动作
+     */
+    onPullDownRefresh: function () {
+
+    },
+
+    /**
+     * 页面上拉触底事件的处理函数
+     */
+    onReachBottom: function () {
+
+    },
+
+    /**
+     * 用户点击右上角分享
+     */
+    onShareAppMessage: function () {
+
+    }
+})

pagesSchool/coaAdmin/course/coachadd.json → pagesSchool/coaAdmin/coach/basic.json


+ 1 - 0
pagesSchool/coaAdmin/coach/basic.less

@@ -0,0 +1 @@
+@import (css) "/app.wxss";

+ 5 - 0
pagesSchool/coaAdmin/coach/basic.wxml

@@ -0,0 +1,5 @@
+<mobile-main frameStyle="{{frameStyle}}" bind:back="back">
+    <view slot="info" class="container main">
+        <view>个人档案</view>
+    </view>
+</mobile-main>

+ 1 - 0
pagesSchool/coaAdmin/coach/basic.wxss

@@ -0,0 +1 @@
+/* pagesSchool/coaAdmin/archives/info.wxss */

+ 0 - 183
pagesSchool/coaAdmin/course/add.js

@@ -1,183 +0,0 @@
-const app = getApp()
-import WxValidate from '../../../utils/wxValidate';
-Page({
-    data: {
-        frameStyle: { useTop: true, name: '信息维护', leftArrow: true, useBar: false },
-        // 教练和学校的关系
-        schoolInfo: {},
-        form: {},
-        statusList: []
-    },
-    initValidate() {
-        const rules = { title: { required: true }, start_date: { required: true }, start_time: { required: true }, end_date: { required: true }, end_time: { required: true }, brief: { required: true }, money: { required: true }, limit: { required: true }, refund_date: { required: false }, refund_time: { required: false } }
-        // 验证字段的提示信息,若不传则调用默认的信息
-        const messages = { title: { required: '课程标题' }, start_date: { required: '课程开始日期' }, start_time: { required: '课程开始时间' }, end_date: { required: '课程结束日期' }, end_time: { required: '课程结束时间' }, brief: { required: '请输入课程简介' }, money: { required: '报名费用' }, limit: { required: '人数限制' }, refund_date: { required: '退款期限日期' }, refund_time: { required: '退款期限时间' } };
-        this.WxValidate = new WxValidate(rules, messages)
-    },
-    // 返回
-    back: function () {
-        wx.navigateBack({ delta: 1 })
-    },
-    // 课程开始日期
-    startdChange: function (e) {
-        const that = this;
-        that.setData({ 'form.start_date': e.detail.value })
-    },
-    // 课程开始时间
-    starttChange: function (e) {
-        const that = this;
-        that.setData({ 'form.start_time': e.detail.value })
-    },
-    // 课程结束日期
-    enddChange: function (e) {
-        const that = this;
-        that.setData({ 'form.end_date': e.detail.value })
-    },
-    // 课程结束时间
-    endtChange: function (e) {
-        const that = this;
-        that.setData({ 'form.end_time': e.detail.value })
-    },
-    // 退款期限日期
-    refunddChange: function (e) {
-        const that = this;
-        that.setData({ 'form.refund_date': e.detail.value })
-    },
-    // 退款期限时间
-    refundtChange: function (e) {
-        const that = this;
-        that.setData({ 'form.refund_time': e.detail.value })
-    },
-    // 选择状态
-    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 })
-        }
-    },
-    //提交
-    onSubmit: async function (e) {
-        const that = this;
-        const params = e.detail.value;
-        if (!this.WxValidate.checkForm(params)) {
-            const error = this.WxValidate.errorList[0];
-            wx.showToast({ title: `${error.msg}`, icon: 'error', duration: 2000 })
-            return false
-        } else {
-            params.time_start = params.start_date + ' ' + params.start_time;
-            params.time_end = params.end_date + ' ' + params.end_time;
-            params.refund_hour = params.refund_date + ' ' + params.refund_time;
-            let arr;
-            if (params._id) { arr = await app.$post(`/lesson/${params._id}`, params) }
-            else { arr = await app.$post(`/lesson`, params) }
-            if (arr.errcode == '0') { wx.showToast({ title: `维护信息完成`, icon: 'success', duration: 2000 }); that.back(); }
-            else wx.showToast({ title: `${arr.errmsg}`, icon: 'error', duration: 2000 })
-        }
-    },
-    /**
-     * 生命周期函数--监听页面加载
-     */
-    onLoad: async function (options) {
-        const that = this;
-        that.setData({ id: options.id || '' })
-        //验证规则函数
-        that.initValidate();
-        // 查询其他信息
-        await that.searchOther();
-        // 监听用户是否登录
-        await that.watchLogin();
-    },
-    // 监听用户是否登录
-    watchLogin: async function () {
-        const that = this;
-        let statusList = that.data.statusList;
-        wx.getStorage({
-            key: 'user',
-            success: async res => {
-                let data = res.data;
-                let arr;
-                // 教练与学校关系
-                arr = await app.$get(`/rcs`, { coach_id: data.info._id });
-                if (arr.errcode == '0' && arr.total > 0) that.setData({ schoolInfo: arr.data[0] });
-                let form = { school_id: that.data.schoolInfo.school_id, type: '1' };
-                if (that.data.id) {
-                    arr = await app.$get(`/lesson/${that.data.id}`);
-                    if (arr.errcode == '0') {
-                        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);
-                        arr.data.refund_date = arr.data.refund_hour.slice(0, 10);
-                        arr.data.refund_time = arr.data.refund_hour.slice(11, arr.data.refund_hour.length);
-                        // 查询状态
-                        let status = statusList.find(i => i.value = arr.data.status);
-                        if (status) arr.data.zhStatus = status.label;
-                        form = arr.data;
-
-                    }
-                };
-                that.setData({ form: form })
-            },
-            fail: async res => {
-                wx.redirectTo({ url: '/pages/index/index' })
-            }
-        })
-    },
-    // 查询其他信息
-    searchOther: async function () {
-        const that = this;
-        let arr;
-        arr = await app.$get(`/dict`, { code: 'lesson_status' });
-        if (arr.errcode == '0' && arr.total > 0) that.setData({ statusList: arr.data[0].list })
-    },
-    /**
-     * 生命周期函数--监听页面初次渲染完成
-     */
-    onReady: function () {
-
-    },
-
-    /**
-     * 生命周期函数--监听页面显示
-     */
-    onShow: function () {
-
-    },
-
-    /**
-     * 生命周期函数--监听页面隐藏
-     */
-    onHide: function () {
-
-    },
-
-    /**
-     * 生命周期函数--监听页面卸载
-     */
-    onUnload: function () {
-
-    },
-
-    /**
-     * 页面相关事件处理函数--监听用户下拉动作
-     */
-    onPullDownRefresh: function () {
-
-    },
-
-    /**
-     * 页面上拉触底事件的处理函数
-     */
-    onReachBottom: function () {
-
-    },
-
-    /**
-     * 用户点击右上角分享
-     */
-    onShareAppMessage: function () {
-
-    }
-})

+ 0 - 6
pagesSchool/coaAdmin/course/add.json

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

+ 0 - 40
pagesSchool/coaAdmin/course/add.less

@@ -1,40 +0,0 @@
-@import (css) "/app.wxss";
-
-.main {
-    background-color: var(--mainColor);
-
-    .one {
-        .content {
-            display: flex;
-            flex-direction: row;
-            padding: 2vw;
-            border-bottom: 1px dashed var(--f1Color);
-
-            .label {
-                font-size: var(--font16Size);
-            }
-
-            .value {
-                font-size: var(--font16Size);
-                width: 65vw;
-
-                textarea {
-                    width: 100%;
-                    height: 120px;
-                }
-
-            }
-        }
-
-        .btn {
-            text-align: center;
-            margin: 5vw 0 0 0;
-
-            button {
-                width: 40vw;
-                margin: 0 2vw;
-                padding: 1vw 0;
-            }
-        }
-    }
-}

+ 0 - 109
pagesSchool/coaAdmin/course/add.wxml

@@ -1,109 +0,0 @@
-<mobile-main frameStyle="{{frameStyle}}" bind:back="back">
-    <view slot="info" class="container main">
-        <view class="one">
-            <form catchsubmit="onSubmit">
-                <view class="content" style="display: none;">
-                    <view class="label">数据id:</view>
-                    <view class="value">
-                        <input type="text" name="_id" value="{{form._id}}" placeholder="请输入数据id" />
-                    </view>
-                </view>
-                <view class="content" style="display: none;">
-                    <view class="label">学校id:</view>
-                    <view class="value">
-                        <input type="text" name="school_id" value="{{form.school_id}}" placeholder="请输入学校id" />
-                    </view>
-                </view>
-                <view class="content" style="display: none;">
-                    <view class="label">课程类型:</view>
-                    <view class="value">
-                        <input type="text" name="type" value="{{form.type}}" placeholder="请输入课程类型" />
-                    </view>
-                </view>
-                <view class="content">
-                    <view class="label">课程标题:</view>
-                    <view class="value">
-                        <input type="text" name="title" value="{{form.title}}" placeholder="请输入课程标题" />
-                    </view>
-                </view>
-                <view class="content">
-                    <view class="label">课程开始日期:</view>
-                    <view class="value">
-                        <picker mode="date" name="start_date" value="{{form.start_date}}" bindchange="startdChange">
-                            <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="starttChange">
-                            <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="enddChange">
-                            <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="endtChange">
-                            <view class="picker">{{form.end_time||'请选择课程结束时间'}}</view>
-                        </picker>
-                    </view>
-                </view>
-                <view class="content">
-                    <view class="label">课程简介:</view>
-                    <view class="value">
-                        <textarea maxlength="500" name="brief" value="{{form.brief}}" placeholder="请输入课程简介" />
-                    </view>
-                </view>
-                <view class="content">
-                    <view class="label">报名费用:</view>
-                    <view class="value">
-                        <input type="number" name="money" value="{{form.money}}" placeholder="请输入报名费用" />
-                    </view>
-                </view>
-                <view class="content">
-                    <view class="label">人数限制:</view>
-                    <view class="value">
-                        <input type="number" name="limit" value="{{form.limit}}" placeholder="请输入人数限制" />
-                    </view>
-                </view>
-                <view class="content">
-                    <view class="label">退款期限日期:</view>
-                    <view class="value">
-                        <picker mode="date" name="refund_date" value="{{form.refund_date}}" bindchange="refunddChange">
-                            <view class="picker">{{form.refund_date||'请选择退款期限日期'}}</view>
-                        </picker>
-                    </view>
-                </view>
-                <view class="content">
-                    <view class="label">退款期限时间:</view>
-                    <view class="value">
-                        <picker mode="time" name="refund_time" value="{{form.refund_time}}" bindchange="refundtChange">
-                            <view class="picker">{{form.refund_time||'请选择退款期限时间'}}</view>
-                        </picker>
-                    </view>
-                </view>
-                <view class="content">
-                    <view class="label">课程状态:</view>
-                    <view class="value">
-                        <picker mode="selector" name="status" value="{{form.status}}" bindchange="statusChange" range="{{statusList}}" range-key="label">
-                            <view class="picker">{{form.zhStatus||'请选择状态'}}</view>
-                        </picker>
-                    </view>
-                </view>
-                <view class="btn">
-                    <button type="primary" size="mini" formType="submit">提交保存</button>
-                </view>
-            </form>
-        </view>
-    </view>
-</mobile-main>

+ 0 - 30
pagesSchool/coaAdmin/course/add.wxss

@@ -1,30 +0,0 @@
-@import "/app.wxss";
-.main {
-  background-color: var(--mainColor);
-}
-.main .one .content {
-  display: flex;
-  flex-direction: row;
-  padding: 2vw;
-  border-bottom: 1px dashed var(--f1Color);
-}
-.main .one .content .label {
-  font-size: var(--font16Size);
-}
-.main .one .content .value {
-  font-size: var(--font16Size);
-  width: 65vw;
-}
-.main .one .content .value textarea {
-  width: 100%;
-  height: 120px;
-}
-.main .one .btn {
-  text-align: center;
-  margin: 5vw 0 0 0;
-}
-.main .one .btn button {
-  width: 40vw;
-  margin: 0 2vw;
-  padding: 1vw 0;
-}

+ 0 - 119
pagesSchool/coaAdmin/course/coachadd.js

@@ -1,119 +0,0 @@
-const app = getApp()
-import WxValidate from '../../../utils/wxValidate'
-
-Page({
-
-    /**
-     * 页面的初始数据
-     */
-    data: {
-        frameStyle: { useTop: true, name: '信息维护', leftArrow: true, useBar: false },
-        lesson_id: '',
-        form: {},
-    },
-    initValidate() {
-        const rules = { money: { required: true }, }
-        // 验证字段的提示信息,若不传则调用默认的信息
-        const messages = { money: { required: '请输入金额', } };
-        this.WxValidate = new WxValidate(rules, messages)
-    },
-    // 返回
-    back: function () {
-        wx.navigateBack({ delta: 1 })
-    },
-    // 提交保存
-    onSubmit: async function (e) {
-        const that = this;
-        const params = e.detail.value;
-        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 (params._id) arr = await app.$post(`/lessonCoach/${params._id}`, params);
-            else arr = await app.$post(`/lessonCoach`, params)
-            if (arr.errcode == '0') { wx.showToast({ title: `维护信息完成`, icon: 'success', duration: 2000 }); that.back(); }
-            else wx.showToast({ title: `${arr.errmsg}`, icon: 'error', duration: 2000 })
-        }
-    },
-    /**
-     * 生命周期函数--监听页面加载
-     */
-    onLoad: function (options) {
-        const that = this;
-        that.setData({ lesson_id: options.lesson_id || '', id: options.id || '' })
-        //验证规则函数
-        that.initValidate();
-        // 监听用户是否登录
-        that.watchLogin();
-    },
-    // 监听用户是否登录
-    watchLogin: async function () {
-        const that = this;
-        wx.getStorage({
-            key: 'user',
-            success: async res => {
-                let data = res.data;
-                // 教练与学校的关系
-                let arr = await app.$get(`/rcs`, { coach_id: data.info.id });
-                if (arr.errcode == '0' && arr.total > 0) that.setData({ schoolInfo: arr.data[0] });
-                let form = { school_id: that.data.schoolInfo.school_id, lesson_id: that.data.lesson_id, coach_id: res.data.info._id };
-                if (that.data.id) arr = await app.$get(`/lessonCoach/${that.data.id}`);
-                if (arr.errcode == '0') form.money = arr.data.money; form._id = arr.data._id;
-                that.setData({ form })
-            },
-            fail: res => {
-                wx.redirectTo({ url: '/pages/index/index', })
-            }
-        })
-    },
-    /**
-     * 生命周期函数--监听页面初次渲染完成
-     */
-    onReady: function () {
-
-    },
-
-    /**
-     * 生命周期函数--监听页面显示
-     */
-    onShow: function () {
-
-    },
-
-    /**
-     * 生命周期函数--监听页面隐藏
-     */
-    onHide: function () {
-
-    },
-
-    /**
-     * 生命周期函数--监听页面卸载
-     */
-    onUnload: function () {
-
-    },
-
-    /**
-     * 页面相关事件处理函数--监听用户下拉动作
-     */
-    onPullDownRefresh: function () {
-
-    },
-
-    /**
-     * 页面上拉触底事件的处理函数
-     */
-    onReachBottom: function () {
-
-    },
-
-    /**
-     * 用户点击右上角分享
-     */
-    onShareAppMessage: function () {
-
-    }
-})

+ 0 - 36
pagesSchool/coaAdmin/course/coachadd.less

@@ -1,36 +0,0 @@
-@import (css) "/app.wxss";
-
-.main {
-    background-color: var(--mainColor);
-
-    .one {
-        .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;
-            }
-        }
-    }
-}

+ 0 - 41
pagesSchool/coaAdmin/course/coachadd.wxml

@@ -1,41 +0,0 @@
-<mobile-main frameStyle="{{frameStyle}}" bind:back="back">
-    <view slot="info" class="container main">
-        <view class="one">
-            <form catchsubmit="onSubmit">
-                <view class="content" style="display: none;">
-                    <view class="label">数据id:</view>
-                    <view class="value">
-                        <input type="text" name="_id" value="{{form._id}}" placeholder="请输入数据id" />
-                    </view>
-                </view>
-                <view class="content" style="display: none;">
-                    <view class="label">学校id:</view>
-                    <view class="value">
-                        <input type="text" name="school_id" value="{{form.school_id}}" placeholder="请输入学校id" />
-                    </view>
-                </view>
-                <view class="content" style="display: none;">
-                    <view class="label">课程id:</view>
-                    <view class="value">
-                        <input type="text" name="lesson_id" value="{{form.lesson_id}}" placeholder="请输入课程id" />
-                    </view>
-                </view>
-                <view class="content" style="display: none;">
-                    <view class="label">教练id:</view>
-                    <view class="value">
-                        <input type="text" name="coach_id" value="{{form.coach_id}}" placeholder="请输入教练id" />
-                    </view>
-                </view>
-                <view class="content">
-                    <view class="label">课时费(元):</view>
-                    <view class="value">
-                        <input type="number" name="money" value="{{form.money}}" placeholder="请输入金额" />
-                    </view>
-                </view>
-                <view class="btn">
-                    <button type="primary" size="mini" formType="submit">提交保存</button>
-                </view>
-            </form>
-        </view>
-    </view>
-</mobile-main>

+ 0 - 28
pagesSchool/coaAdmin/course/coachadd.wxss

@@ -1,28 +0,0 @@
-@import "/app.wxss";
-.main {
-  background-color: var(--mainColor);
-}
-.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 .btn {
-  text-align: center;
-  margin: 5vw 0 0 0;
-}
-.main .one .btn button {
-  width: 40vw;
-  margin: 0 2vw;
-  padding: 1vw 0;
-}

+ 0 - 139
pagesSchool/coaAdmin/course/coachlist.js

@@ -1,139 +0,0 @@
-const app = getApp()
-Page({
-    data: {
-        frameStyle: { useTop: true, name: '教练信息', leftArrow: true, useBar: false },
-        // 课程id
-        id: '',
-        // 课程信息
-        lessonInfo: {},
-        list: [],
-        total: 0,
-        page: 0,
-        skip: 0,
-        limit: 5,
-    },
-    // 返回
-    back(e) {
-        wx.navigateBack({ delta: 1 })
-    },
-    // 添加
-    toAdd() {
-        const that = this;
-        that.setData({ skip: 0, page: 0, list: [] })
-        wx.navigateTo({ url: `/pagesSchool/coaAdmin/course/coachadd?lesson_id=${that.data.id}` })
-    },
-    // 修改
-    toEdit: function (e) {
-        const that = this;
-        let { item } = e.currentTarget.dataset;
-        that.setData({ skip: 0, page: 0, list: [] })
-        wx.navigateTo({ url: `/pagesSchool/coaAdmin/course/coachadd?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(`/lessonCoach/${item.id}`);
-                    if (arr.errcode == '0') {
-                        that.setData({ skip: 0, page: 0, list: [] })
-                        wx.showToast({ title: `删除信息成功`, icon: 'success', duration: 2000 })
-                        that.watchLogin()
-                    } else {
-                        wx.showToast({ title: `${arr.errmsg}`, icon: 'error', duration: 2000 })
-                    }
-                }
-            }
-        })
-    },
-    /**
-     * 生命周期函数--监听页面加载
-     */
-    onLoad: function (options) {
-        const that = this;
-        that.setData({ id: options.id || '' })
-    },
-    // 监听用户是否登录
-    watchLogin: async function () {
-        const that = this;
-        wx.getStorage({
-            key: 'user',
-            success: async res => {
-                let arr;
-                arr = await app.$get(`/lesson/${that.data.id}`);
-                if (arr.errcode == '0') { that.setData({ lessonInfo: arr.data }) };
-                let info = { skip: that.data.skip, limit: that.data.limit, lesson_id: that.data.id };
-                arr = await app.$get(`/lessonCoach`, { ...info });
-                if (arr.errcode == '0') {
-                    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' })
-            }
-        })
-    },
-    // 分页
-    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 }) }
-    },
-    /**
-     * 生命周期函数--监听页面初次渲染完成
-     */
-    onReady: function () { },
-    /**
-     * 生命周期函数--监听页面显示
-     */
-    onShow: function () {
-        const that = this;
-        // 监听用户是否登录
-        that.watchLogin();
-    },
-    /**
-     * 页面上拉触底事件的处理函数
-     */
-    /**
-     * 生命周期函数--监听页面隐藏
-     */
-    onHide: function () {
-
-    },
-
-    /**
-     * 生命周期函数--监听页面卸载
-     */
-    onUnload: function () {
-
-    },
-
-    /**
-     * 页面相关事件处理函数--监听用户下拉动作
-     */
-    onPullDownRefresh: function () {
-
-    },
-
-    /**
-     * 用户点击右上角分享
-     */
-    onShareAppMessage: function () {
-
-    }
-})

+ 0 - 6
pagesSchool/coaAdmin/course/coachlist.json

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

+ 0 - 160
pagesSchool/coaAdmin/course/coachlist.less

@@ -1,160 +0,0 @@
-@import (css) "/app.wxss";
-
-.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;
-        }
-    }
-}

+ 0 - 31
pagesSchool/coaAdmin/course/coachlist.wxml

@@ -1,31 +0,0 @@
-<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 class="one_2" wx:if="{{total==0&&lessonInfo.type=='1'}}">
-                <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.coach_id_name||'教练姓名'}}</view>
-                                <view class="other">课时费:{{item.money||'暂无'}}元</view>
-                                <view class="other">课程名称:{{item.lesson_id_title||'暂无'}}</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>

+ 0 - 130
pagesSchool/coaAdmin/course/coachlist.wxss

@@ -1,130 +0,0 @@
-@import "/app.wxss";
-.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;
-}

+ 0 - 124
pagesSchool/coaAdmin/course/info.js

@@ -1,124 +0,0 @@
-const app = getApp()
-Page({
-    data: {
-        frameStyle: { useTop: true, name: '详细信息', leftArrow: true, useBar: false },
-        id: '',
-        form: {},
-        //状态
-        statusList: [],
-        //学员
-        student: {},
-        // 教练
-        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 })
-    },
-    /**
-     * 生命周期函数--监听页面加载
-     */
-    onLoad: async function (options) {
-        const that = this;
-        await that.setData({ id: options.id || '' })
-        // 查询其他信息
-        await that.searchOther();
-        // 监听用户是否登录
-        await that.watchLogin();
-    },
-    searchOther: async function () {
-        const that = this;
-        let arr;
-        // 状态
-        arr = await app.$get(`/dict`, { code: 'lesson_status' });
-        if (arr.errcode == '0' && arr.total > 0) that.setData({ statusList: arr.data[0].list });
-    },
-    // 监听用户是否登录
-    watchLogin: async function () {
-        const that = this;
-        let statusList = that.data.statusList;
-        wx.getStorage({
-            key: 'user',
-            success: async res => {
-                if (that.data.id) {
-                    const arr = await app.$get(`/lesson/${that.data.id}`);
-                    if (arr.errcode == '0') {
-                        let status = statusList.find(i => i.value == arr.data.status)
-                        if (status) arr.data.zhStatus = status.label;
-                        if (arr.data.school_id) {
-                            const school = await app.$get(`/school/${arr.data.school_id}`)
-                            if (school.errcode == '0') arr.data.zhSchool = school.data.name;
-                        }
-                        const coach = await app.$get(`/lessonCoach`, { lesson_id: that.data.id })
-                        console.log(coach);
-                        if (coach.errcode == '0') that.setData({ coach: coach.data })
-                        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 {
-                        wx.showToast({ title: `${arr.errmsg}`, icon: 'error', duration: 2000 })
-                    }
-                }
-            },
-            fail: async res => {
-                wx.redirectTo({ url: '/pages/index/index' })
-            }
-        })
-    },
-    /**
-     * 生命周期函数--监听页面初次渲染完成
-     */
-    onReady: function () { },
-    /**
-     * 生命周期函数--监听页面显示
-     */
-    onShow: function () {
-
-    },
-
-    /**
-     * 页面上拉触底事件的处理函数
-     */
-    /**
-     * 生命周期函数--监听页面隐藏
-     */
-    onHide: function () {
-
-    },
-
-    /**
-     * 生命周期函数--监听页面卸载
-     */
-    onUnload: function () {
-
-    },
-
-    /**
-     * 页面相关事件处理函数--监听用户下拉动作
-     */
-    onPullDownRefresh: function () {
-
-    },
-
-    /**
-     * 用户点击右上角分享
-     */
-    onShareAppMessage: function () {
-
-    }
-})

+ 0 - 7
pagesSchool/coaAdmin/course/info.json

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

+ 0 - 108
pagesSchool/coaAdmin/course/info.less

@@ -1,108 +0,0 @@
-@import (css) "/app.wxss";
-
-.main {
-    height: var(--twoHeight);
-    background-color: var(--mainColor);
-
-    .one {
-        width: 100vw;
-        margin: 0 0 2vw 0;
-    }
-
-    .two {
-        position: relative;
-        flex-grow: 1;
-
-        .a {
-            height: 83vh;
-
-            .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;
-                    }
-                }
-            }
-        }
-
-        .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;
-    }
-}

+ 0 - 107
pagesSchool/coaAdmin/course/info.wxml

@@ -1,107 +0,0 @@
-<mobile-main frameStyle="{{frameStyle}}" bind:back="back">
-    <view slot="info" class="container main">
-        <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">
-                        <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 wx:elif="{{tabs.active=='1'}}" class="b">
-                <scroll-view scroll-y="true" class="scroll-view">
-                    <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.money||'暂无'}}元</text>
-                                </view>
-                                <view class="other_1">
-                                    <text>所属学校:</text>
-                                    <text>{{item.school_id_name||'暂无'}}</text>
-                                </view>
-                                <view class="other_1">
-                                    <text>是否签到:</text>
-                                    <text>{{item.is_sign=='0'?'未签到':'已签到'}}</text>
-                                </view>
-                            </view>
-                        </view>
-                    </view>
-                </scroll-view>
-            </view>
-            <view wx:elif="{{tabs.active=='2'}}" class="b">
-                <scroll-view scroll-y="true" class="scroll-view">
-                    <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.money||'暂无'}}元</text>
-                                </view>
-                                <view class="other_1">
-                                    <text>所属学院:</text>
-                                    <text>{{item.school_id_name||'暂无'}}</text>
-                                </view>
-                                <view class="other_1">
-                                    <text>是否签到:</text>
-                                    <text>{{item.is_sign=='0'?'未签到':'已签到'}}</text>
-                                </view>
-                            </view>
-                        </view>
-                    </view>
-                </scroll-view>
-            </view>
-        </view>
-    </view>
-</mobile-main>

+ 0 - 88
pagesSchool/coaAdmin/course/info.wxss

@@ -1,88 +0,0 @@
-@import "/app.wxss";
-.main {
-  height: var(--twoHeight);
-  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;
-}
-.main .two .a .one .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;
-}
-.main .two .a .one .one_1 .text {
-  color: var(--f85Color);
-  font-size: var(--font16Size);
-}
-.main .two .a .one .one_1 .text1 {
-  font-size: var(--font16Size);
-}
-.main .two .a .one .one_1 .image {
-  width: 15vw;
-  height: 15vw;
-}
-.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;
-}

+ 8 - 101
pagesSchool/coaAdmin/course/list.js

@@ -1,72 +1,22 @@
-const app = getApp()
-const moment = require("../../../utils/moment.min")
+const app = getApp();
 Page({
-
     /**
      * 页面的初始数据
      */
     data: {
-        frameStyle: { useTop: true, name: '课程列表', leftArrow: true, useBar: false },
-        user: {},
-        list: [],
-        total: 0,
-        page: 0,
-        skip: 0,
-        limit: 5,
-        // 课程类型
-        typeList: [],
-        // 状态
-        statusList: []
+        frameStyle: { useTop: true, name: '课程管理', leftArrow: true, useBar: false },
     },
-    // 返回
-    back: function () {
+    // 跳转菜单
+    back(e) {
         wx.navigateBack({ delta: 1 })
     },
-    //添加信息,信息维护
-    toCommon: function (e) {
-        const that = this;
-        const { item, route } = e.currentTarget.dataset;
-        that.setData({ skip: 0, page: 0, list: [] });
-        wx.navigateTo({ url: `/pagesSchool/${route}?id=${item && item._id ? item._id : ''}` })
-    },
-    // 签到
-    toSign: async function (e) {
-        const that = this;
-        const user = that.data.user;
-        const { item } = e.currentTarget.dataset;
-        let arr;
-        arr = await app.$get(`/lessonCoach`, { school_id: item.school_id, lesson_id: item._id, coach_id: user.info._id });
-        if (arr.errcode == '0' && arr.total > 0) {
-            arr = await app.$post(`/lessonCoach/${arr.data[0]._id}`, { is_sign: '1' });
-            if (arr.errcode == '0') {
-                wx.showToast({ title: `签到成功`, icon: 'error', duration: 2000 })
-                that.setData({ skip: 0, page: 0, list: [] });
-                that.watchLogin();
-            } else { wx.showToast({ title: `${arr.errmsg}`, icon: 'error', duration: 2000 }) }
-        }
-    },
-    // 分页
-    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 }) }
-    },
+
     /**
      * 生命周期函数--监听页面加载
      */
     onLoad: function (options) {
 
     },
-
     /**
      * 生命周期函数--监听页面初次渲染完成
      */
@@ -77,55 +27,12 @@ Page({
     /**
      * 生命周期函数--监听页面显示
      */
-    onShow: async function () {
-        const that = this;
-        // 查询其他信息
-        await that.searchOther();
-        // 监听用户是否登录
-        await that.watchLogin();
-    },
-    // 查询其他信息
-    searchOther: async function () {
+    onShow: function () {
         const that = this;
-        let arr;
-        // 课程类型
-        arr = await app.$get(`/dict`, { code: 'lesson_type' });
-        if (arr.errcode == '0' && arr.total > 0) that.setData({ typeList: arr.data[0].list });
-        // 审核状态
-        arr = await app.$get(`/dict`, { code: 'lesson_status' })
-        if (arr.errcode == '0' && arr.total > 0) that.setData({ statusList: arr.data[0].list });
-    },
-    // 监听用户是否登录
-    watchLogin: async function () {
-        const that = this;
-        let typeList = that.data.typeList;
-        let statusList = that.data.statusList;
-        wx.getStorage({
-            key: 'user',
-            success: async res => {
-                that.setData({ user: res.data })
-                let info = { skip: that.data.skip, limit: that.data.limit };
-                let arr = await app.$get(`/lesson`, { ...info });
-                if (arr.errcode == '0') {
-                    let list = [...that.data.list, ...arr.data];
-                    for (const val of list) {
-                        // 课程类型
-                        let type = typeList.find(i => i.value == val.type);
-                        if (type) val.zhType = type.label;
-                        // 课程状态
-                        let status = statusList.find(i => i.value == val.status);
-                        if (status) val.zhStatus = status.label;
-                    }
-                    that.setData({ list: list })
-                    that.setData({ total: arr.total })
-                } else { wx.showToast({ title: `${arr.errmsg}`, icon: 'error', duration: 2000 }) }
-            },
-            fail: async res => {
-                wx.redirectTo({ url: '/pages/index/index' })
-            }
-        })
+
     },
 
+
     /**
      * 生命周期函数--监听页面隐藏
      */

+ 1 - 92
pagesSchool/coaAdmin/course/list.less

@@ -1,92 +1 @@
-@import (css) "/app.wxss";
-
-.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;
-        width: 96vw;
-        margin: 2vw;
-        background-color: var(--mainColor);
-
-        .list {
-            display: flex;
-            flex-direction: column;
-            border: 2px dashed var(--f1Color);
-            padding: 2vw;
-            margin: 0 0 2vw 0;
-            border-radius: 10px;
-
-            .name {
-                font-size: var(--font16Szie);
-                font-weight: bold;
-                margin: 0 0 2vw 0;
-            }
-
-            .other {
-                margin: 0 0 2vw 0;
-
-                .other_1 {
-                    font-size: var(--font14Szie);
-                    margin: 0 0 1vw 0;
-
-                    text:first-child {
-                        color: var(--f85Color);
-                    }
-                }
-            }
-
-            .btn {
-                margin: 2vw 0 0 0;
-                text-align: center;
-
-                button {
-                    margin: 0 2vw;
-                }
-            }
-        }
-
-    }
-}
-
-.scroll-view {
-    position: absolute;
-    top: 0;
-    left: 0;
-    right: 0;
-    bottom: 0;
-
-    .list-scroll-view {
-        display: flex;
-        flex-direction: column;
-    }
-}
+@import (css) "/app.wxss";

+ 1 - 29
pagesSchool/coaAdmin/course/list.wxml

@@ -1,33 +1,5 @@
 <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 class="one_2">
-                <button type="primary" bindtap="toCommon" data-route="coaAdmin/course/add">添加</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="name">{{item.title}}</view>
-                        <view class="other">
-                            <view class="other_1"><text>课程时间:</text><text>{{item.time_start}}至{{item.time_end}}</text></view>
-                            <view class="other_1"><text>课程类型:</text><text>{{item.zhType}}</text></view>
-                            <view class="other_1"><text>审核状态:</text><text>{{item.zhStatus}}</text></view>
-                        </view>
-                        <view class="btn">
-                            <button size="mini" type="primary" bindtap="toCommon" data-item="{{item}}" data-route="coaAdmin/course/info">详细信息</button>
-                            <button size="mini" type="primary" bindtap="toCommon" data-item="{{item}}" data-route="coaAdmin/course/coachlist" wx:if="{{item.type=='1'}}">教练信息</button>
-                            <button size="mini" type="primary" bindtap="toCommon" data-item="{{item}}" data-route="coaAdmin/course/add" wx:if="{{item.type=='1'}}">信息维护</button>
-                            <button size="mini" type="primary" bindtap="toCommon" data-item="{{item}}" data-route="coaAdmin/course/statuslist" wx:if="{{item.type=='1'}}">临时添加学员</button>
-                            <button size="mini" type="primary" bindtap="toSign" data-item="{{item}}" wx:if="{{item.status=='3'}}">签到</button>
-                        </view>
-                    </view>
-                </view>
-            </scroll-view>
-        </view>
+        <view>课程信息</view>
     </view>
 </mobile-main>

+ 1 - 75
pagesSchool/coaAdmin/course/list.wxss

@@ -1,75 +1 @@
-@import "/app.wxss";
-.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;
-  width: 96vw;
-  margin: 2vw;
-  background-color: var(--mainColor);
-}
-.main .two .list {
-  display: flex;
-  flex-direction: column;
-  border: 2px dashed var(--f1Color);
-  padding: 2vw;
-  margin: 0 0 2vw 0;
-  border-radius: 10px;
-}
-.main .two .list .name {
-  font-size: var(--font16Szie);
-  font-weight: bold;
-  margin: 0 0 2vw 0;
-}
-.main .two .list .other {
-  margin: 0 0 2vw 0;
-}
-.main .two .list .other .other_1 {
-  font-size: var(--font14Szie);
-  margin: 0 0 1vw 0;
-}
-.main .two .list .other .other_1 text:first-child {
-  color: var(--f85Color);
-}
-.main .two .list .btn {
-  margin: 2vw 0 0 0;
-  text-align: center;
-}
-.main .two .list .btn button {
-  margin: 0 2vw;
-}
-.scroll-view {
-  position: absolute;
-  top: 0;
-  left: 0;
-  right: 0;
-  bottom: 0;
-}
-.scroll-view .list-scroll-view {
-  display: flex;
-  flex-direction: column;
-}
+/* pagesSchool/coaAdmin/course/list.wxss */

+ 0 - 219
pagesSchool/coaAdmin/course/statusadd.js

@@ -1,219 +0,0 @@
-const app = getApp()
-import WxValidate from '../../../utils/wxValidate';
-const moment = require("../../../utils/moment.min");
-import QRCode from '../../../utils/weapp-qrcode.js';
-Page({
-    data: {
-        frameStyle: { useTop: true, name: '信息维护', leftArrow: true, useBar: false },
-        form: { img_url: [] },
-        // 课程信息
-        lesson_id: '',
-        // 学校信息
-        schoolInfo: {},
-        // 学生列表
-        studentList: [],
-        // 学生信息
-        studentInfo: {},
-        // 试课申请信息
-        elaInfo: {},
-        // 二维码信息
-        tpnInfo: {},
-        // 打折信息
-        lstInfo: {},
-        // dialog弹框
-        dialog: { title: '支付二维码', show: false, type: '1' },
-        // 是否支付成功
-        pay_status: ''
-    },
-    initValidate() {
-        const rules = { student_id: { required: true }, money: { required: true }, img_url: { required: true } }
-        // 验证字段的提示信息,若不传则调用默认的信息
-        const messages = { student_id: { required: '请选择学生' }, money: { required: '课程费用' }, img_url: { required: '证据图片' } };
-        this.WxValidate = new WxValidate(rules, messages)
-    },
-    // 返回
-    back: function () {
-        wx.navigateBack({ delta: 1 })
-    },
-    // 选择学生
-    stuChange: async function (e) {
-        const that = this;
-        let data = that.data.studentList[e.detail.value];
-        if (data) {
-            that.setData({ 'form.student_id': data.student_id })
-            that.setData({ 'form.student_id_name': data.student_id_name });
-            // 查询学生信息
-            let studentInfo = {};
-            let student = await app.$get(`/student/${data.student_id}`);
-            if (student.errcode == '0') {
-                let user = await app.$get(`/user/${student.data.user_id}`);
-                if (user.errcode == '0') {
-                    studentInfo = { ...user.data, info: { ...student.data } }
-                    that.setData({ studentInfo })
-                }
-            }
-            // 查询真实付款金额
-            const arr = await app.$post(`/lessonStudent/toComputed`, { lesson_id: that.data.lesson_id, student_id: data.student_id });
-            if (arr.errcode == '0') {
-                that.setData({ 'form.money': arr.data.real_money });
-                that.setData({ lstInfo: arr.data })
-            }
-        }
-    },
-    imgUpl: function (e) {
-        const that = this;
-        let data = that.data.form.img_url;
-        data.push(e.detail)
-        that.setData({ 'form.img_url': data })
-    },
-    // 删除图片
-    imgDel: function (e) {
-        const that = this;
-        let list = that.data.form.img_url;
-        let arr = list.filter((i, index) => index != e.detail.index)
-        that.setData({ 'form.img_url': arr })
-    },
-    //提交
-    onSubmit: async function (e) {
-        const that = this;
-        const params = e.detail.value;
-        const form = that.data.form;
-        params.img_url = form.img_url;
-        const studentInfo = that.data.studentInfo;
-        const schoolInfo = that.data.schoolInfo;
-        const lstInfo = that.data.lstInfo;
-        if (!this.WxValidate.checkForm(params)) {
-            const error = this.WxValidate.errorList[0];
-            wx.showToast({ title: `${error.msg}`, icon: 'error', duration: 2000 })
-            return false
-        } else {
-            // 创建试课信息;创建二维码信息;支付信息;查询支付状态;支付成功;
-            const arr = await app.$post(`/tempLessonApply`, params);
-            if (arr.errcode == '0') {
-                that.setData({ elaInfo: arr.data });
-                let obj = { school_id: params.school_id, pay_for: 'tempLessonApply', from_id: that.data.elaInfo._id, money: params.money, time: moment().format('YYYY-MM-DD HH:mm:ss'), desc: '临时上课申请', config: lstInfo.config };
-                const one = await app.$post(`/payOrder/toPayNative`, obj);
-                if (one.errcode == '0') {
-                    that.setData({ tpnInfo: JSON.parse(one.data) });
-                    // 生成支付二维码
-                    that.makeQRCode();
-                    that.setData({ dialog: { title: '支付二维码', show: true, type: '1' } });
-                }
-            } else {
-                wx.showToast({ title: `${arr.errmsg}`, icon: 'error', duration: 2000 })
-            }
-        }
-    },
-    makeQRCode(template = 0) {
-        const that = this;
-        const url = `${that.data.tpnInfo.code_url}`;
-        var qrcode = new QRCode(`myQrcode`, {
-            text: url,
-            width: 110,
-            height: 110,
-            padding: 3,
-            colorDark: "#000000",
-            colorLight: "#ffffff",
-            correctLevel: QRCode.CorrectLevel.L,
-        });
-    },
-    // 关闭弹框
-    toClose: function () {
-        const that = this;
-        that.setData({ dialog: { title: '支付二维码', show: false, type: '1' } })
-    },
-    // 查询支付状态
-    searchS: async function () {
-        const that = this;
-        const elaInfo = that.data.elaInfo;
-        let arr;
-        arr = await app.$get(`/tempLessonApply/${elaInfo._id}`);
-        if (arr.errcode == '0') {
-            arr = await app.$get(`/payOrder/${arr.data.pay_id}`);
-            if (arr.errcode == '0') {
-                that.setData({ pay_status: arr.data.status })
-            }
-        }
-    },
-    /**
-     * 生命周期函数--监听页面加载
-     */
-    onLoad: async function (options) {
-        const that = this;
-        that.setData({ lesson_id: options.id || '' })
-        //验证规则函数
-        that.initValidate();
-        // 监听用户是否登录
-        await that.watchLogin();
-    },
-    // 监听用户是否登录
-    watchLogin: async function () {
-        const that = this;
-        wx.getStorage({
-            key: 'user',
-            success: async res => {
-                let data = res.data;
-                let arr;
-                // 学员与学校的关系
-                arr = await app.$get(`/rss`);
-                if (arr.errcode == '0') that.setData({ studentList: arr.data });
-                // 教练与学校的关系
-                arr = await app.$get(`/rcs`, { coach_id: data.info.id });
-                if (arr.errcode == '0' && arr.total > 0) that.setData({ schoolInfo: arr.data[0] });
-                let form = { school_id: that.data.schoolInfo.school_id, lesson_id: that.data.lesson_id, coach_id: data.info._id, img_url: [] };
-                that.setData({ form });
-            },
-            fail: async res => {
-                wx.redirectTo({ url: '/pages/index/index' })
-            }
-        })
-    },
-    /**
-     * 生命周期函数--监听页面初次渲染完成
-     */
-    onReady: function () {
-
-    },
-
-    /**
-     * 生命周期函数--监听页面显示
-     */
-    onShow: function () {
-
-    },
-
-    /**
-     * 生命周期函数--监听页面隐藏
-     */
-    onHide: function () {
-
-    },
-
-    /**
-     * 生命周期函数--监听页面卸载
-     */
-    onUnload: function () {
-
-    },
-
-    /**
-     * 页面相关事件处理函数--监听用户下拉动作
-     */
-    onPullDownRefresh: function () {
-
-    },
-
-    /**
-     * 页面上拉触底事件的处理函数
-     */
-    onReachBottom: function () {
-
-    },
-
-    /**
-     * 用户点击右上角分享
-     */
-    onShareAppMessage: function () {
-
-    }
-})

+ 0 - 8
pagesSchool/coaAdmin/course/statusadd.json

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

+ 0 - 65
pagesSchool/coaAdmin/course/statusadd.less

@@ -1,65 +0,0 @@
-@import (css) "/app.wxss";
-
-.main {
-    background-color: var(--mainColor);
-
-    .one {
-        .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;
-            }
-        }
-    }
-}
-
-.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;
-        }
-    }
-}

+ 0 - 62
pagesSchool/coaAdmin/course/statusadd.wxml

@@ -1,62 +0,0 @@
-<mobile-main frameStyle="{{frameStyle}}" bind:back="back">
-    <view slot="info" class="container main">
-        <view class="one">
-            <form catchsubmit="onSubmit">
-                <view class="content" style="display: none;">
-                    <view class="label">数据id:</view>
-                    <view class="value">
-                        <input type="text" name="_id" value="{{form._id}}" placeholder="请输入数据id" />
-                    </view>
-                </view>
-                <view class="content" style="display: none;">
-                    <view class="label">学校id:</view>
-                    <view class="value">
-                        <input type="text" name="school_id" value="{{form.school_id}}" placeholder="请输入学校id" />
-                    </view>
-                </view>
-                <view class="content" style="display: none;">
-                    <view class="label">课程id:</view>
-                    <view class="value">
-                        <input type="text" name="lesson_id" value="{{form.lesson_id}}" placeholder="请输入课程id" />
-                    </view>
-                </view>
-                <view class="content">
-                    <view class="label">学生:</view>
-                    <view class="value">
-                        <picker mode="selector" name="student_id" value="{{form.student_id}}" bindchange="stuChange" range="{{studentList}}" range-key="student_id_name">
-                            <view class="picker">{{form.student_id_name||'请选择学生'}}</view>
-                        </picker>
-                    </view>
-                </view>
-                <view class="content">
-                    <view class="label">课程费用:</view>
-                    <view class="value">
-                        <input type="number" name="money" value="{{form.money}}" placeholder="请输入课程费用" disabled/>
-                    </view>
-                </view>
-                <view class="content">
-                    <view class="label">证据图片(6):</view>
-                    <view class="value">
-                        <upload list="{{form.img_url}}" count="{{6}}" previewSize="{{25}}" bind:imgUpload="imgUpl" bind:imgDel="imgDel"></upload>
-                    </view>
-                </view>
-                <view class="btn">
-                    <button type="primary" size="mini" formType="submit">保存&&缴费</button>
-                </view>
-            </form>
-        </view>
-    </view>
-</mobile-main>
-<dialog dialog="{{dialog}}" bind:toClose="toClose">
-    <view slot="info" class="dialog">
-        <view class="dialog_1" wx:if="{{dialog.type=='1'}}">
-            <view class="image">
-                <canvas class="qrcode" canvas-id="myQrcode"></canvas>
-            </view>
-            <view class="remark">
-                <button type="primary" size="mini" bindtap="searchS">查询支付状态</button>
-                <view>支付状态:{{pay_status=='0'?'未支付':pay_status=='1'?'已支付':pay_status=='-1'?'支付失败':pay_status=='2'?'已退款':'暂无'}}</view>
-            </view>
-        </view>
-    </view>
-</dialog>

+ 0 - 49
pagesSchool/coaAdmin/course/statusadd.wxss

@@ -1,49 +0,0 @@
-@import "/app.wxss";
-.main {
-  background-color: var(--mainColor);
-}
-.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 .btn {
-  text-align: center;
-  margin: 5vw 0 0 0;
-}
-.main .one .btn button {
-  width: 40vw;
-  margin: 0 2vw;
-  padding: 1vw 0;
-}
-.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;
-}

+ 0 - 133
pagesSchool/coaAdmin/course/statuslist.js

@@ -1,133 +0,0 @@
-const app = getApp()
-Page({
-    data: {
-        frameStyle: { useTop: true, name: '临时学员', leftArrow: true, useBar: false },
-        // 课程id
-        id: '',
-        // 课程信息
-        lessonInfo: {},
-        list: [],
-        total: 0,
-        page: 0,
-        skip: 0,
-        limit: 5,
-    },
-    // 返回
-    back(e) {
-        wx.navigateBack({ delta: 1 })
-    },
-    //添加信息,信息维护
-    toCommon: function (e) {
-        const that = this;
-        const { item, route } = e.currentTarget.dataset;
-        that.setData({ skip: 0, page: 0, list: [] });
-        wx.navigateTo({ url: `/pagesSchool/${route}?id=${that.data.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(`/tempLessonApply/${item.id}`);
-                    if (arr.errcode == '0') {
-                        that.setData({ skip: 0, page: 0, list: [] })
-                        wx.showToast({ title: `删除信息成功`, icon: 'success', duration: 2000 })
-                        that.watchLogin()
-                    } else {
-                        wx.showToast({ title: `${arr.errmsg}`, icon: 'error', duration: 2000 })
-                    }
-                }
-            }
-        })
-    },
-    /**
-     * 生命周期函数--监听页面加载
-     */
-    onLoad: function (options) {
-        const that = this;
-        that.setData({ id: options.id || '' })
-    },
-    // 监听用户是否登录
-    watchLogin: async function () {
-        const that = this;
-        wx.getStorage({
-            key: 'user',
-            success: async res => {
-                let arr;
-                arr = await app.$get(`/lesson/${that.data.id}`);
-                if (arr.errcode == '0') { that.setData({ lessonInfo: arr.data }) };
-                let info = { skip: that.data.skip, limit: that.data.limit, lesson_id: that.data.id };
-                arr = await app.$get(`/tempLessonApply`, { ...info });
-                if (arr.errcode == '0') {
-                    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' })
-            }
-        })
-    },
-    // 分页
-    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 }) }
-    },
-    /**
-     * 生命周期函数--监听页面初次渲染完成
-     */
-    onReady: function () { },
-    /**
-     * 生命周期函数--监听页面显示
-     */
-    onShow: function () {
-        const that = this;
-        // 监听用户是否登录
-        that.watchLogin();
-    },
-    /**
-     * 页面上拉触底事件的处理函数
-     */
-    /**
-     * 生命周期函数--监听页面隐藏
-     */
-    onHide: function () {
-
-    },
-
-    /**
-     * 生命周期函数--监听页面卸载
-     */
-    onUnload: function () {
-
-    },
-
-    /**
-     * 页面相关事件处理函数--监听用户下拉动作
-     */
-    onPullDownRefresh: function () {
-
-    },
-
-    /**
-     * 用户点击右上角分享
-     */
-    onShareAppMessage: function () {
-
-    }
-})

+ 0 - 6
pagesSchool/coaAdmin/course/statuslist.json

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

+ 0 - 92
pagesSchool/coaAdmin/course/statuslist.less

@@ -1,92 +0,0 @@
-@import (css) "/app.wxss";
-
-.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;
-        width: 96vw;
-        margin: 2vw;
-        background-color: var(--mainColor);
-
-        .list {
-            display: flex;
-            flex-direction: column;
-            border: 2px dashed var(--f1Color);
-            padding: 2vw;
-            margin: 0 0 2vw 0;
-            border-radius: 10px;
-
-            .name {
-                font-size: var(--font16Szie);
-                font-weight: bold;
-                margin: 0 0 2vw 0;
-            }
-
-            .other {
-                margin: 0 0 2vw 0;
-
-                .other_1 {
-                    font-size: var(--font14Szie);
-                    margin: 0 0 1vw 0;
-
-                    text:first-child {
-                        color: var(--f85Color);
-                    }
-                }
-            }
-
-            .btn {
-                margin: 2vw 0 0 0;
-                text-align: center;
-
-                button {
-                    margin: 0 2vw;
-                }
-            }
-        }
-
-    }
-}
-
-.scroll-view {
-    position: absolute;
-    top: 0;
-    left: 0;
-    right: 0;
-    bottom: 0;
-
-    .list-scroll-view {
-        display: flex;
-        flex-direction: column;
-    }
-}

+ 0 - 26
pagesSchool/coaAdmin/course/statuslist.wxml

@@ -1,26 +0,0 @@
-<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 class="one_2">
-                <button type="primary" bindtap="toCommon" data-route="coaAdmin/course/statusadd">添加</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="name">{{item.student_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 class="other_1"><text>支付金额:</text><text>{{item.money}}元</text></view>
-                        </view>
-                    </view>
-                </view>
-            </scroll-view>
-        </view>
-    </view>
-</mobile-main>

+ 0 - 75
pagesSchool/coaAdmin/course/statuslist.wxss

@@ -1,75 +0,0 @@
-@import "/app.wxss";
-.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;
-  width: 96vw;
-  margin: 2vw;
-  background-color: var(--mainColor);
-}
-.main .two .list {
-  display: flex;
-  flex-direction: column;
-  border: 2px dashed var(--f1Color);
-  padding: 2vw;
-  margin: 0 0 2vw 0;
-  border-radius: 10px;
-}
-.main .two .list .name {
-  font-size: var(--font16Szie);
-  font-weight: bold;
-  margin: 0 0 2vw 0;
-}
-.main .two .list .other {
-  margin: 0 0 2vw 0;
-}
-.main .two .list .other .other_1 {
-  font-size: var(--font14Szie);
-  margin: 0 0 1vw 0;
-}
-.main .two .list .other .other_1 text:first-child {
-  color: var(--f85Color);
-}
-.main .two .list .btn {
-  margin: 2vw 0 0 0;
-  text-align: center;
-}
-.main .two .list .btn button {
-  margin: 0 2vw;
-}
-.scroll-view {
-  position: absolute;
-  top: 0;
-  left: 0;
-  right: 0;
-  bottom: 0;
-}
-.scroll-view .list-scroll-view {
-  display: flex;
-  flex-direction: column;
-}

+ 0 - 144
pagesSchool/coaAdmin/money/add.js

@@ -1,144 +0,0 @@
-const app = getApp()
-import WxValidate from '../../../utils/wxValidate';
-const moment = require("../../../utils/moment.min")
-Page({
-
-    /**
-     * 页面的初始数据
-     */
-    data: {
-        frameStyle: { useTop: true, name: '账号充值', leftArrow: true, useBar: false },
-        user: {},
-        // 关系信息
-        id: '',
-        rcsInfo: {},
-        form: {}
-    },
-    initValidate() {
-        const rules = { money: { required: true } }
-        // 验证字段的提示信息,若不传则调用默认的信息
-        const messages = { money: { required: '充值金额' } };
-        this.WxValidate = new WxValidate(rules, messages)
-    },
-    // 返回
-    back: function () {
-        wx.navigateBack({ delta: 1 })
-    },
-    onSubmit: async function (e) {
-        const that = this;
-        const params = e.detail.value;
-        const rcsInfo = that.data.rcsInfo;
-        const user = that.data.user;
-        if (!this.WxValidate.checkForm(params)) {
-            const error = this.WxValidate.errorList[0];
-            wx.showToast({ title: `${error.msg}`, icon: 'error', duration: 2000 })
-            return false
-        } else {
-            let obj = { school_id: rcsInfo.school_id, openid: user.openid, payer_id: user.info.id, payer_role: 'Coach', pay_for: 'Bill', money: params.money, time: moment().format('YYYY-MM-DD HH:mm:ss') }
-            const arr = await app.$post(`/payOrder`, obj)
-            if (arr.errcode == '0') {
-                wx.requestPayment({
-                    "timeStamp": arr.data.wxSign.timestamp,
-                    "nonceStr": arr.data.wxSign.nonceStr,
-                    "package": `prepay_id=${arr.data.wxSign.prepay_id}`,
-                    "signType": arr.data.wxSign.signType,
-                    "paySign": arr.data.wxSign.paySign,
-                    "success": async function (res) {
-                        let money = Math.floor((Number(rcsInfo.money || 0) + Number(params.money)) * 100) / 100;
-                        const aee = await app.$post(`/rcs/${rcsInfo._id}`, { money: money });
-                        if (aee.errcode == '0') {
-                            const att = await app.$post(`/payOrder/${arr.data.data._id}`, { status: '1' });
-                            if (att.errcode == '0') {
-                                wx.showToast({ title: `支付成功`, icon: 'success', duration: 2000 });
-                                that.back()
-                            }
-                        } else { wx.showToast({ title: `${aee.errmsg}`, icon: 'error', duration: 2000 }) }
-                    },
-                    "fail": function (res) {
-                        wx.showToast({ title: `支付未成功`, icon: 'error', duration: 2000 })
-                        that.back()
-                    },
-                })
-            }
-        }
-    },
-    /**
-     * 生命周期函数--监听页面加载
-     */
-    onLoad: async function (options) {
-        const that = this;
-        that.setData({ id: options.id || '62ff243908c3ce998df1602a' });
-        //验证规则函数
-        that.initValidate();
-        // 监听用户是否登录
-        await that.watchLogin();
-    },
-    // 监听用户是否登录
-    watchLogin: async function () {
-        const that = this;
-        wx.getStorage({
-            key: 'user',
-            success: async res => {
-                that.setData({ user: res.data })
-                let arr;
-                if (that.data.id) {
-                    // 关系信息
-                    arr = await app.$get(`/rcs/${that.data.id}`);
-                    if (arr.errcode == '0') that.setData({ rcsInfo: arr.data })
-                    else { wx.showToast({ title: `${arr.errmsg}`, icon: 'error', duration: 2000 }) }
-                }
-            },
-            fail: async res => {
-                wx.redirectTo({ url: '/pages/index/index' })
-            }
-        })
-    },
-
-    /**
-     * 生命周期函数--监听页面初次渲染完成
-     */
-    onReady: function () {
-
-    },
-
-
-    /**
-     * 生命周期函数--监听页面显示
-     */
-    onShow: function () { },
-
-    /**
-     * 生命周期函数--监听页面隐藏
-     */
-    onHide: function () {
-
-    },
-
-    /**
-     * 生命周期函数--监听页面卸载
-     */
-    onUnload: function () {
-
-    },
-
-    /**
-     * 页面相关事件处理函数--监听用户下拉动作
-     */
-    onPullDownRefresh: function () {
-
-    },
-
-    /**
-     * 页面上拉触底事件的处理函数
-     */
-    onReachBottom: function () {
-
-    },
-
-    /**
-     * 用户点击右上角分享
-     */
-    onShareAppMessage: function () {
-
-    }
-})

+ 0 - 36
pagesSchool/coaAdmin/money/add.less

@@ -1,36 +0,0 @@
-@import (css) "/app.wxss";
-
-.main {
-    background-color: var(--mainColor);
-
-    .one {
-        .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;
-            }
-        }
-    }
-}

+ 0 - 17
pagesSchool/coaAdmin/money/add.wxml

@@ -1,17 +0,0 @@
-<mobile-main frameStyle="{{frameStyle}}" bind:back="back">
-    <view slot="info" class="container main">
-        <view class="one">
-            <form catchsubmit="onSubmit">
-                <view class="content">
-                    <view class="label">充值金额:</view>
-                    <view class="value">
-                        <input type="number" name="money" value="{{form.money}}" placeholder="请输入充值金额" />
-                    </view>
-                </view>
-                <view class="btn">
-                    <button type="primary" size="mini" formType="submit">提交充值</button>
-                </view>
-            </form>
-        </view>
-    </view>
-</mobile-main>

+ 0 - 28
pagesSchool/coaAdmin/money/add.wxss

@@ -1,28 +0,0 @@
-@import "/app.wxss";
-.main {
-  background-color: var(--mainColor);
-}
-.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 .btn {
-  text-align: center;
-  margin: 5vw 0 0 0;
-}
-.main .one .btn button {
-  width: 40vw;
-  margin: 0 2vw;
-  padding: 1vw 0;
-}

+ 0 - 117
pagesSchool/coaAdmin/money/list.js

@@ -1,117 +0,0 @@
-const app = getApp()
-Page({
-
-    /**
-     * 页面的初始数据
-     */
-    data: {
-        frameStyle: { useTop: true, name: '账号余额', leftArrow: true, useBar: false },
-        list: [],
-        total: 0,
-        page: 0,
-        skip: 0,
-        limit: 5,
-    },
-    // 返回
-    back: function () {
-        wx.navigateBack({ delta: 1 })
-    },
-    //添加信息,信息维护
-    toCommon: function (e) {
-        const that = this;
-        const { item, route } = e.currentTarget.dataset;
-        that.setData({ skip: 0, page: 0, list: [] });
-        wx.navigateTo({ url: `/pagesSchool/${route}?id=${item && item._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 }) }
-    },
-    /**
-     * 生命周期函数--监听页面加载
-     */
-    onLoad: function (options) {
-
-    },
-
-    /**
-     * 生命周期函数--监听页面初次渲染完成
-     */
-    onReady: function () {
-
-    },
-
-    /**
-     * 生命周期函数--监听页面显示
-     */
-    onShow: async function () {
-        const that = this;
-        // 监听用户是否登录
-        await that.watchLogin();
-    },
-    // 监听用户是否登录
-    watchLogin: async function () {
-        const that = this;
-        wx.getStorage({
-            key: 'user',
-            success: async res => {
-                let info = { skip: that.data.skip, limit: that.data.limit, coach_id: res.data.info.id };
-                let arr = await app.$get(`/rcs`, { ...info });
-                if (arr.errcode == '0') {
-                    let list = [...that.data.list, ...arr.data];
-                    that.setData({ list: list })
-                    that.setData({ total: arr.total })
-                } else { wx.showToast({ title: `${arr.errmsg}`, icon: 'error', duration: 2000 }) }
-            },
-            fail: async res => {
-                wx.redirectTo({ url: '/pages/index/index' })
-            }
-        })
-    },
-
-    /**
-     * 生命周期函数--监听页面隐藏
-     */
-    onHide: function () {
-
-    },
-
-    /**
-     * 生命周期函数--监听页面卸载
-     */
-    onUnload: function () {
-
-    },
-
-    /**
-     * 页面相关事件处理函数--监听用户下拉动作
-     */
-    onPullDownRefresh: function () {
-
-    },
-
-    /**
-     * 页面上拉触底事件的处理函数
-     */
-    onReachBottom: function () {
-
-    },
-
-    /**
-     * 用户点击右上角分享
-     */
-    onShareAppMessage: function () {
-
-    }
-})

+ 0 - 93
pagesSchool/coaAdmin/money/list.less

@@ -1,93 +0,0 @@
-@import (css) "/app.wxss";
-
-.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;
-        width: 96vw;
-        margin: 2vw;
-        background-color: var(--mainColor);
-
-        .list {
-            display: flex;
-            flex-direction: column;
-            border: 2px dashed var(--f1Color);
-            padding: 2vw;
-            margin: 0 0 2vw 0;
-            border-radius: 10px;
-
-            .name {
-                font-size: var(--font16Szie);
-                font-weight: bold;
-                margin: 0 0 2vw 0;
-                color: var(--redColor);
-            }
-
-            .other {
-                margin: 0 0 2vw 0;
-
-                .other_1 {
-                    font-size: var(--font14Szie);
-                    margin: 0 0 1vw 0;
-
-                    text:first-child {
-                        color: var(--f85Color);
-                    }
-                }
-            }
-
-            .btn {
-                margin: 2vw 0 0 0;
-                text-align: center;
-
-                button {
-                    margin: 0 2vw;
-                }
-            }
-        }
-
-    }
-}
-
-.scroll-view {
-    position: absolute;
-    top: 0;
-    left: 0;
-    right: 0;
-    bottom: 0;
-
-    .list-scroll-view {
-        display: flex;
-        flex-direction: column;
-    }
-}

+ 0 - 30
pagesSchool/coaAdmin/money/list.wxml

@@ -1,30 +0,0 @@
-<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 class="one_2">
-                <button type="primary" bindtap="toCommon" data-route="coaAdmin/money/add">充值</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="name">{{item.money||0}}元</view>
-                        <view class="other">
-                            <!-- <view class="other_1"><text>教练姓名:</text><text>{{item.coach_id_name}}</text></view>
-                            <view class="other_1"><text>教练联系方式:</text><text>{{item.coach_id_phone}}</text></view> -->
-                            <view class="other_1"><text>学校名称:</text><text>{{item.school_id_name}}</text></view>
-                            <view class="other_1"><text>学校联系方式:</text><text>{{item.school_id_phone}}</text></view>
-                        </view>
-                        <view class="btn">
-                            <button type="primary" size="mini" bindtap="toCommon" data-route="coaAdmin/money/add" data-item="{{item}}">充值</button>
-                        </view>
-                    </view>
-                </view>
-            </scroll-view>
-        </view>
-    </view>
-</mobile-main>

+ 0 - 76
pagesSchool/coaAdmin/money/list.wxss

@@ -1,76 +0,0 @@
-@import "/app.wxss";
-.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;
-  width: 96vw;
-  margin: 2vw;
-  background-color: var(--mainColor);
-}
-.main .two .list {
-  display: flex;
-  flex-direction: column;
-  border: 2px dashed var(--f1Color);
-  padding: 2vw;
-  margin: 0 0 2vw 0;
-  border-radius: 10px;
-}
-.main .two .list .name {
-  font-size: var(--font16Szie);
-  font-weight: bold;
-  margin: 0 0 2vw 0;
-  color: var(--redColor);
-}
-.main .two .list .other {
-  margin: 0 0 2vw 0;
-}
-.main .two .list .other .other_1 {
-  font-size: var(--font14Szie);
-  margin: 0 0 1vw 0;
-}
-.main .two .list .other .other_1 text:first-child {
-  color: var(--f85Color);
-}
-.main .two .list .btn {
-  margin: 2vw 0 0 0;
-  text-align: center;
-}
-.main .two .list .btn button {
-  margin: 0 2vw;
-}
-.scroll-view {
-  position: absolute;
-  top: 0;
-  left: 0;
-  right: 0;
-  bottom: 0;
-}
-.scroll-view .list-scroll-view {
-  display: flex;
-  flex-direction: column;
-}

+ 0 - 101
pagesSchool/coaAdmin/school/info.js

@@ -1,101 +0,0 @@
-const app = getApp()
-Page({
-
-    /**
-     * 页面的初始数据
-     */
-    data: {
-        frameStyle: { useTop: true, name: '羽校详细信息', leftArrow: true, useBar: false },
-        school_id: '',
-        form: {},
-    },
-
-    // 返回
-    back: function () {
-        wx.navigateBack({ delta: 1 })
-    },
-    // 图片预览
-    imgView: function (e) {
-        const that = this;
-        const { item } = e.currentTarget.dataset;
-        if (item && item.length > 0) {
-            wx.previewImage({
-                current: '',
-                urls: [item[0].url]
-            })
-        }
-    },
-    /**
-     * 生命周期函数--监听页面加载
-     */
-    onLoad: async function (options) {
-        const that = this;
-        that.setData({ school_id: options.school_id || '' });
-        // 监听用户是否登录
-        await that.watchLogin();
-    },
-
-    // 监听用户是否登录
-    watchLogin: async function () {
-        const that = this;
-        wx.getStorage({
-            key: 'user',
-            success: async res => {
-                let arr;
-                arr = await app.$get(`/school/${that.data.school_id}`,);
-                if (arr.errcode == '0') { that.setData({ form: arr.data }) }
-            },
-            fail: async res => {
-                wx.redirectTo({ url: '/pages/index/index' })
-            }
-        })
-    },
-
-    /**
-     * 生命周期函数--监听页面初次渲染完成
-     */
-    onReady: function () {
-
-    },
-
-
-    /**
-     * 生命周期函数--监听页面显示
-     */
-    onShow: function () { },
-
-    /**
-     * 生命周期函数--监听页面隐藏
-     */
-    onHide: function () {
-
-    },
-
-    /**
-     * 生命周期函数--监听页面卸载
-     */
-    onUnload: function () {
-
-    },
-
-    /**
-     * 页面相关事件处理函数--监听用户下拉动作
-     */
-    onPullDownRefresh: function () {
-
-    },
-
-    /**
-     * 页面上拉触底事件的处理函数
-     */
-    onReachBottom: function () {
-
-    },
-
-    /**
-     * 用户点击右上角分享
-     */
-    onShareAppMessage: function () {
-
-    }
-})

+ 0 - 54
pagesSchool/coaAdmin/school/info.less

@@ -1,54 +0,0 @@
-@import (css) "/app.wxss";
-
-.main {
-    background-color: var(--mainColor);
-
-    .one {
-        padding: 2vw;
-
-        .one_1 {
-
-            width: 96vw;
-            margin: 0 0 2vw 0;
-
-
-            swiper {
-                height: 30vh;
-
-                .image {
-                    width: 100%;
-                    height: 100%;
-                    border-radius: 10px;
-                }
-            }
-        }
-
-        .one_2 {
-            width: 96vw;
-
-            .name {
-                font-size: var(--font20Szie);
-                font-weight: bold;
-                margin: 0 0 2vw 0;
-            }
-
-            .other {
-                margin: 0 0 2vw 0;
-
-                .other_1 {
-                    padding: 2vw 0;
-                    font-size: var(--font16Szie);
-                    border-bottom: 1px dashed var(--f1Color);
-
-                    text:first-child {
-                        color: var(--f85Color);
-                    }
-                }
-
-                .image {
-                    width: 100%;
-                }
-            }
-        }
-    }
-}

+ 0 - 30
pagesSchool/coaAdmin/school/info.wxml

@@ -1,30 +0,0 @@
-<mobile-main frameStyle="{{frameStyle}}" bind:back="back">
-    <view slot="info" class="container main">
-        <view class="one">
-            <view class="one_1">
-                <swiper autoplay="true" circular="true" interval="3000" duration="1000">
-                    <block wx:for="{{form.img_url}}" wx:key="tag" wx:for-item="tag" wx:for-index="tagindex">
-                        <swiper-item>
-                            <image class="image" src="{{tag.url}}"></image>
-                        </swiper-item>
-                    </block>
-                </swiper>
-            </view>
-            <view class="one_2">
-                <view class="name">{{form.name}}</view>
-                <view class="other">
-                    <view class="other_1"><text>学校简介:</text><text>{{form.brief||'暂无'}}</text></view>
-                    <view class="other_1"><text>联系方式:</text><text>{{form.phone||'暂无'}}</text></view>
-                    <view class="other_1"><text>训练地址:</text><text>{{form.address||'暂无'}}</text></view>
-                    <view class="other_1"><text>教练人数:</text><text>{{form.coach_num||'暂无'}}</text></view>
-                    <view class="other_1"><text>学员人数:</text><text>{{form.student_num||'暂无'}}</text></view>
-                    <view class="other_1"><text>过往荣誉:</text><text>{{form.honor||'暂无'}}</text></view>
-                    <view class="other_1"><text>学校网址:</text><text>{{form.url||'暂无'}}</text></view>
-                    <view class="other_1"><text>营业执照:</text>
-                        <image class="image" bindtap="imgView" data-item="{{form.yyzz}}" mode="aspectFit" src="{{form.yyzz&&form.yyzz.length>0?form.yyzz[0].url:''}}"></image>
-                    </view>
-                </view>
-            </view>
-        </view>
-    </view>
-</mobile-main>

+ 0 - 41
pagesSchool/coaAdmin/school/info.wxss

@@ -1,41 +0,0 @@
-@import "/app.wxss";
-.main {
-  background-color: var(--mainColor);
-}
-.main .one {
-  padding: 2vw;
-}
-.main .one .one_1 {
-  width: 96vw;
-  margin: 0 0 2vw 0;
-}
-.main .one .one_1 swiper {
-  height: 30vh;
-}
-.main .one .one_1 swiper .image {
-  width: 100%;
-  height: 100%;
-  border-radius: 10px;
-}
-.main .one .one_2 {
-  width: 96vw;
-}
-.main .one .one_2 .name {
-  font-size: var(--font20Szie);
-  font-weight: bold;
-  margin: 0 0 2vw 0;
-}
-.main .one .one_2 .other {
-  margin: 0 0 2vw 0;
-}
-.main .one .one_2 .other .other_1 {
-  padding: 2vw 0;
-  font-size: var(--font16Szie);
-  border-bottom: 1px dashed var(--f1Color);
-}
-.main .one .one_2 .other .other_1 text:first-child {
-  color: var(--f85Color);
-}
-.main .one .one_2 .other .image {
-  width: 100%;
-}

+ 7 - 54
pagesSchool/coaAdmin/school/list.js

@@ -1,50 +1,22 @@
-const app = getApp()
+const app = getApp();
 Page({
-
     /**
      * 页面的初始数据
      */
     data: {
         frameStyle: { useTop: true, name: '羽校信息', leftArrow: true, useBar: false },
-        list: [],
-        total: 0,
-        page: 0,
-        skip: 0,
-        limit: 5,
     },
-    // 返回
-    back: function () {
+    // 跳转菜单
+    back(e) {
         wx.navigateBack({ delta: 1 })
     },
-    //添加信息,信息维护
-    toCommon: function (e) {
-        const that = this;
-        const { item, route } = e.currentTarget.dataset;
-        that.setData({ skip: 0, page: 0, list: [] });
-        wx.navigateTo({ url: `/pagesSchool/${route}?school_id=${item.school_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 }) }
-    },
+
     /**
      * 生命周期函数--监听页面加载
      */
     onLoad: function (options) {
 
     },
-
     /**
      * 生命周期函数--监听页面初次渲染完成
      */
@@ -55,31 +27,12 @@ Page({
     /**
      * 生命周期函数--监听页面显示
      */
-    onShow: async function () {
-        const that = this;
-        // 监听用户是否登录
-        await that.watchLogin();
-    },
-    // 监听用户是否登录
-    watchLogin: async function () {
+    onShow: function () {
         const that = this;
-        wx.getStorage({
-            key: 'user',
-            success: async res => {
-                let info = { skip: that.data.skip, limit: that.data.limit, coach_id: res.data.info.id };
-                let arr = await app.$get(`/rcs`, { ...info });
-                if (arr.errcode == '0') {
-                    let list = [...that.data.list, ...arr.data];
-                    that.setData({ list: list })
-                    that.setData({ total: arr.total })
-                } else { wx.showToast({ title: `${arr.errmsg}`, icon: 'error', duration: 2000 }) }
-            },
-            fail: async res => {
-                wx.redirectTo({ url: '/pages/index/index' })
-            }
-        })
+
     },
 
+
     /**
      * 生命周期函数--监听页面隐藏
      */

+ 1 - 92
pagesSchool/coaAdmin/school/list.less

@@ -1,92 +1 @@
-@import (css) "/app.wxss";
-
-.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;
-        width: 96vw;
-        margin: 2vw;
-        background-color: var(--mainColor);
-
-        .list {
-            display: flex;
-            flex-direction: column;
-            border: 2px dashed var(--f1Color);
-            padding: 2vw;
-            margin: 0 0 2vw 0;
-            border-radius: 10px;
-
-            .name {
-                font-size: var(--font16Szie);
-                font-weight: bold;
-                margin: 0 0 2vw 0;
-            }
-
-            .other {
-                margin: 0 0 2vw 0;
-
-                .other_1 {
-                    font-size: var(--font14Szie);
-                    margin: 0 0 1vw 0;
-
-                    text:first-child {
-                        color: var(--f85Color);
-                    }
-                }
-            }
-
-            .btn {
-                margin: 2vw 0 0 0;
-                text-align: center;
-
-                button {
-                    margin: 0 2vw;
-                }
-            }
-        }
-
-    }
-}
-
-.scroll-view {
-    position: absolute;
-    top: 0;
-    left: 0;
-    right: 0;
-    bottom: 0;
-
-    .list-scroll-view {
-        display: flex;
-        flex-direction: column;
-    }
-}
+@import (css) "/app.wxss";

+ 1 - 23
pagesSchool/coaAdmin/school/list.wxml

@@ -1,27 +1,5 @@
 <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 class="one_2">
-                <button type="primary" bindtap="toCommon" data-route="coaAdmin/student/add">添加</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="name">{{item.school_id_name}}</view>
-                        <view class="other">
-                            <view class="other_1"><text>联系电话:</text><text>{{item.school_id_phone||'暂无'}}</text></view>
-                        </view>
-                        <view class="btn">
-                            <button type="primary" size="mini" bindtap="toCommon" data-route="coaAdmin/school/info" data-item="{{item}}">详细信息</button>
-                        </view>
-                    </view>
-                </view>
-            </scroll-view>
-        </view>
+        <view>羽校信息</view>
     </view>
 </mobile-main>

+ 1 - 75
pagesSchool/coaAdmin/school/list.wxss

@@ -1,75 +1 @@
-@import "/app.wxss";
-.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;
-  width: 96vw;
-  margin: 2vw;
-  background-color: var(--mainColor);
-}
-.main .two .list {
-  display: flex;
-  flex-direction: column;
-  border: 2px dashed var(--f1Color);
-  padding: 2vw;
-  margin: 0 0 2vw 0;
-  border-radius: 10px;
-}
-.main .two .list .name {
-  font-size: var(--font16Szie);
-  font-weight: bold;
-  margin: 0 0 2vw 0;
-}
-.main .two .list .other {
-  margin: 0 0 2vw 0;
-}
-.main .two .list .other .other_1 {
-  font-size: var(--font14Szie);
-  margin: 0 0 1vw 0;
-}
-.main .two .list .other .other_1 text:first-child {
-  color: var(--f85Color);
-}
-.main .two .list .btn {
-  margin: 2vw 0 0 0;
-  text-align: center;
-}
-.main .two .list .btn button {
-  margin: 0 2vw;
-}
-.scroll-view {
-  position: absolute;
-  top: 0;
-  left: 0;
-  right: 0;
-  bottom: 0;
-}
-.scroll-view .list-scroll-view {
-  display: flex;
-  flex-direction: column;
-}
+/* pagesSchool/coaAdmin/school/list.wxss */

+ 0 - 159
pagesSchool/coaAdmin/stat/income.js

@@ -1,159 +0,0 @@
-const app = getApp()
-import * as echarts from '../../../commpents/ec-canvas/echarts'
-let chart;
-
-Page({
-    data: {
-        frameStyle: { useTop: true, name: '收入统计', leftArrow: true, useBar: false },
-        value: [],
-        date: [],
-    },
-    // 返回
-    back(e) {
-        wx.navigateBack({ delta: 1 })
-    },
-    /**
-     * 生命周期函数--监听页面加载
-     */
-    onLoad: async function (options) {
-        const that = this;
-        that.setData({ ec: { onInit: that.initChart } })
-        // 监听用户是否登录
-        await that.watchLogin();
-    },
-    // 监听用户是否登录
-    watchLogin: async function () {
-        const that = this;
-        wx.getStorage({
-            key: 'user',
-            success: async res => {
-                const rcs = await app.$get(`/rcs`, { coach_id: res.data.info.id });
-                if (rcs.errcode == '0' && rcs.total > 0) {
-                    const arr = await app.$get(`/statistics/schoolCoachIn`, { school_id: rcs.data[0].school_id, coach_id: res.data.info.id });
-                    if (arr.errcode == '0') {
-                        var date = []
-                        var value = []
-                        arr.data.map(function (item) {
-                            var m = ''; m = item.m; date.push(m)
-                            var sevm = ''; sevm = item.total; value.push(sevm)
-                        })
-                        that.setData({ date: date })
-                        that.setData({ value: value })
-                        const option = {
-                            xAxis: [{ data: date, }],
-                            series: [{ data: value, }],
-
-                        }
-                        if (chart) chart.setOption(option)
-                    }
-                }
-            },
-            fail: async res => {
-                wx.redirectTo({ url: '/pages/index/index' })
-            }
-        })
-    },
-    // 折线图
-    initChart(canvas, width, height, dpr) {
-        let that = this;
-        var date = that.data.date;
-        var value = that.data.value;
-        chart = echarts.init(canvas, null, {
-            width: width,
-            height: height,
-            devicePixelRatio: dpr
-        });
-        canvas.setChart(chart);
-        var option = {
-            grid: {
-                left: 20,
-                right: 20,
-                bottom: 145,
-                top: 60,
-                containLabel: true
-            },
-            tooltip: {
-                show: true,
-                trigger: 'axis',
-                formatter: '{b}月:收入{c}元' // 格式化数值百分比输出
-            },
-            xAxis: {
-                type: 'category',
-                boundaryGap: false,
-                data: date,
-                // 设置x轴线的属性
-                //使x轴文字显示全
-                axisLabel: {
-                    formatter: '{value}月',
-                    show: true, interval: 0,
-                },
-            },
-            yAxis: {
-                x: 'center',
-                type: 'value',
-                splitLine: {
-                    lineStyle: { type: 'dashed' }
-                },
-                axisLabel: {
-                    formatter: '{value}元',
-                },
-            },
-            series: [
-                {
-                    type: 'line',
-                    smooth: true,
-                    data: value,
-                    itemStyle: {
-                        normal: {
-                            color: '#ff7f50',
-                            lineStyle: { color: '#5470C6' },
-                            label: { show: true, formatter: '{c}元', }
-                        }
-                    },
-                }
-            ]
-        };
-        chart.setOption(option, true);
-        return chart;
-    },
-    /**
-   * 生命周期函数--监听页面初次渲染完成
-   */
-    onReady: function () { },
-    /**
-     * 生命周期函数--监听页面显示
-     */
-    onShow: function () {
-    },
-    /**
-     * 页面上拉触底事件的处理函数
-     */
-    /**
-     * 生命周期函数--监听页面隐藏
-     */
-    onHide: function () {
-
-    },
-
-    /**
-     * 生命周期函数--监听页面卸载
-     */
-    onUnload: function () {
-
-    },
-
-    /**
-     * 页面相关事件处理函数--监听用户下拉动作
-     */
-    onPullDownRefresh: function () {
-
-    },
-
-
-    /**
-     * 用户点击右上角分享
-     */
-    onShareAppMessage: function (res) {
-
-    },
-})

+ 0 - 8
pagesSchool/coaAdmin/stat/income.json

@@ -1,8 +0,0 @@
-{
-    "component": true,
-    "usingComponents": {
-      "mobile-main": "/commpents/mobile-frame/index",
-      "ec-canvas": "/commpents/ec-canvas/ec-canvas",
-      "s-tab": "/commpents/tabs/index"
-    }
-  }

+ 0 - 11
pagesSchool/coaAdmin/stat/income.less

@@ -1,11 +0,0 @@
-@import (css) "/app.wxss";
-
-.main {
-    background-color: var(--mainColor);
-    height: var(--twoHeight);
-
-    ec-canvas {
-        width: 100%;
-        height: 100%;
-    }
-}

+ 0 - 7
pagesSchool/coaAdmin/stat/income.wxml

@@ -1,7 +0,0 @@
-<mobile-main frameStyle="{{frameStyle}}" bind:back="back">
-  <view slot="info" class="container main">
-    <view class="container">
-      <ec-canvas id="mychart-dom-pie" canvas-id="mychart-pie" ec="{{ ec }}"></ec-canvas>
-    </view>
-  </view>
-</mobile-main>

+ 0 - 9
pagesSchool/coaAdmin/stat/income.wxss

@@ -1,9 +0,0 @@
-@import "/app.wxss";
-.main {
-  background-color: var(--mainColor);
-  height: var(--twoHeight);
-}
-.main ec-canvas {
-  width: 100%;
-  height: 100%;
-}

+ 26 - 93
pagesSchool/coaAdmin/stat/lecture.js

@@ -1,111 +1,38 @@
-const app = getApp()
-import * as echarts from '../../../commpents/ec-canvas/echarts'
-let chart;
+const app = getApp();
 Page({
+    /**
+     * 页面的初始数据
+     */
     data: {
         frameStyle: { useTop: true, name: '授课情况', leftArrow: true, useBar: false },
-        xdata: [],
-        // 学校
-        zhSchool: '',
-        school_id: '',
-        schoolList: [],
     },
-    // 返回
+    // 跳转菜单
     back(e) {
         wx.navigateBack({ delta: 1 })
     },
-    // 选择学校
-    schoolChange: function (e) {
-        const that = this;
-        let data = that.data.schoolList[e.detail.value];
-        if (data) {
-            that.setData({ school_id: data.school_id });
-            that.setData({ zhSchool: data.school_id_name });
-        }
-        that.watchLogin();
-    },
+
     /**
      * 生命周期函数--监听页面加载
      */
-    onLoad: async function (options) {
-        const that = this;
-        that.setData({ ec: { onInit: that.initChart } })
-        // 监听用户是否登录
-        await that.watchLogin();
-    },
-    // 监听用户是否登录
-    watchLogin: async function () {
-        const that = this;
-        wx.getStorage({
-            key: 'user',
-            success: async res => {
-                // 学校
-                const school = await app.$get(`/rcs`, { coach_id: res.data.info.id });
-                if (school.errcode == '0' && school.total > 0) {
-                    that.setData({ schoolList: school.data })
-                }
-                if (that.data.school_id) {
-                    const arr = await app.$get(`/statistics/coachLesson`, { school_id: res.data.info.id, coach_id: res.data.info.id });
-                    if (arr.errcode == '0') {
-                        that.setData({ xdata: arr.data })
-                        const option = {
-                            series: [{ data: arr.data }],
-                        }
-                        if (chart) chart.setOption(option)
-                    }
-                }
-            },
-            fail: async res => {
-                wx.redirectTo({ url: '/pages/index/index' })
-            }
-        })
-    },
-    // 饼图
-    initChart(canvas, width, height, dpr) {
-        const that = this;
-        var xdata = that.data.xdata;
-        chart = echarts.init(canvas, null, { width: width, height: height, devicePixelRatio: dpr });
-        canvas.setChart(chart);
-        var option = {
-            tooltip: { trigger: 'item' },
-            legend: {
-                orient: 'vertical',
-                height: 40,
-                padding: 50
-            },
-            series: [
-                {
-                    name: '授课情况',
-                    type: 'pie',
-                    radius: '50%',
-                    data: xdata,
-                    emphasis: {
-                        itemStyle: { shadowBlur: 10, shadowOffsetX: 0, shadowColor: 'rgba(0, 0, 0, 0.5)' }
-                    },
-                    label: {
-                        normal: {
-                            show: true,
-                            formatter: '{b}({c}节课)'
-                        }
-                    }
-                }
-            ]
-        };
-        chart.setOption(option, true);
-        return chart;
+    onLoad: function (options) {
+
     },
     /**
-    * 生命周期函数--监听页面初次渲染完成
-    */
-    onReady: function () { },
+     * 生命周期函数--监听页面初次渲染完成
+     */
+    onReady: function () {
+
+    },
+
     /**
      * 生命周期函数--监听页面显示
      */
     onShow: function () {
+        const that = this;
+
     },
-    /**
-     * 页面上拉触底事件的处理函数
-     */
+
+
     /**
      * 生命周期函数--监听页面隐藏
      */
@@ -127,11 +54,17 @@ Page({
 
     },
 
+    /**
+     * 页面上拉触底事件的处理函数
+     */
+    onReachBottom: function () {
+
+    },
 
     /**
      * 用户点击右上角分享
      */
-    onShareAppMessage: function (res) {
+    onShareAppMessage: function () {
 
-    },
+    }
 })

+ 2 - 3
pagesSchool/coaAdmin/stat/lecture.json

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

+ 1 - 19
pagesSchool/coaAdmin/stat/lecture.less

@@ -1,19 +1 @@
-@import (css) "/app.wxss";
-
-.main {
-    background-color: var(--mainColor);
-    height: var(--twoHeight);
-
-    .top {
-        font-size: var(--font14Size);
-        background: -webkit-linear-gradient(right, lightblue, #53C9F8);
-        padding: 2vw;
-        text-align: center;
-        color: var(--mainColor);
-    }
-
-    ec-canvas {
-        width: 100%;
-        height: 100%;
-    }
-}
+@import (css) "/app.wxss";

+ 1 - 6
pagesSchool/coaAdmin/stat/lecture.wxml

@@ -1,10 +1,5 @@
 <mobile-main frameStyle="{{frameStyle}}" bind:back="back">
     <view slot="info" class="container main">
-        <view class="top">
-            <picker mode="selector" bindchange="schoolChange" name="school_id" value="{{school_id}}" range="{{schoolList}}" range-key="school_id_name">
-                <view class="picker">{{zhSchool||'请选择学校'}}</view>
-            </picker>
-        </view>
-        <ec-canvas id="mychart-dom-pie" canvas-id="mychart-pie" ec="{{ ec }}"></ec-canvas>
+        <view>授课情况</view>
     </view>
 </mobile-main>

+ 0 - 15
pagesSchool/coaAdmin/stat/lecture.wxss

@@ -1,16 +1 @@
 @import "/app.wxss";
-.main {
-  background-color: var(--mainColor);
-  height: var(--twoHeight);
-}
-.main .top {
-  font-size: var(--font14Size);
-  background: -webkit-linear-gradient(right, lightblue, #53C9F8);
-  padding: 2vw;
-  text-align: center;
-  color: var(--mainColor);
-}
-.main ec-canvas {
-  width: 100%;
-  height: 100%;
-}

+ 0 - 137
pagesSchool/coaAdmin/stat/student.js

@@ -1,137 +0,0 @@
-const app = getApp()
-import * as echarts from '../../../commpents/ec-canvas/echarts'
-let chart;
-Page({
-    data: {
-        frameStyle: { useTop: true, name: '学员情况', leftArrow: true, useBar: false },
-        xdata: [],
-        // 学校
-        zhSchool: '',
-        school_id: '',
-        schoolList: [],
-    },
-    // 返回
-    back(e) {
-        wx.navigateBack({ delta: 1 })
-    },
-    // 选择学校
-    schoolChange: function (e) {
-        const that = this;
-        let data = that.data.schoolList[e.detail.value];
-        if (data) {
-            that.setData({ school_id: data.school_id });
-            that.setData({ zhSchool: data.school_id_name });
-        }
-        that.watchLogin();
-    },
-    /**
-     * 生命周期函数--监听页面加载
-     */
-    onLoad: async function (options) {
-        const that = this;
-        that.setData({ ec: { onInit: that.initChart } })
-        // 监听用户是否登录
-        await that.watchLogin();
-    },
-    // 监听用户是否登录
-    watchLogin: async function () {
-        const that = this;
-        wx.getStorage({
-            key: 'user',
-            success: async res => {
-                // 学校
-                const school = await app.$get(`/rcs`, { coach_id: res.data.info.id });
-                if (school.errcode == '0' && school.total > 0) {
-                    that.setData({ schoolList: school.data })
-                }
-                if (that.data.school_id) {
-                    const arr = await app.$get(`/statistics/coachStudentLesson`, { school_id: res.data.info.id, coach_id: res.data.info.id });
-                    if (arr.errcode == '0') {
-                        that.setData({ xdata: arr.data })
-                        const option = {
-                            series: [{ data: arr.data }],
-                        }
-                        if (chart) chart.setOption(option)
-                    }
-                }
-            },
-            fail: async res => {
-                wx.redirectTo({ url: '/pages/index/index' })
-            }
-        })
-    },
-    // 饼图
-    initChart(canvas, width, height, dpr) {
-        const that = this;
-        var xdata = that.data.xdata;
-        chart = echarts.init(canvas, null, { width: width, height: height, devicePixelRatio: dpr });
-        canvas.setChart(chart);
-        var option = {
-            tooltip: { trigger: 'item' },
-            legend: {
-                orient: 'vertical',
-                height: 40,
-                padding: 50
-            },
-            series: [
-                {
-                    name: '学员情况',
-                    type: 'pie',
-                    radius: '50%',
-                    data: xdata,
-                    emphasis: {
-                        itemStyle: { shadowBlur: 10, shadowOffsetX: 0, shadowColor: 'rgba(0, 0, 0, 0.5)' }
-                    },
-                    label: {
-                        normal: {
-                            show: true,
-                            formatter: '{b}({c}名)'
-                        }
-                    }
-                }
-            ]
-        };
-        chart.setOption(option, true);
-        return chart;
-    },
-    /**
-    * 生命周期函数--监听页面初次渲染完成
-    */
-    onReady: function () { },
-    /**
-     * 生命周期函数--监听页面显示
-     */
-    onShow: function () {
-    },
-    /**
-     * 页面上拉触底事件的处理函数
-     */
-    /**
-     * 生命周期函数--监听页面隐藏
-     */
-    onHide: function () {
-
-    },
-
-    /**
-     * 生命周期函数--监听页面卸载
-     */
-    onUnload: function () {
-
-    },
-
-    /**
-     * 页面相关事件处理函数--监听用户下拉动作
-     */
-    onPullDownRefresh: function () {
-
-    },
-
-
-    /**
-     * 用户点击右上角分享
-     */
-    onShareAppMessage: function (res) {
-
-    },
-})

+ 0 - 7
pagesSchool/coaAdmin/stat/student.json

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

+ 0 - 19
pagesSchool/coaAdmin/stat/student.less

@@ -1,19 +0,0 @@
-@import (css) "/app.wxss";
-
-.main {
-    background-color: var(--mainColor);
-    height: var(--twoHeight);
-
-    .top {
-        font-size: var(--font14Size);
-        background: -webkit-linear-gradient(right, lightblue, #53C9F8);
-        padding: 2vw;
-        text-align: center;
-        color: var(--mainColor);
-    }
-
-    ec-canvas {
-        width: 100%;
-        height: 100%;
-    }
-}

+ 0 - 10
pagesSchool/coaAdmin/stat/student.wxml

@@ -1,10 +0,0 @@
-<mobile-main frameStyle="{{frameStyle}}" bind:back="back">
-    <view slot="info" class="container main">
-        <view class="top">
-            <picker mode="selector" bindchange="schoolChange" name="school_id" value="{{school_id}}" range="{{schoolList}}" range-key="school_id_name">
-                <view class="picker">{{zhSchool||'请选择学校'}}</view>
-            </picker>
-        </view>
-        <ec-canvas id="mychart-dom-pie" canvas-id="mychart-pie" ec="{{ ec }}"></ec-canvas>
-    </view>
-</mobile-main>

+ 0 - 16
pagesSchool/coaAdmin/stat/student.wxss

@@ -1,16 +0,0 @@
-@import "/app.wxss";
-.main {
-  background-color: var(--mainColor);
-  height: var(--twoHeight);
-}
-.main .top {
-  font-size: var(--font14Size);
-  background: -webkit-linear-gradient(right, lightblue, #53C9F8);
-  padding: 2vw;
-  text-align: center;
-  color: var(--mainColor);
-}
-.main ec-canvas {
-  width: 100%;
-  height: 100%;
-}

+ 0 - 177
pagesSchool/coaAdmin/student/add.js

@@ -1,177 +0,0 @@
-const app = getApp()
-import WxValidate from '../../../utils/wxValidate';
-Page({
-
-    /**
-     * 页面的初始数据
-     */
-    data: {
-        frameStyle: { useTop: true, name: '学员信息维护', leftArrow: true, useBar: false },
-        id: '',
-        form: {},
-        user: {},
-        // 教练学校
-        coachSchool: {},
-        // 学校学员
-        studentList: [],
-        // 折扣设置
-        discount_typeList: []
-    },
-    initValidate() {
-        const rules = { student_id: { required: true } }
-        // 验证字段的提示信息,若不传则调用默认的信息
-        const messages = { student_id: { required: '请选择学员' } };
-        this.WxValidate = new WxValidate(rules, messages)
-    },
-    // 返回
-    back: function () {
-        wx.navigateBack({ delta: 1 })
-    },
-    // 选择学生
-    stuChange: function (e) {
-        const that = this;
-        let data = that.data.studentList[e.detail.value];
-        if (data) {
-            console.log(data);
-            that.setData({ 'form.student_id': data.student_id })
-            that.setData({ 'form.student_id_name': data.student_id_name })
-        }
-    },
-    // 选择折扣类型
-    typeChange: function (e) {
-        const that = this;
-        let data = that.data.discount_typeList[e.detail.value];
-        if (data) {
-            that.setData({ 'form.config.discount_type': data.value });
-            that.setData({ 'form.config.number': null })
-        }
-    },
-    // 折扣判断
-    moneyInput: function (e) {
-        const that = this;
-        const form = that.data.form;
-        if (form.config && form.config.discount_type && form.config.discount_type == 'discount') {
-            var regex = /^(10|\d)(\.\d{1,1})?$/;
-            if (!regex.test(e.detail.value)) {
-                wx.showToast({ title: `数据不允许`, icon: 'error', duration: 1000 });
-                that.setData({ 'form.config.number': null })
-            }
-        }
-    },
-    onSubmit: async function (e) {
-        const that = this;
-        const params = e.detail.value;
-        if (!this.WxValidate.checkForm(params)) {
-            const error = this.WxValidate.errorList[0];
-            wx.showToast({ title: `${error.msg}`, icon: 'error', duration: 2000 })
-            return false
-        } else {
-            params.config = { discount_type: params['config.discount_type'], number: params['config.number'] }
-            let arr;
-            if (that.data.id) arr = await app.$post(`/rsc/${that.data.id}`, params);
-            else arr = await app.$post(`/rsc`, params);
-            if (arr.errcode == '0') {
-                wx.showToast({ title: `信息维护成功`, icon: 'success', duration: 2000 });
-                that.back()
-            } else { wx.showToast({ title: `${arr.errmsg}`, icon: 'error', duration: 2000 }) }
-        }
-    },
-    /**
-     * 生命周期函数--监听页面加载
-     */
-    onLoad: async function (options) {
-        const that = this;
-        that.setData({ id: options.id || '' });
-        //验证规则函数
-        that.initValidate();
-        // 查询其他信息
-        await that.searchOther();
-        // 监听用户是否登录
-        await that.watchLogin();
-    },
-    searchOther: async function () {
-        const that = this;
-        let arr;
-        // 折扣设置
-        arr = await app.$get(`/dict`, { code: 'rsc_type' });
-        if (arr.errcode == '0' && arr.total > 0) { that.setData({ discount_typeList: arr.data[0].list }) }
-    },
-    // 监听用户是否登录
-    watchLogin: async function () {
-        const that = this;
-        wx.getStorage({
-            key: 'user',
-            success: async res => {
-                that.setData({ user: res.data });
-                // 查询教练学校
-                let arr;
-                arr = await app.$get(`/rcs`, { coach_id: res.data.info.id });
-                if (arr.errcode == '0' && arr.total > 0) that.setData({ coachSchool: arr.data[0] });
-                // 查询学校学员
-                arr = await app.$get(`/rss`, { school_id: that.data.coachSchool.school_id });
-                if (arr.errcode == '0') that.setData({ studentList: arr.data });
-                let form = { school_id: that.data.coachSchool.school_id, coach_id: that.data.user.info.id }
-                if (that.data.id) {
-                    arr = await app.$get(`/rsc/${that.data.id}`);
-                    if (arr.errcode == '0') {
-                        let student = that.data.studentList.find(i => i.student_id == arr.data.student_id);
-                        if (student) arr.data.student_id_name = student.student_id_name;
-                        form = arr.data;
-                    }
-                }
-                that.setData({ form })
-            },
-            fail: async res => {
-                wx.redirectTo({ url: '/pages/index/index' })
-            }
-        })
-    },
-
-    /**
-     * 生命周期函数--监听页面初次渲染完成
-     */
-    onReady: function () {
-
-    },
-
-
-    /**
-     * 生命周期函数--监听页面显示
-     */
-    onShow: function () { },
-
-    /**
-     * 生命周期函数--监听页面隐藏
-     */
-    onHide: function () {
-
-    },
-
-    /**
-     * 生命周期函数--监听页面卸载
-     */
-    onUnload: function () {
-
-    },
-
-    /**
-     * 页面相关事件处理函数--监听用户下拉动作
-     */
-    onPullDownRefresh: function () {
-
-    },
-
-    /**
-     * 页面上拉触底事件的处理函数
-     */
-    onReachBottom: function () {
-
-    },
-
-    /**
-     * 用户点击右上角分享
-     */
-    onShareAppMessage: function () {
-
-    }
-})

+ 0 - 36
pagesSchool/coaAdmin/student/add.less

@@ -1,36 +0,0 @@
-@import (css) "/app.wxss";
-
-.main {
-    background-color: var(--mainColor);
-
-    .one {
-        .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;
-            }
-        }
-    }
-}

+ 0 - 51
pagesSchool/coaAdmin/student/add.wxml

@@ -1,51 +0,0 @@
-<mobile-main frameStyle="{{frameStyle}}" bind:back="back">
-    <view slot="info" class="container main">
-        <view class="one">
-            <form catchsubmit="onSubmit">
-                <view class="content" style="display: none;">
-                    <view class="label">数据id:</view>
-                    <view class="value">
-                        <input type="text" name="_id" value="{{form._id}}" placeholder="请输入数据id" />
-                    </view>
-                </view>
-                <view class="content" style="display: none;">
-                    <view class="label">学校id:</view>
-                    <view class="value">
-                        <input type="text" name="school_id" value="{{form.school_id}}" placeholder="请输入学校id" />
-                    </view>
-                </view>
-                <view class="content" style="display: none;">
-                    <view class="label">教练id:</view>
-                    <view class="value">
-                        <input type="text" name="coach_id" value="{{form.coach_id}}" placeholder="请输入教练id" />
-                    </view>
-                </view>
-                <view class="content">
-                    <view class="label">学生:</view>
-                    <view class="value">
-                        <picker mode="selector" name="student_id" value="{{form.student_id}}" bindchange="stuChange" range="{{studentList}}" range-key="student_id_name">
-                            <view class="picker">{{form.student_id_name||'请选择学生'}}</view>
-                        </picker>
-                    </view>
-                </view>
-                <view class="content">
-                    <view class="label">折扣方式:</view>
-                    <view class="value">
-                        <picker mode="selector" name="config.discount_type" value="{{form.config.discount_type}}" bindchange="typeChange" range="{{discount_typeList}}" range-key="label">
-                            <view class="picker">{{form.config.discount_type||'请选择折扣方式'}}</view>
-                        </picker>
-                    </view>
-                </view>
-                <view class="content">
-                    <view class="label">折扣金额:</view>
-                    <view class="value">
-                        <input type="digit" name="config.number" value="{{form.config.number}}" bindblur="moneyInput" placeholder="请输入折扣金额" />
-                    </view>
-                </view>
-                <view class="btn">
-                    <button type="primary" size="mini" formType="submit">提交保存</button>
-                </view>
-            </form>
-        </view>
-    </view>
-</mobile-main>

+ 0 - 28
pagesSchool/coaAdmin/student/add.wxss

@@ -1,28 +0,0 @@
-@import "/app.wxss";
-.main {
-  background-color: var(--mainColor);
-}
-.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 .btn {
-  text-align: center;
-  margin: 5vw 0 0 0;
-}
-.main .one .btn button {
-  width: 40vw;
-  margin: 0 2vw;
-  padding: 1vw 0;
-}

+ 0 - 133
pagesSchool/coaAdmin/student/list.js

@@ -1,133 +0,0 @@
-const app = getApp()
-Page({
-
-    /**
-     * 页面的初始数据
-     */
-    data: {
-        frameStyle: { useTop: true, name: '学员信息', leftArrow: true, useBar: false },
-        list: [],
-        total: 0,
-        page: 0,
-        skip: 0,
-        limit: 5,
-        // 折扣设置
-        discount_typeList: []
-    },
-    // 返回
-    back: function () {
-        wx.navigateBack({ delta: 1 })
-    },
-    //添加信息,信息维护
-    toCommon: function (e) {
-        const that = this;
-        const { item, route } = e.currentTarget.dataset;
-        that.setData({ skip: 0, page: 0, list: [] });
-        wx.navigateTo({ url: `/pagesSchool/${route}?id=${item && item._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 }) }
-    },
-    /**
-     * 生命周期函数--监听页面加载
-     */
-    onLoad: function (options) {
-
-    },
-
-    /**
-     * 生命周期函数--监听页面初次渲染完成
-     */
-    onReady: function () {
-
-    },
-
-    /**
-     * 生命周期函数--监听页面显示
-     */
-    onShow: async function () {
-        const that = this;
-        // 查询其他信息
-        await that.searchOther();
-        // 监听用户是否登录
-        await that.watchLogin();
-    },
-    searchOther: async function () {
-        const that = this;
-        let arr;
-        // 折扣设置
-        arr = await app.$get(`/dict`, { code: 'rsc_type' });
-        if (arr.errcode == '0' && arr.total > 0) { that.setData({ discount_typeList: arr.data[0].list }) }
-    },
-    // 监听用户是否登录
-    watchLogin: async function () {
-        const that = this;
-        const discount_typeList = that.data.discount_typeList;
-        wx.getStorage({
-            key: 'user',
-            success: async res => {
-                let info = { skip: that.data.skip, limit: that.data.limit, coach_id: res.data.info.id };
-                let arr = await app.$get(`/rsc`, { ...info });
-                if (arr.errcode == '0') {
-                    let list = [...that.data.list, ...arr.data];
-                    for (const val of list) {
-                        let discount_type = discount_typeList.find(i => i.value == val.config.discount_type);
-                        if (discount_type) val.config.zhDiscount_type = discount_type.label;
-                    }
-                    that.setData({ list: list })
-                    that.setData({ total: arr.total })
-                } else { wx.showToast({ title: `${arr.errmsg}`, icon: 'error', duration: 2000 }) }
-            },
-            fail: async res => {
-                wx.redirectTo({ url: '/pages/index/index' })
-            }
-        })
-    },
-
-    /**
-     * 生命周期函数--监听页面隐藏
-     */
-    onHide: function () {
-
-    },
-
-    /**
-     * 生命周期函数--监听页面卸载
-     */
-    onUnload: function () {
-
-    },
-
-    /**
-     * 页面相关事件处理函数--监听用户下拉动作
-     */
-    onPullDownRefresh: function () {
-
-    },
-
-    /**
-     * 页面上拉触底事件的处理函数
-     */
-    onReachBottom: function () {
-
-    },
-
-    /**
-     * 用户点击右上角分享
-     */
-    onShareAppMessage: function () {
-
-    }
-})

+ 0 - 6
pagesSchool/coaAdmin/student/list.json

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

+ 0 - 92
pagesSchool/coaAdmin/student/list.less

@@ -1,92 +0,0 @@
-@import (css) "/app.wxss";
-
-.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;
-        width: 96vw;
-        margin: 2vw;
-        background-color: var(--mainColor);
-
-        .list {
-            display: flex;
-            flex-direction: column;
-            border: 2px dashed var(--f1Color);
-            padding: 2vw;
-            margin: 0 0 2vw 0;
-            border-radius: 10px;
-
-            .name {
-                font-size: var(--font16Szie);
-                font-weight: bold;
-                margin: 0 0 2vw 0;
-            }
-
-            .other {
-                margin: 0 0 2vw 0;
-
-                .other_1 {
-                    font-size: var(--font14Szie);
-                    margin: 0 0 1vw 0;
-
-                    text:first-child {
-                        color: var(--f85Color);
-                    }
-                }
-            }
-
-            .btn {
-                margin: 2vw 0 0 0;
-                text-align: center;
-
-                button {
-                    margin: 0 2vw;
-                }
-            }
-        }
-
-    }
-}
-
-.scroll-view {
-    position: absolute;
-    top: 0;
-    left: 0;
-    right: 0;
-    bottom: 0;
-
-    .list-scroll-view {
-        display: flex;
-        flex-direction: column;
-    }
-}

+ 0 - 29
pagesSchool/coaAdmin/student/list.wxml

@@ -1,29 +0,0 @@
-<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 class="one_2">
-                <button type="primary" bindtap="toCommon" data-route="coaAdmin/student/add">添加</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="name">{{item.student_id_name}}</view>
-                        <view class="other">
-                            <view class="other_1"><text>折扣类型:</text><text>{{item.config.zhDiscount_type}}</text></view>
-                            <view class="other_1"><text>折扣金额:</text><text>{{item.config.number}}</text></view>
-                            <view class="other_1"><text>所在学校:</text><text>{{item.school_id_name}}</text></view>
-                        </view>
-                        <view class="btn">
-                            <button type="primary" size="mini" bindtap="toCommon" data-route="coaAdmin/student/add" data-item="{{item}}">信息维护</button>
-                        </view>
-                    </view>
-                </view>
-            </scroll-view>
-        </view>
-    </view>
-</mobile-main>

+ 0 - 75
pagesSchool/coaAdmin/student/list.wxss

@@ -1,75 +0,0 @@
-@import "/app.wxss";
-.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;
-  width: 96vw;
-  margin: 2vw;
-  background-color: var(--mainColor);
-}
-.main .two .list {
-  display: flex;
-  flex-direction: column;
-  border: 2px dashed var(--f1Color);
-  padding: 2vw;
-  margin: 0 0 2vw 0;
-  border-radius: 10px;
-}
-.main .two .list .name {
-  font-size: var(--font16Szie);
-  font-weight: bold;
-  margin: 0 0 2vw 0;
-}
-.main .two .list .other {
-  margin: 0 0 2vw 0;
-}
-.main .two .list .other .other_1 {
-  font-size: var(--font14Szie);
-  margin: 0 0 1vw 0;
-}
-.main .two .list .other .other_1 text:first-child {
-  color: var(--f85Color);
-}
-.main .two .list .btn {
-  margin: 2vw 0 0 0;
-  text-align: center;
-}
-.main .two .list .btn button {
-  margin: 0 2vw;
-}
-.scroll-view {
-  position: absolute;
-  top: 0;
-  left: 0;
-  right: 0;
-  bottom: 0;
-}
-.scroll-view .list-scroll-view {
-  display: flex;
-  flex-direction: column;
-}

+ 70 - 0
pagesSchool/common/coachinfo.js

@@ -0,0 +1,70 @@
+const app = getApp();
+Page({
+    /**
+     * 页面的初始数据
+     */
+    data: {
+        frameStyle: { useTop: true, name: '教练详细信息', leftArrow: true, useBar: false },
+    },
+    // 跳转菜单
+    back(e) {
+        wx.navigateBack({ delta: 1 })
+    },
+
+    /**
+     * 生命周期函数--监听页面加载
+     */
+    onLoad: function (options) {
+
+    },
+    /**
+     * 生命周期函数--监听页面初次渲染完成
+     */
+    onReady: function () {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面显示
+     */
+    onShow: function () {
+        const that = this;
+
+    },
+
+
+    /**
+     * 生命周期函数--监听页面隐藏
+     */
+    onHide: function () {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面卸载
+     */
+    onUnload: function () {
+
+    },
+
+    /**
+     * 页面相关事件处理函数--监听用户下拉动作
+     */
+    onPullDownRefresh: function () {
+
+    },
+
+    /**
+     * 页面上拉触底事件的处理函数
+     */
+    onReachBottom: function () {
+
+    },
+
+    /**
+     * 用户点击右上角分享
+     */
+    onShareAppMessage: function () {
+
+    }
+})

pagesSchool/coaAdmin/money/add.json → pagesSchool/common/coachinfo.json


+ 1 - 0
pagesSchool/common/coachinfo.less

@@ -0,0 +1 @@
+@import (css) "/app.wxss";

+ 5 - 0
pagesSchool/common/coachinfo.wxml

@@ -0,0 +1,5 @@
+<mobile-main frameStyle="{{frameStyle}}" bind:back="back">
+    <view slot="info" class="container main">
+        <view>教练详细信息</view>
+    </view>
+</mobile-main>

+ 1 - 0
pagesSchool/common/coachinfo.wxss

@@ -0,0 +1 @@
+@import "/app.wxss";

+ 0 - 0
pagesSchool/common/lessoninfo.js


部分文件因为文件数量过多而无法显示