From 2348bc6c96c3f133252ad49d5e265287faab78ca Mon Sep 17 00:00:00 2001 From: unknown <331404948@qq.com> Date: Fri, 22 Sep 2023 19:31:29 +0800 Subject: [PATCH] 00 --- common/js/utils.js | 11 +- components/pickDateTimer/pickDateTimer.vue | 248 +++++++++++++++++++++ config/api.js | 2 + config/request.js | 5 +- config/site.config.js | 2 +- pages/carEntry/examineAppointment/comp/step1.vue | 225 ++++--------------- pages/carEntry/examineAppointment/comp/step2.vue | 59 +++-- pages/carEntry/examineAppointment/comp/step3.vue | 113 +++++----- pages/carEntry/examineAppointment/comp/step4.vue | 153 ++++++++++--- pages/carEntry/examineAppointment/comp/step5.vue | 177 --------------- .../examineAppointment/comp/选择科目备份.vue | 86 +++++++ .../examineAppointment/examineAppointment.vue | 14 +- pages/carEntry/operaAppointment/comp/step4.vue | 59 +---- pages/carEntry/simulateAppointment/comp/step1.vue | 4 +- .../enroll/registInfo/chooseCoach/chooseCoach.vue | 55 +++-- .../enroll/registInfo/comp/searchSchool.vue | 33 ++- pages/indexEntry/enroll/registInfo/registInfo.vue | 32 ++- .../findShcool/shcoolDetail/shcoolDetail.vue | 2 + pages/indexEntry/publicVideo/publicVideo.vue | 17 +- pages/mineEntry/carData/carData.vue | 6 +- pages/tabbar/index/index.vue | 4 +- pages/tabbar/learnCar/index.vue | 4 +- 22 files changed, 703 insertions(+), 608 deletions(-) create mode 100644 components/pickDateTimer/pickDateTimer.vue delete mode 100644 pages/carEntry/examineAppointment/comp/step5.vue create mode 100644 pages/carEntry/examineAppointment/comp/选择科目备份.vue diff --git a/common/js/utils.js b/common/js/utils.js index 220fbde..e8b20d9 100644 --- a/common/js/utils.js +++ b/common/js/utils.js @@ -100,7 +100,13 @@ const install = (Vue, vm) => { }); } - + let truncateText = (text, maxLength)=> { + if(!text) return + if (text.length > maxLength) { + return text.substring(0, maxLength) + "..."; + } + return text; + } @@ -111,7 +117,8 @@ const install = (Vue, vm) => { distanceLatLng, distanceFn, getDate, - callPhone + callPhone, + truncateText } } diff --git a/components/pickDateTimer/pickDateTimer.vue b/components/pickDateTimer/pickDateTimer.vue new file mode 100644 index 0000000..f15f7af --- /dev/null +++ b/components/pickDateTimer/pickDateTimer.vue @@ -0,0 +1,248 @@ + + + + + \ No newline at end of file diff --git a/config/api.js b/config/api.js index 016d73b..fc673f4 100644 --- a/config/api.js +++ b/config/api.js @@ -16,6 +16,8 @@ export const logOut = (data={}) => http.post('member/auth/logout', data, { custo export const schoolPage = (params) => http.get('business/school/page', {params: params}) // 教练列表分页 export const coachPage = (params) => http.get('business/coach/page', {params: params}) +// 公益视频 +export const publicVideoPage = (params) => http.get('business/public-video/page', {params: params}) diff --git a/config/request.js b/config/request.js index 6ee202b..77fe272 100644 --- a/config/request.js +++ b/config/request.js @@ -1,6 +1,5 @@ -import { H5_API, WX_API } from './site.config.js' -import { refreshToken } from '@/config/api.js' +import { H5_API, WX_API,httpPrefix } from './site.config.js' import { checkToken } from './utils' @@ -12,7 +11,7 @@ import { checkToken } from './utils' module.exports = (vm) => { // 初始化请求配置 uni.$u.http.setConfig((config) => { - let prefix = config.prefix?config.prefix:'app-api/' + let prefix = config.prefix?config.prefix: httpPrefix /* config 为默认全局配置*/ config.baseURL = H5_API+ WX_API + prefix; /* 根域名 */ console.log(config.baseURL) diff --git a/config/site.config.js b/config/site.config.js index c63f5cb..feedc97 100644 --- a/config/site.config.js +++ b/config/site.config.js @@ -4,5 +4,5 @@ module.exports = { H5_API: VUE_APP_PLATFORM === 'h5' ? '/api' : '',//h5代理 WX_API: VUE_APP_PLATFORM === 'h5' ? '' : 'http://192.168.1.26:48080/',//非代理地址 TEMP_HOST: VUE_APP_PLATFORM === 'h5' ? '' : 'http://192.168.1.26:48080/', - + httpPrefix: '/app-api/' }; diff --git a/pages/carEntry/examineAppointment/comp/step1.vue b/pages/carEntry/examineAppointment/comp/step1.vue index 89ed4fb..e618893 100644 --- a/pages/carEntry/examineAppointment/comp/step1.vue +++ b/pages/carEntry/examineAppointment/comp/step1.vue @@ -1,82 +1,25 @@ \ No newline at end of file diff --git a/pages/carEntry/examineAppointment/comp/step2.vue b/pages/carEntry/examineAppointment/comp/step2.vue index 3d8febd..71f6d7d 100644 --- a/pages/carEntry/examineAppointment/comp/step2.vue +++ b/pages/carEntry/examineAppointment/comp/step2.vue @@ -1,12 +1,11 @@ @@ -47,9 +47,9 @@ import step2 from './comp/step2' import step3 from './comp/step3' import step4 from './comp/step4' - import step5 from './comp/step5' + // import step5 from './comp/step5' export default { - components: { step1, step2, step3, step4, step5 }, + components: { step1, step2, step3, step4,}, data() { return { currentStep: 1 diff --git a/pages/carEntry/operaAppointment/comp/step4.vue b/pages/carEntry/operaAppointment/comp/step4.vue index e8656d6..e243be2 100644 --- a/pages/carEntry/operaAppointment/comp/step4.vue +++ b/pages/carEntry/operaAppointment/comp/step4.vue @@ -1,64 +1,7 @@