From 5ea3b7d7995d6c57ec9668335d5136bbe03ca73d Mon Sep 17 00:00:00 2001 From: unknown <331404948@qq.com> Date: Fri, 19 Jan 2024 18:55:02 +0800 Subject: [PATCH] 00 --- common/js/uniExport.js | 1 - common/js/utils.js | 33 ++++- config/api.js | 3 + config/request.js | 2 +- .../examineAppointment/examineAppointment.vue | 4 +- .../simulateAppointment/simulateAppointment.vue | 10 +- .../enroll/registInfo/comp/comfigPopup.vue | 2 +- pages/indexEntry/enroll/registInfo/registInfo.vue | 24 +-- pages/indexEntry/findShcool/findShcool.vue | 20 ++- .../findShcool/shcoolDetail/comp/tab1.vue | 5 +- .../findShcool/shcoolDetail/comp/tab3.vue | 2 +- pages/mineEntry/myAppointment/myAppointment.vue | 5 +- pages/mineEntry/myForecastName/myForecastName.vue | 33 +++-- pages/mineEntry/myOrder/myOrder.vue | 7 +- pages/tabbar/index/index.vue | 16 +- pages/tabbar/learnCar/comp/subject3.vue | 6 +- pages/tabbar/learnCar/index - 副本.vue | 165 --------------------- pages/tabbar/learnCar/index.vue | 18 ++- pages/userCenter/login/login.vue | 2 + 19 files changed, 116 insertions(+), 242 deletions(-) delete mode 100644 pages/tabbar/learnCar/index - 副本.vue diff --git a/common/js/uniExport.js b/common/js/uniExport.js index 9f30b6a..7a11352 100644 --- a/common/js/uniExport.js +++ b/common/js/uniExport.js @@ -1,4 +1,3 @@ - export let goPage = (url, params={}, type='navigateTo')=> { uni.$u.route({ url, diff --git a/common/js/utils.js b/common/js/utils.js index e8816df..715f7ed 100644 --- a/common/js/utils.js +++ b/common/js/utils.js @@ -12,7 +12,7 @@ const install = (Vue, vm) => { // 距离换算 const distanceFn = (val) => { - if(!val) return + if(!val) return 0 if (val * 1 < 1000) { return val.toFixed(2) + '米' } else { @@ -107,8 +107,34 @@ const install = (Vue, vm) => { if (text.length > maxLength) { return text.substring(0, maxLength) + "..."; } - return text; + return text } + let goPage = (url, params={}, type='navigateTo')=> { + uni.$u.route({ + url, + params, + type + }) + } + + let clickSignUp = ()=> { + let accessToken = store.state.user.vuex_loginInfo.accessToken + if(!accessToken) { + store.commit('goLogin') + return + } + store.commit('updateNonPlatformStudent', false) + + if( vm.vuex_userInfo.applyStep<2) { + vm.$goPage('/pages/indexEntry/enroll/enroll') + } + // 去填表 + if( vm.vuex_userInfo.applyStep&& vm.vuex_userInfo.applyStep<5) { + return vm.$goPage('/pages/indexEntry/enroll/registInfo/registInfo') + } + } + + @@ -120,7 +146,8 @@ const install = (Vue, vm) => { distanceFn, getDate, callPhone, - truncateText + truncateText, + clickSignUp } } diff --git a/config/api.js b/config/api.js index 30c8ecf..6215ae8 100644 --- a/config/api.js +++ b/config/api.js @@ -168,6 +168,9 @@ export const getDriveProcessDetails = (params={}) => http.get('app/student-recor export const getStudentProcess = (params={}) => http.get('app/student-process/getStudentProcess', {params}) // 获得预报名记录列表 export const trainingApplyList = (params={}) => http.get('app/training-apply/list', {params}) +// 删除预报名记录 +export const trainingApplyDelete = (params={}) => http.delete('app/training-apply/delete?id='+params.id, ) + diff --git a/config/request.js b/config/request.js index a952e1d..ef8a7e3 100644 --- a/config/request.js +++ b/config/request.js @@ -16,7 +16,7 @@ module.exports = (vm) => { config.baseURL = H5_API+ WX_API + prefix; /* 根域名 */ console.log(config.baseURL) // config.header['content-type'] = 'application/x-www-form-urlencoded; charset=UTF-8' - config.header['tenant-id'] = '1704459882232553474' + // config.header['tenant-id'] = '1704459882232553474' // config.header['tenant-id'] = vm.$store.state.user.vuex_userInfo.tenantId || '1704459882232553474' return config }) diff --git a/pages/carEntry/examineAppointment/examineAppointment.vue b/pages/carEntry/examineAppointment/examineAppointment.vue index 52e5d9c..9ad1676 100644 --- a/pages/carEntry/examineAppointment/examineAppointment.vue +++ b/pages/carEntry/examineAppointment/examineAppointment.vue @@ -1,6 +1,6 @@ - - diff --git a/pages/tabbar/learnCar/index.vue b/pages/tabbar/learnCar/index.vue index 88d73f5..08aaa0f 100644 --- a/pages/tabbar/learnCar/index.vue +++ b/pages/tabbar/learnCar/index.vue @@ -1,5 +1,6 @@ @@ -69,7 +75,7 @@ }, onShow() { // console.log('没发生?') - this.$store.dispatch('checkLogin') + // this.$store.dispatch('checkLogin') }, methods: { changeNav(id) { diff --git a/pages/userCenter/login/login.vue b/pages/userCenter/login/login.vue index cf9d29b..f63e4eb 100644 --- a/pages/userCenter/login/login.vue +++ b/pages/userCenter/login/login.vue @@ -4,7 +4,9 @@ + 手机号快捷登录 + 手机号登录/注册