From 66570b7db3e6c425479ad502086757bc82fe2cfe Mon Sep 17 00:00:00 2001 From: unknown <331404948@qq.com> Date: Fri, 22 Mar 2024 19:04:12 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AD=BE=E5=88=B0=E6=97=A5=E5=8E=86=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/js/mixins.js | 4 ++ config/api.js | 6 +++ config/utils.js | 9 +++- pages/carEntry/evaluate/evaluate.vue | 6 ++- pages/carEntry/signature/signature.vue | 7 +-- pages/indexEntry/enroll/registInfo/registInfo.vue | 9 ++++ .../findShcool/coachComment/coachInfo.vue | 1 + .../findShcool/shcoolDetail/comp/tab1.vue | 1 + .../findShcool/shcoolDetail/comp/tab3.vue | 1 + pages/indexEntry/signIn/signIn.vue | 53 ++++++++++++---------- pages/mineEntry/myAppointment/comp/comp.scss | 4 ++ pages/mineEntry/myAppointment/comp/opera.vue | 7 +-- pages/mineEntry/myAppointment/myAppointment.vue | 2 +- pages/tabbar/index/index.vue | 3 +- pages/tabbar/learnCar/comp/topInfo.vue | 3 +- store/modules/school.js | 9 ++-- .../components/zeng-calen/zeng-calen.vue | 6 +++ 17 files changed, 88 insertions(+), 43 deletions(-) diff --git a/common/js/mixins.js b/common/js/mixins.js index da2da5e..592ccec 100644 --- a/common/js/mixins.js +++ b/common/js/mixins.js @@ -20,6 +20,10 @@ export default { setTimeout(()=>{ uni.stopPullDownRefresh() },1500) + let token = this.$store.state.user.vuex_loginInfo.accessToken + if(token) { + this.$store.dispatch('getCity') + } }, } \ No newline at end of file diff --git a/config/api.js b/config/api.js index ba4da0c..ffd418e 100644 --- a/config/api.js +++ b/config/api.js @@ -208,6 +208,12 @@ export const signOut = (data) => http.post('business/student/sign/out', data) export const getStudentByPayment = (params={}) => http.get('app/student-record/getStudentByPayment', {params}) // 补签 export const reSignOut = (data) => http.post('business/student/sign/reSignOut', data) +// 学员扫码签到记录 -- 按月查询 +export const monthSignRecord = (data) => http.post('business/student/sign/monthSignRecord', data) +// 学员扫码签到记录 -- 按天查询 +export const signDetail = (data) => http.post('business/student/sign/signDetail', data) + + diff --git a/config/utils.js b/config/utils.js index 361f01f..a0a2039 100644 --- a/config/utils.js +++ b/config/utils.js @@ -186,8 +186,15 @@ export function uploadImgApi(filePath, imgName) { console.log('***********') console.log(item) _this.$store.commit('upDateSchoolClass', {}) - _this.$store.commit('upDateSchoolCoach', item) if(obj.QrType==1) { + // 判断是扫教练码来的还是驾校码来的 + if(item.id) { + _this.$store.commit('updateSchool', {}) + _this.$store.commit('upDateSchoolCoach', item) + }else { + _this.$store.commit('upDateSchoolCoach', {}) + _this.$store.commit('updateSchool', item) + } _this.$u.utils.clickSignUp() }else { // 签到的 diff --git a/pages/carEntry/evaluate/evaluate.vue b/pages/carEntry/evaluate/evaluate.vue index 7548c06..284bb4c 100644 --- a/pages/carEntry/evaluate/evaluate.vue +++ b/pages/carEntry/evaluate/evaluate.vue @@ -82,7 +82,8 @@ import school from '../../../store/modules/school' "anonymity": 2, "userId": 0, imgArr: [], - coachType: this.coachType + photoPath: this.vuex_userInfo.schoolPhoto, + coachType: 1 } this.coachInfo = { tit: '您对教练满意吗?', @@ -104,7 +105,8 @@ import school from '../../../store/modules/school' "userId": 0, coachName: '', imgArr: [], - coachType: this.coachType + photoPath: this.vuex_userInfo.coachPhoto, + coachType: 1 } if(this.tit=='模拟器老师') { this.coachInfo.tit = '您对模拟器老师满意吗?' diff --git a/pages/carEntry/signature/signature.vue b/pages/carEntry/signature/signature.vue index 9ba0692..ab32802 100644 --- a/pages/carEntry/signature/signature.vue +++ b/pages/carEntry/signature/signature.vue @@ -26,6 +26,7 @@