diff --git a/components/commentItem/commentItem.vue b/components/commentItem/commentItem.vue index 04ea11f..3799ce0 100644 --- a/components/commentItem/commentItem.vue +++ b/components/commentItem/commentItem.vue @@ -7,7 +7,7 @@ {{ $u.timeFormat(item.createTime, 'yyyy-mm-dd')}} - + {{item.stars}}分 {{item.description}} @@ -19,6 +19,10 @@ + + + + @@ -76,4 +80,15 @@ margin-right: 24rpx; } } + .vdo { + margin-top: 12rpx; + width: 360rpx; + height: 296rpx; + border-radius: 8rpx; + overflow: hidden; + video { + width: 100%; + height: 100%; + } + } \ No newline at end of file diff --git a/config/api.js b/config/api.js index 979635c..cd15b0a 100644 --- a/config/api.js +++ b/config/api.js @@ -78,6 +78,11 @@ export const siteCarPage = (params) => http.get('business/site-car/page', {param export const studentOwner = (params) => http.get('business/student-record/owner', {params}) // 获得学员档案记录列表 export const studentList = (params) => http.get('business/student-record/page', {params}) +// 绑定教练 +export const studentBindCoach = (data) => http.post('business/student-record/bindCoach', data) + + + diff --git a/pages.json b/pages.json index 7fce8b7..bd06ff4 100644 --- a/pages.json +++ b/pages.json @@ -179,11 +179,19 @@ "style": { "navigationBarTitleText": "添加学员", "navigationStyle": "custom", - "enablePullDownRefresh": false, + "enablePullDownRefresh": true, + "backgroundTextStyle": "dark" + } + }, + { + "path": "student/addStudent/searchStudent", + "style": { + "navigationBarTitleText": "搜索学员", + "navigationStyle": "custom", + "enablePullDownRefresh": true, "backgroundTextStyle": "dark" } } - ] }, { diff --git a/pages/recordEntry/student/addStudent/addStudent.vue b/pages/recordEntry/student/addStudent/addStudent.vue index 8a67825..10118a7 100644 --- a/pages/recordEntry/student/addStudent/addStudent.vue +++ b/pages/recordEntry/student/addStudent/addStudent.vue @@ -3,21 +3,26 @@ - + - + - - + + {{item.name}} + + + + + - 已选学员(4) - 确认学员 + 已选学员({{studentIds.length}}) + 确认学员 @@ -26,7 +31,7 @@ + + \ No newline at end of file diff --git a/pages/tabbar/operateTrain/index.vue b/pages/tabbar/operateTrain/index.vue index 1070a4a..b548b1a 100644 --- a/pages/tabbar/operateTrain/index.vue +++ b/pages/tabbar/operateTrain/index.vue @@ -55,7 +55,7 @@ :minDate="1587524800000" @confirm="confirmDatePicker" @cancel="cancelDate" - cancelText="所有日期" + cancelText="不限日期" @close="showDatePicker=false" > diff --git a/pages/tabbar/statistics/comp/comp.scss b/pages/tabbar/statistics/comp/comp.scss index 48d46f3..1c89859 100644 --- a/pages/tabbar/statistics/comp/comp.scss +++ b/pages/tabbar/statistics/comp/comp.scss @@ -31,6 +31,7 @@ .tag { min-width: 112rpx; height: 44rpx; + padding: 0 20rpx; background: #82AFDD; border-radius: 22rpx; font-size: 20rpx; diff --git a/pages/tabbar/statistics/comp/examinCoach.vue b/pages/tabbar/statistics/comp/examinCoach.vue index 9f5f17d..a2e8865 100644 --- a/pages/tabbar/statistics/comp/examinCoach.vue +++ b/pages/tabbar/statistics/comp/examinCoach.vue @@ -1,13 +1,13 @@ diff --git a/pages/tabbar/student/index.vue b/pages/tabbar/student/index.vue index c736ac6..8399761 100644 --- a/pages/tabbar/student/index.vue +++ b/pages/tabbar/student/index.vue @@ -89,11 +89,12 @@ :visibleItemCount="4" :closeOnClickOverlay="false" @confirm="confirmDatePicker" - @cancel="showDatePicker=false" + @cancel="cancelDate" + cancelText="不限日期" > - + @@ -142,6 +143,7 @@ this.params.schoolId = this.vuex_schoolId this.studentRecordPageFn() this.studentOwnerFn() + this.schoolClass() }, methods: { searchFn(val) { @@ -153,6 +155,13 @@ this.count = res console.log(res) }, + cancelDate() { + this.showDatePicker=false + this.params.startTime = '' + this.params.endTime = '' + this.screen.timer = '预约时间' + this.listInit() + }, confirmDatePicker(val) { this.showDatePicker = false @@ -182,7 +191,8 @@ }, // 获取班型 async schoolClass() { - const {data: res} = await schoolClass({id: this.vuex_userInfo.shoolId}) + const {data: res} = await schoolClass({id: this.vuex_schoolId,pageNo: 1,pageSize: 100}) + this.classArr = res.list }, listInit() { this.params.pageNo = 1