diff --git a/pages.json b/pages.json
index dbaee0d..eca371e 100644
--- a/pages.json
+++ b/pages.json
@@ -90,8 +90,8 @@
"style": {
"navigationBarTitleText": "课时详情",
"navigationStyle": "default",
- "navigationBarBackgroundColor": "#fff",
- "navigationBarTextStyle": "black"
+ "navigationBarBackgroundColor": "#292929",
+ "navigationBarTextStyle": "white"
}
}
diff --git a/pages/coach/course/info.vue b/pages/coach/course/info.vue
index e862b56..16861ea 100644
--- a/pages/coach/course/info.vue
+++ b/pages/coach/course/info.vue
@@ -1,169 +1,57 @@
-
-
-
-
-
-
-
- 包子皮
-
-
-
- 到课率统计
- 28%
-
-
- 发布作业
- 28%
-
-
-
-
-
- 月授课数
- 12
- 节,月负责学员
- 188
- 名
-
-
-
-
-
-
- 课程
- 预告
-
-
- 5/28周五 15:30~17:30
- 301室篮球少儿课程
-
-
-
- 详情
-
-
-
-
-
-
- 最近课程
-
-
-
-
-
-
-
-
- 12
- /
- 24
-
-
- 到课率:80%
-
-
-
- 班级:少年班
- 时间:2020-05-25 15:30 - 17:30
- 课室:302室
-
- 课程:篮球少儿课
-
-
-
- 上课中
-
+
+
+
+ 青少儿篮球课
+
+
+ 课程名称
+ 青少年篮球课
-
-
-
-
- 12
- /
- 24
-
-
- 到课率:80%
-
+
+
+ 班级
+ 班级名称
-
- 班级:少年班
- 时间:2020-05-25 15:30 - 17:30
- 课室:302室
-
- 课程:篮球少儿课
-
+
+
+ 上课时间
+ 2020.03.25 15:30-17:00
-
-
- 待上课
+
+
+ 上课地址
+ xxxx体育馆302室
-
-
-
-
-
-
- 作业批改
- 全部
-
-
-
-
-
-
-
- 12
- /
- 24
-
-
- 完成率:80%
-
+
+ 课程名称
+ 青少年篮球课
-
- 班级:少年班
- 时间:2020-05-25 15:30 - 17:30
- 课程:篮球少儿课
-
+
+
+ 教练
+ 包子皮
-
-
- 待批改
+
+
+ 教练号码
+ 18888888888
-
-
-
-
- 12
- /
- 24
-
-
- 完成率:80%
-
+
+
+ 扣除课时
+ 2个课时
-
- 班级:少年班
- 时间:2020-05-25 15:30 - 17:30
- 课程:篮球少儿课
-
+
+
+ 已上
-
-
- 待批改
-
-
-
@@ -178,296 +66,162 @@ export default {
},
data() {
return {
- list: [],
- likes: 0,
- type: 1,
- type1: 1,
- activity_id: 0,
- um_id: 0,
- urls: 'http://medication.zeyan.wang/'
+ formData:{},
+
+ //课程下拉菜单相关
+ show_course:false,//是否显示下拉菜单
+ //课程下拉菜单
+ course_name:'课程',//选中的下拉菜单名称
+ options_course: [
+ {
+ text: '请选择课程',
+ value: '',
+ checked: true
+ }, {
+ text: '羽毛球课程1',
+ value: '1'
+ }, {
+ text: '篮球课程2',
+ value: '2'
+ }
+ ],
+
+ //课室下拉菜单相关
+ show_classroom:false,//是否显示下拉菜单
+ //课程下拉菜单
+ classroom_name:'课室',//选中的下拉菜单名称
+ options_classroom: [
+ {
+ text: '请选择课室',
+ value: '',
+ checked: true
+ }, {
+ text: '羽毛球201',
+ value: '1'
+ }, {
+ text: '篮球室101',
+ value: '2'
+ }
+ ],
}
},
onLoad() {
- const um_id = uni.getStorageSync('um_id');
- this.um_id = um_id
- if (um_id == '') {
- uni.navigateTo({
- url: '/pages/login/login'
- })
- }
- this.fetchData(this.um_id)
},
methods: {
-
- //打开-发布作业页
- openObjListView(){
- uni.navigateTo({
- url: '/pages/coach/job/add'
- })
+ //选中课程下拉菜单点击事件
+ clickCourse(e){
+ console.log(e)
+ this.course_name = e.text
+ this.show_course = true
},
-
- //打开作业列表页
- openObjListView(){
- uni.navigateTo({
- url: '/pages/coach/job/list'
- })
+ //显示下拉菜单
+ filterTapCourse() {
+ //显示下拉框
+ this.$refs.ref_course.show()
+ this.show_course = true;
},
- fetchData(um_id) {
- user.activity_index({
- um_id: um_id
- }).then(res => {
- console.log(res)
- if (res.status == 200) {
- if (res.data == null) {
- this.list = []
- } else {
- this.list = res.data
- }
- } else {
- uni.showToast({
- title: res.msg,
- icon: 'none'
- })
- }
- });
- },
- onPullDownRefresh() {
- this.fetchData(this.um_id)
- },
- publishing() {
- uni.navigateTo({
- url: '/pages/index/publishing'
- })
- },
- like(id, um_id) {
- user.activity_like({um_id: um_id, activity_id: id, type: 1}).then(res => {
- if (res.status == 200) {
- user.activity_index({
- um_id: um_id
- }).then(res => {
- console.log(res)
- if (res.status == 200) {
- this.list = res.data
- }
- });
- this.type = res.data.type
- this.activity_id = res.data.activity_id
- } else {
- uni.showToast({
- title: res.msg,
- icon: 'none'
- })
- }
- });
+
+
+ //选中课室
+ clickClassroom(e){
+ console.log(e)
+ this.classroom_name = e.text
+ this.show_classroom = true
},
- collection(id, um_id) {
- user.activity_like({um_id: um_id, activity_id: id, type: 2}).then(res => {
- if (res.status == 200) {
- console.log(res)
- this.fetchData(this.um_id)
- this.type1 = res.data.type
- this.activity_id = res.data.activity_id
- } else {
- uni.showToast({
- title: res.msg,
- icon: 'none'
- })
- }
- });
+ //显示课室下拉菜单
+ filterTapClassroom() {
+ //显示下拉框
+ this.$refs.ref_classroom.show()
+ this.show_classroom = true;
},
- coninfo(item) {
- // user.coninfo({id:id}).then(res => {
- // if(res.status == 200){
- uni.setStorageSync('coninfo', item);
+
+ //打开课时详情页
+ openViewCourseInfo(item){
uni.navigateTo({
- url: '/pages/index/coninfo'
+ url: '/pages/coach/course/info'
})
- // }else{
- // uni.showToast({
- // title: res.msg,
- // icon: 'none'
- // })
- // }
- // });
},
- Comment(id) {
- uni.setStorageSync('actid', id);
- uni.navigateTo({
- url: '/pages/index/Comment'
- })
- }
}
}