From 6b0803fefaccbfd15aaa92992b2a14eb18cd329a Mon Sep 17 00:00:00 2001 From: unknown <331404948@qq.com> Date: Thu, 7 Nov 2024 18:56:53 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=91=E4=B8=80=E7=AD=BE=E5=88=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 3 + common/css/app.scss | 7 +- components/searchRow/searchRow.vue | 2 +- config/api.js | 58 +--- config/request.js | 4 +- config/site.config.js | 4 +- config/utils.js | 7 +- manifest.json | 4 +- pages.json | 23 +- pages/indexEntry/enroll/registInfo/registInfo.vue | 2 +- pages/indexEntry/findCoach/comp/coachItem.vue | 2 +- pages/indexEntry/findShcool/findShcool.vue | 24 +- .../findShcool/searchShcool/searchShcool.vue | 2 +- .../findShcool/shcoolDetail/shcoolDetail.vue | 2 +- .../signIn/signAndOut/signAndOutSubjiect1.vue | 373 +++++++++++++++++++++ pages/indexEntry/signIn/signIn.vue | 14 +- pages/indexEntry/webView/webView.vue | 2 +- pages/mineEntry/personaInfo/personaInfo.vue | 6 +- pages/tabbar/index/comp/coachItem.vue | 4 +- pages/tabbar/index/comp/schoolItem.vue | 18 +- pages/tabbar/index/index.vue | 52 +-- pages/tabbar/mine/index.vue | 8 +- pages/userCenter/login/login.vue | 12 +- pages/userCenter/login/new_file.html | 204 +++++++++++ store/modules/user.js | 7 +- 25 files changed, 735 insertions(+), 109 deletions(-) create mode 100644 pages/indexEntry/signIn/signAndOut/signAndOutSubjiect1.vue create mode 100644 pages/userCenter/login/new_file.html diff --git a/App.vue b/App.vue index 32df8d2..b7afa91 100644 --- a/App.vue +++ b/App.vue @@ -23,6 +23,9 @@ @import '@/uni_modules/uview-ui/index.scss'; @import 'common/css/app.scss'; .pageBgImg { + font-size: 28rpx;; + color: #333; + min-height: 100vh; background: url('./static/images/bigImg/topBg.png') #F6F7FA no-repeat; background-size: 100% 278rpx; } diff --git a/common/css/app.scss b/common/css/app.scss index 9ebf5ea..4b5f677 100644 --- a/common/css/app.scss +++ b/common/css/app.scss @@ -40,12 +40,11 @@ view { min-height: 100vh; } .pageBgImg { - font-size: 28rpx;; - color: #333; + // font-size: 28rpx;; + // color: #333; + // min-height: 100vh; // background: url('https://jiangxijiakao-1.oss-cn-hangzhou.aliyuncs.com/complain/2024-03-18/1710759177684-0') #F6F7FA no-repeat; // background-size: 100% 278rpx; - - min-height: 100vh; } .starBox { diff --git a/components/searchRow/searchRow.vue b/components/searchRow/searchRow.vue index 38e8eca..1db2458 100644 --- a/components/searchRow/searchRow.vue +++ b/components/searchRow/searchRow.vue @@ -7,7 +7,7 @@ {{ placeholder }} - + diff --git a/config/api.js b/config/api.js index a370c7c..f7d9be4 100644 --- a/config/api.js +++ b/config/api.js @@ -14,13 +14,7 @@ export const getUserInfo = (data) => http.post('member/user/get', {header: {'con export const logOut = (data={}) => http.post('member/auth/logout', data, {custom: {catch: true, toast: false }}) // 驾校列表分页 export const schoolPage = (params) => http.get('business/school/page', {params: params}) -// 附近场地 -// export const getexamSite = (params) => http.get('business/school/getexamSite', {params: params}) -// 考场详情 -// export const getExamSiteDatil = (params) => http.get('business/school/getExamSiteDatil', {params: params}) -// 考场资讯 -// export const getExamSiteInfo = (params) => http.get('business/school/getExamSiteInfo', {params: params}) -// 创建驾校评价 + export const addSchoolComment = (data={}) => http.post('business/appcomplain/addSchoolComment', data,) // 创建教练评价 export const addCoachComment = (data={}) => http.post('business/appcomplain/addCoachComment', data,) @@ -38,24 +32,6 @@ export const getSchoolDetail = (params) => http.get('business/school/getSchool', export const schoolClass = (params) => http.get('business/school-class/page', {params: params}) // 教练列表分页 export const coachPage = (params) => http.get('business/coach/page', {params: params}) -// 公益视频 -// export const publicVideoPage = (params) => http.get('business/video/page', {params: params}) -// 公益视频 详情 -// export const publicGetvideo = (params) => http.get('business/video/getvideo', {params: params}) -// 公益视频点赞 -// export const createUpvote = (data) => http.post('business/contentdata/createUpvote', data) -// 公益视频取消点赞 upvoteId -// export const deleteUpvote = (data) => http.delete(`/business/contentdata/deleteUpvote?upvoteId=${data.upvoteId}&mobile=${data.mobile}`) -// 公益视频收藏 -// export const createCollect = (data) => http.post('business/contentdata/createCollect', data) -// 公益视频取消收藏 CollectId -// export const deleteRetransmission = (data) => http.delete(`business/contentdata/deleteCollect?collectId=${data.CollectId}&mobile=${data.mobile}`) -// 公益视频分享 -// export const createRetransmission = (data) => http.post('business/contentdata/createRetransmission', data) -// 公益视频是否点赞收藏 -// export const getlikesCollection = (params) => http.get('business/users/getContent', {params: params}) -// 公益视频我的收藏 -// export const getcollectVideo = (params) => http.get('business/users/getcollectVideo', {params: params}) // 行业资讯, export const getarticleList = (params) => http.get('business/video/article', {params: params}) // 行业政策 @@ -88,32 +64,12 @@ export const getpersonface = (params) => http.get('app/student-record/getpersonf export const GetDetectInfoEnhanced = (params) => http.get('app/student-record/GetDetectInfoEnhanced', {params}) // 证件类型获取 export const getCardType = (params) => http.get('system/dict/cardType', {params}) -// // 获得合同信息 -// export const getContract = (params) => http.get('business/contract/get', {params}) -// // 创建合同信息 -// export const contractCreate = (data) => http.post('business/contract/create', data) -// // 获取驾校的合同 -// export const getSchoolContract = (params) => http.get('business/contract/getSchoolContract', {params}) // 我的合同 export const selectContractPdfBase64 = (params) => http.get('business/contract/selectContractPdfBase64', {params}) // 获取合同链接 export const getSignContract = (data) => http.post('business/contract/signContract', data) // 查询学员合同签署状态 export const getContractStatus = (params) => http.get('business/contract/getContractStatus', {params}) -// 1获得模拟预约点 -// export const simulationPoint = (params) => http.get('business/booking/simulation-point/page', {params}) -// 2获得模拟器排课 -// export const simulationClass = (params) => http.get('business/booking/simulation-class/get', {params}) -// 3获得模拟器 -// export const simulationDevices = (params) => http.get('business/booking/simulation-devices/list', {params}) -// 4创建模拟预约 -// export const simulationCreate = (data) => http.post('business/booking/simulation-record/create', data) -// 5获得模拟预约记录 -// export const simulationPage = (params) => http.get('business/booking/simulation-record/page', {params}) -// 6获得模拟详情 -// export const simulationDetail = (params) => http.get('business/booking/simulation-record/get', {params}) -// 7取消模拟预约 -// export const cancelSimulationDevice = (params) => http.put('business/booking/simulation-record/cancelSimulation?id='+ params.id,) // 1获得考场 export const examSitePage = (params) => http.get('business/exam-site/list', {params}) // 2获得车辆 @@ -204,14 +160,26 @@ export const vailStudentInfo = (data) => http.post('business/coach/sign/vailStud export const signOutAuth = (data) => http.post('business/student/sign/outAuth', data) // 签退 export const signOut = (data) => http.post('business/student/sign/out', data) +// 学员扫码签到前置校验——理科 +export const vailStudentSignSubject1 = (data) => http.post('business/student/theorySign/before_in', data) +// 学员扫码签退前置校验——理科 +export const vailStudentSignOutSubject1 = (data) => http.post('business/student/theorySign/before_out', data) +// 学员扫码签到—理科 +export const theorySignSubject1 = (data) => http.post('business/student/theorySign/in', data) +// 学员扫码签退 -- 签退不做人脸—理科 +export const theorySignOutSubject1 = (data) => http.post('business/student/theorySign/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 monthSignRecordSubjiect1 = (data) => http.post('business/student/theorySign/monthSignRecord', data) // 学员扫码签到记录 -- 按天查询 export const signDetail = (data) => http.post('business/student/sign/signDetail', data) +// 学员扫码签到记录 -- 按天查询-理科 +export const signDetailSubjiect1 = (data) => http.post('business/student/theorySign/signDetail', data) // 学时确认 export const periodConfirm = (data) => http.post('app/student-process/periodConfirm', data) // 获得学员动态 diff --git a/config/request.js b/config/request.js index cce8b88..e242b80 100644 --- a/config/request.js +++ b/config/request.js @@ -51,8 +51,8 @@ module.exports = (vm) => { // 响应拦截 uni.$u.http.interceptors.response.use(async (response) => { /* 对响应成功做点什么 可使用async await 做异步操作*/ const data = response.data - // console.log('请求结果') - // console.log(data) + console.log('请求结果') + console.log(data) if(data.code==406&&response.config.url!='member/auth/refresh-token'&&response.config.url!=='member/auth/logout') { await refreshToken() let obj = response.config diff --git a/config/site.config.js b/config/site.config.js index c988e84..39ae6b4 100644 --- a/config/site.config.js +++ b/config/site.config.js @@ -2,14 +2,14 @@ const VUE_APP_PLATFORM = process.env.VUE_APP_PLATFORM; // localIp = false module.exports = { H5_API: VUE_APP_PLATFORM === 'h5' ? '/api' : '',//h5代理 - WX_API: VUE_APP_PLATFORM === 'h5' ? '/' : 'http://www.lyjppt.com/',//非代理地址 不要忘记加/ + WX_API: VUE_APP_PLATFORM === 'h5' ? '/' : 'http://192.168.1.106:8318/',//非代理地址 不要忘记加/ website: 'http://192.168.1.37', httpPrefix: 'app-api/', imgUrl: 'https://jiangxijiakao-1.oss-cn-hangzhou.aliyuncs.com/defaultImages/app/bigImg/', // 支付测试地址 // preUrl: 'https://u8wbs.zyebank.cn/cem_ysb_u6/index.html', // preUrl: 'https://u8wbs.zyebank.cn/cem_ysb_u8/index.html', - // 生产地址 + // 支付生产地址 preUrl: 'https://zmcht.zybank.com.cn/cem_ysb/index.html', }; diff --git a/config/utils.js b/config/utils.js index c26fe56..e285081 100644 --- a/config/utils.js +++ b/config/utils.js @@ -201,10 +201,15 @@ export function uploadImgApi(filePath, imgName, imgLink='image') { _this.$store.commit('updateSchool', item) } _this.$u.utils.clickSignUp() - }else { + }else if(obj.QrType==2||obj.QrType==3){ // 签到的 _this.$store.commit('upDateSchoolCoach', item) _this.$goPage('/pages/indexEntry/signIn/signAndOut/signAndOut') + }else if(obj.QrType==4||obj.QrType==5){ + // 签到的 + console.log('没来这里?') + _this.$store.commit('upDateSchoolCoach', item) + _this.$goPage('/pages/indexEntry/signIn/signAndOut/signAndOutSubjiect1') } }else { _this.$store.commit('updateWebVeiwUrl', res.result) diff --git a/manifest.json b/manifest.json index 917a64f..58b3f00 100644 --- a/manifest.json +++ b/manifest.json @@ -2,8 +2,8 @@ "name" : "洛阳学车", "appid" : "__UNI__3347C6E", "description" : "", - "versionName" : "1.4.4", - "versionCode" : 144, + "versionName" : "1.4.5", + "versionCode" : 145, "transformPx" : false, /* 5+App特有相关 */ "app-plus" : { diff --git a/pages.json b/pages.json index 0594a02..9a09d99 100644 --- a/pages.json +++ b/pages.json @@ -5,8 +5,7 @@ "style": { "navigationBarTitleText": "首页", "navigationStyle": "custom", - "enablePullDownRefresh": true, - "backgroundTextStyle": "dark" + "enablePullDownRefresh": true } }, { @@ -14,8 +13,7 @@ "style": { "navigationBarTitleText": "", "navigationStyle": "custom", - "enablePullDownRefresh": true, - "backgroundTextStyle": "dark" + "enablePullDownRefresh": true } }, { @@ -23,8 +21,7 @@ "style": { "navigationBarTitleText": "", "navigationStyle": "custom", - "enablePullDownRefresh": true, - "backgroundTextStyle": "dark" + "enablePullDownRefresh": true } } @@ -44,9 +41,18 @@ } }, { + "path": "signIn/signAndOut/signAndOutSubjiect1", + "style": { + "navigationBarTitleText": "理论签到/签退确认", + "enablePullDownRefresh": false, + "backgroundTextStyle": "dark" + } + }, + + { "path": "signIn/signAndOut/signAndOut", "style": { - "navigationBarTitleText": "签到/签退确认", + "navigationBarTitleText": "实操签到/签退确认", "enablePullDownRefresh": false, "backgroundTextStyle": "dark" } @@ -560,7 +566,8 @@ "navigationBarTextStyle": "black", "navigationBarTitleText": "", "navigationBarBackgroundColor": "#F6F7FA", - "backgroundColor": "#F6F7FA" + "backgroundColor": "#F6F7FA", + "lazyload": true }, "uniIdRouter": {}, "tabBar": { diff --git a/pages/indexEntry/enroll/registInfo/registInfo.vue b/pages/indexEntry/enroll/registInfo/registInfo.vue index dda7507..c636f9b 100644 --- a/pages/indexEntry/enroll/registInfo/registInfo.vue +++ b/pages/indexEntry/enroll/registInfo/registInfo.vue @@ -614,7 +614,7 @@ }, async comfigClick(val) { - console.log(val) + console.log(this.form) this.showPopup = false if(!val) return false let obj = Object.assign({},this.form) diff --git a/pages/indexEntry/findCoach/comp/coachItem.vue b/pages/indexEntry/findCoach/comp/coachItem.vue index f794527..5c9dbc9 100644 --- a/pages/indexEntry/findCoach/comp/coachItem.vue +++ b/pages/indexEntry/findCoach/comp/coachItem.vue @@ -1,7 +1,7 @@