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 @@
+
+
+
+
+
+ 2032.08
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.week }}
+ {{ item.num }}
+
+
+
+
+
+
+
+
+
+
+
+
+ 上午
+
+
+ 已过期
+ 已约满
+ 可预约
+ {{ item.timer }}
+
+
+ 下午
+
+
+ 已过期
+ 已约满
+ 可预约
+ {{ item.timer }}
+
+
+
+
+
+
+
+
+
+
+
\ 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 @@
-
-
-
-
- 2032.08
-
-
-
-
-
-
-
-
-
-
- {{ item.week }}
- {{ item.num }}
-
-
-
-
-
-
+
+
+
+ 某某模拟驾驶馆
+ 江西省江西市江西区尚坤丁兰国际1190
+
+
+
+
-
-
-
- 上午
-
-
- 已过期
- 06:00-07:00
-
-
- 已约满
- 06:00-07:00
-
-
- 可预约
- 06:00-07:00
-
-
- 下午
-
-
- 已过期
- 06:00-07:00
-
-
- 已约满
- 06:00-07:00
-
-
- 可预约
- 06:00-07:00
-
-
+
+
+ 下一步
-
- 下一步
\ 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 @@
-
-
- {{ item.text }}
-
+ C1小型汽车手动挡
+
+
+ C2小型汽车自动挡
-
返回上一步
下一步
@@ -18,15 +17,14 @@
export default {
data() {
return {
- list: [{
- text: '科目二',
- id: 2
- },
- {
- text: '科目三',
- id: 3
- },
+ dateArr: [
+ {week: '一', num: '08'},
+ {week: '二', num: '09'},
+ {week: '三', num: '10'},
+ {week: '四', num: '11'},
+ {week: '五', num: '12'},
],
+ show: true
}
},
methods: {
@@ -38,34 +36,27 @@
\ No newline at end of file
diff --git a/pages/carEntry/examineAppointment/comp/step3.vue b/pages/carEntry/examineAppointment/comp/step3.vue
index 19ea45a..7c42326 100644
--- a/pages/carEntry/examineAppointment/comp/step3.vue
+++ b/pages/carEntry/examineAppointment/comp/step3.vue
@@ -1,26 +1,42 @@
-
-
-
- 某某模拟驾驶馆
- 江西省江西市江西区尚坤丁兰国际1190
-
-
-
-
+
+
+
+
+ {{index+1}}号车
+ {{ item.text }}
+
-
-
- 返回上一步
- 下一步
-
+
+
+ 返回上一步
+ 下一步
+
\ No newline at end of file
diff --git a/pages/carEntry/examineAppointment/comp/step4.vue b/pages/carEntry/examineAppointment/comp/step4.vue
index 0da6d83..0c25941 100644
--- a/pages/carEntry/examineAppointment/comp/step4.vue
+++ b/pages/carEntry/examineAppointment/comp/step4.vue
@@ -1,15 +1,48 @@
-
- C1小型汽车手动挡
-
-
- C2小型汽车自动挡
-
-
+
+
+
+
返回上一步
- 下一步
+ 确认预约
+
+
+
+
@@ -17,14 +50,8 @@
export default {
data() {
return {
- dateArr: [
- {week: '一', num: '08'},
- {week: '二', num: '09'},
- {week: '三', num: '10'},
- {week: '四', num: '11'},
- {week: '五', num: '12'},
- ],
- show: true
+
+ show: false
}
},
methods: {
@@ -37,26 +64,90 @@
\ No newline at end of file
diff --git a/pages/carEntry/examineAppointment/comp/step5.vue b/pages/carEntry/examineAppointment/comp/step5.vue
deleted file mode 100644
index 9faeb85..0000000
--- a/pages/carEntry/examineAppointment/comp/step5.vue
+++ /dev/null
@@ -1,177 +0,0 @@
-
-
-
-
-
- {{index+1}}号车
- {{ item.text }}
-
-
-
-
-
- 返回上一步
- 确认预约
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pages/carEntry/examineAppointment/comp/选择科目备份.vue b/pages/carEntry/examineAppointment/comp/选择科目备份.vue
new file mode 100644
index 0000000..3d8febd
--- /dev/null
+++ b/pages/carEntry/examineAppointment/comp/选择科目备份.vue
@@ -0,0 +1,86 @@
+
+
+
+
+
+ {{ item.text }}
+
+
+
+
+ 返回上一步
+ 下一步
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/carEntry/examineAppointment/examineAppointment.vue b/pages/carEntry/examineAppointment/examineAppointment.vue
index 8b17d27..fb3a0f9 100644
--- a/pages/carEntry/examineAppointment/examineAppointment.vue
+++ b/pages/carEntry/examineAppointment/examineAppointment.vue
@@ -19,17 +19,17 @@
4
-
+
- 选择时间
- 选择科目
+
选择考场
选择车型
选择车辆
+ 选择时间
@@ -37,7 +37,7 @@
-
+
@@ -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 @@
-
-
-
- 2032.08
-
-
-
-
-
-
-
-
-
-
- {{ item.week }}
- {{ item.num }}
-
-
-
-
-
-
-
-
-
-
- 上午
-
-
- 已过期
- 06:00-07:00
-
-
- 已约满
- 06:00-07:00
-
-
- 可预约
- 06:00-07:00
-
-
- 下午
-
-
- 已过期
- 06:00-07:00
-
-
- 已约满
- 06:00-07:00
-
-
- 可预约
- 06:00-07:00
-
-
-
-
+
diff --git a/pages/carEntry/simulateAppointment/comp/step1.vue b/pages/carEntry/simulateAppointment/comp/step1.vue
index eba39fc..aa79498 100644
--- a/pages/carEntry/simulateAppointment/comp/step1.vue
+++ b/pages/carEntry/simulateAppointment/comp/step1.vue
@@ -79,8 +79,6 @@
const startDate = new Date('2023-09-06');
const endDate = new Date();
this.dateArr = getDates(startDate, endDate);
-
-
},
methods: {
// 选择时间
@@ -224,7 +222,7 @@
color: $themC;
}
&.disable {
- opacity: 0.5;
+ opacity: 0.4;
}
.lab {
font-size: 28rpx;
diff --git a/pages/indexEntry/enroll/registInfo/chooseCoach/chooseCoach.vue b/pages/indexEntry/enroll/registInfo/chooseCoach/chooseCoach.vue
index f1921d8..eb3820c 100644
--- a/pages/indexEntry/enroll/registInfo/chooseCoach/chooseCoach.vue
+++ b/pages/indexEntry/enroll/registInfo/chooseCoach/chooseCoach.vue
@@ -2,14 +2,14 @@
-
+
- {{item.coachName}}
- {{item.mobilePhone}}
+ {{item.name}}
+ {{item.mobile}}
@@ -17,55 +17,54 @@
@@ -64,7 +82,6 @@
.ul {
width: 100%;
padding: 0 20rpx;
-
.li {
width: 100%;
display: flex;
diff --git a/pages/indexEntry/enroll/registInfo/registInfo.vue b/pages/indexEntry/enroll/registInfo/registInfo.vue
index 4006408..4075024 100644
--- a/pages/indexEntry/enroll/registInfo/registInfo.vue
+++ b/pages/indexEntry/enroll/registInfo/registInfo.vue
@@ -56,7 +56,7 @@
选择教练
-
+
@@ -310,18 +310,7 @@
{label: '科目三', id: 3},
]
],
- columnsCar: [
- [
- {
- label: 'C1',
- id: 1
- },
- {
- label: 'C2',
- id: 2
- }
- ]
- ],
+ columnsCar: [],
form: {
school: '',
classModel: '',
@@ -342,16 +331,18 @@
}
},
onLoad() {
- this.$on('upDateCoachItem',(item)=>{
+ uni.$on('upDateCoachItem',(item)=>{
console.log(item)
- this.form.coach = item.coachName
+ this.form.coach = item.name
})
},
methods: {
// 选择驾校
chooseSchool(item) {
- this.form.school = item.schoolName
- console.log(item)
+ this.form.school = item.name
+ this.form.schoolId = item.id
+ this.columnsCar = [item.businessScope.split(',')]
+ console.log(this.columnsCar)
this.showSchool = false
},
// 选择班型
@@ -366,7 +357,12 @@
let item = val.value[0]
console.log(item)
this.showCar = false
- this.form.car = item.label
+ this.form.car = item
+ },
+ // 跳转到选择教练
+ goCoach() {
+ if(!this.form.schoolId) return this.$u.toast('请先选择驾校')
+ this.$goPage('/pages/indexEntry/enroll/registInfo/chooseCoach/chooseCoach?schoolId=' + this.form.schoolId)
},
// 选择原驾驶证初领日期
confirmFirstLicenceTime(val) {
diff --git a/pages/indexEntry/findShcool/shcoolDetail/shcoolDetail.vue b/pages/indexEntry/findShcool/shcoolDetail/shcoolDetail.vue
index f4f0ef6..2213162 100644
--- a/pages/indexEntry/findShcool/shcoolDetail/shcoolDetail.vue
+++ b/pages/indexEntry/findShcool/shcoolDetail/shcoolDetail.vue
@@ -97,6 +97,8 @@
},
onReachBottom() {
if(this.currentNav==3&&this.coachList.length
import videoItem from './comp/videoItem'
+ import { publicVideoPage } from '@/config/api.js'
export default {
- components: { videoItem }
+ components: { videoItem },
+ data() {
+ return {
+ pageNo: 1,
+ pageSize: 20,
+ }
+ },
+ onLoad() {
+ this.publicVideoPageFn()
+ },
+ methods: {
+ async publicVideoPageFn() {
+ const {data: res} = await publicVideoPage(this.params)
+ }
+ }
}
diff --git a/pages/mineEntry/carData/carData.vue b/pages/mineEntry/carData/carData.vue
index 6d04aba..958d3d5 100644
--- a/pages/mineEntry/carData/carData.vue
+++ b/pages/mineEntry/carData/carData.vue
@@ -1,5 +1,5 @@
-
+
@@ -84,7 +84,7 @@
@@ -98,6 +98,7 @@
components: { ringChart, columnChart },
data() {
return {
+ shareImageUrl: ''
}
},
onReady() {
@@ -112,6 +113,7 @@