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 @@
-
+
@@ -72,7 +72,7 @@
},
siteList: [],
carList: [],
- carTotal: 20
+ carTotal: 20,
}
},
onLoad(options) {
diff --git a/pages/carEntry/simulateAppointment/simulateAppointment.vue b/pages/carEntry/simulateAppointment/simulateAppointment.vue
index 4cf8d16..ed70926 100644
--- a/pages/carEntry/simulateAppointment/simulateAppointment.vue
+++ b/pages/carEntry/simulateAppointment/simulateAppointment.vue
@@ -34,7 +34,7 @@
import step1 from './comp/step1'
import step2 from './comp/step2'
import step3 from './comp/step3'
- import { simulationDevices, simulationPoint, simulationClass } from '@/config/api.js'
+ import { simulationDevices, simulationPoint, } from '@/config/api.js'
export default {
components: { step1, step2, step3 },
data() {
@@ -71,20 +71,12 @@
choosePoint(item) {
this.FormData.pointName = item.pointName
this.FormData.pointId = item.id
- // this.simulationClassFn()
},
// 模拟点
async simulationPointFn() {
const {data: res} = await simulationPoint({schoolId: this.vuex_userInfo.schoolId,lat: this.vuex_cityInfo.lat,lng: this.vuex_cityInfo.lng})
this.list1 = res
},
- async simulationClassFn() {
- let obj = { "pointId": this.FormData.pointId, "trainType": this.FormData.trainType, "classDate": "2023-11-01", "studentId": this.FormData.studentId}
- const {data: res} = await simulationClass(obj)
- },
- async simulationDevicesFn() {
- const {data: res} = await simulationDevices()
- }
}
}
diff --git a/pages/indexEntry/enroll/registInfo/comp/comfigPopup.vue b/pages/indexEntry/enroll/registInfo/comp/comfigPopup.vue
index 16ebbef..8597297 100644
--- a/pages/indexEntry/enroll/registInfo/comp/comfigPopup.vue
+++ b/pages/indexEntry/enroll/registInfo/comp/comfigPopup.vue
@@ -31,7 +31,7 @@
支付形式
- xxx
+ {{ info.payType==1?'全款':'预付款'}}
待支付金额
diff --git a/pages/indexEntry/enroll/registInfo/registInfo.vue b/pages/indexEntry/enroll/registInfo/registInfo.vue
index 972eecc..47e2736 100644
--- a/pages/indexEntry/enroll/registInfo/registInfo.vue
+++ b/pages/indexEntry/enroll/registInfo/registInfo.vue
@@ -130,7 +130,7 @@
是否异地转入
-
+
来源城市
@@ -178,7 +178,7 @@
-
+
@@ -312,12 +312,12 @@
applyType: 1,
name: '',
oldTrainType: '',//原准驾车型
- subjectPass: '',
- subjectTreat: '',
+ finishSubject: '',//已过科目
+ waitSubject: '',//待学科目
photoPath: '123.png',
address: '',
totalAmount: 0,
- radiovalue2: 2, //是否异地
+ transfer: 2, //是否异地
businessType: 0,
fromArea: '',//异地城市
@@ -433,7 +433,7 @@
},
// 回调参数为包含columnIndex、value、values
confirmCity(e) {
- console.log('confirm', e)
+ console.log('confirm', e)
this.form.fromArea = e.value.map((item)=>{
return item.name
}).join(',').replace(/,/g, '-')
@@ -494,8 +494,12 @@
this.form.school = item.name
this.form.schoolId = item.id
this.columnsCar = [item.businessScope.split(',')]
- console.log('驾校id')
- console.log(item.id)
+ this.form.classModel = ''
+ this.form.schoolClassId = ''
+ this.form.trainType = ''
+ this.form.coach = ''
+ this.form.coachId = ''
+ this.form.totalAmount = ''
this.showSchool = false
this.schoolClassFn()
},
@@ -545,7 +549,7 @@
// 选择已过科目
confirmTreat(val) {
let item = val.value[0]
- this.form.subjectTreat = item.label
+ this.form.waitSubject = item.label
this.showSubjectTreat = false
},
// 扫码
diff --git a/pages/indexEntry/findShcool/findShcool.vue b/pages/indexEntry/findShcool/findShcool.vue
index 97d1404..dba688c 100644
--- a/pages/indexEntry/findShcool/findShcool.vue
+++ b/pages/indexEntry/findShcool/findShcool.vue
@@ -115,7 +115,13 @@
},
// 获取驾校列表
async schoolPageFn() {
- const {data: res} = await schoolPage(this.params)
+ let obj = {}
+ for(let key in this.params) {
+ if(this.params[key]) {
+ obj[key] = this.params[key]
+ }
+ }
+ const {data: res} = await schoolPage(obj)
this.params.pageNo ++
this.listData.push(...res.list)
this.total = res.total
@@ -132,24 +138,25 @@
min-height: 100vh;
background-size: 100% 392rpx;
.searchCon {
- padding: 0 0 24rpx 0;
+ padding: 0 0 14rpx 0;
}
.navBox {
display: flex;
justify-content: space-between;
- padding-bottom: 48rpx;
+ padding-bottom: 30rpx;
.tab {
display: flex;
font-size: 28rpx;
color: #fff;
-
+ height: 80rpx;
+ line-height: 80rpx;
&.active {
position: relative;
&::before {
content: '';
position: absolute;
- bottom: -14rpx;
+ bottom: 6rpx;
left: 50%;
transform: translateX(-50%);
width: 50rpx;
@@ -171,10 +178,11 @@
content: '';
position: absolute;
left: 0;
- top: 10rpx;
+ top: 50%;
width: 1px;
background: #fff;
height: 26rpx;
+ transform: translateY(-50%);
}
.txt {
diff --git a/pages/indexEntry/findShcool/shcoolDetail/comp/tab1.vue b/pages/indexEntry/findShcool/shcoolDetail/comp/tab1.vue
index bf89104..0bf9b4c 100644
--- a/pages/indexEntry/findShcool/shcoolDetail/comp/tab1.vue
+++ b/pages/indexEntry/findShcool/shcoolDetail/comp/tab1.vue
@@ -17,12 +17,9 @@
props: ['classList'],
methods: {
async goSign(item) {
- const res = await this.$store.dispatch('checkLogin')
- if(!res) return
this.$store.commit('upDateSchoolCoach', {})
this.$store.commit('upDateSchoolClass', item)
- this.$goPage('/pages/indexEntry/enroll/enroll')
- // console.log(this.$store.state.school.schoolCoach)
+ this.$u.utils.clickSignUp()
}
}
}
diff --git a/pages/indexEntry/findShcool/shcoolDetail/comp/tab3.vue b/pages/indexEntry/findShcool/shcoolDetail/comp/tab3.vue
index fc4a26b..78acc55 100644
--- a/pages/indexEntry/findShcool/shcoolDetail/comp/tab3.vue
+++ b/pages/indexEntry/findShcool/shcoolDetail/comp/tab3.vue
@@ -45,7 +45,7 @@
goPageSign(item) {
this.$store.commit('upDateSchoolClass', {})
this.$store.commit('upDateSchoolCoach', item)
- this.$goPage('/pages/indexEntry/enroll/enroll')
+ this.$u.utils.clickSignUp()
},
handleImageError(item) {
item.photoPath = require('@/static/images/index/avatar.png')
diff --git a/pages/mineEntry/myAppointment/myAppointment.vue b/pages/mineEntry/myAppointment/myAppointment.vue
index 802c73b..b314e96 100644
--- a/pages/mineEntry/myAppointment/myAppointment.vue
+++ b/pages/mineEntry/myAppointment/myAppointment.vue
@@ -201,6 +201,9 @@
padding: 24rpx 0 40rpx 0;
color: $themC;
.nav {
+ height: 80rpx;
+ line-height: 80rpx;
+ padding: 0 20rpx;
&.active {
font-weight: 500;
position: relative;
@@ -208,7 +211,7 @@
position: absolute;
left: 50%;
transform: translateX(-50%);
- bottom: -20rpx;
+ bottom: 0;
content: '';
width: 56rpx;
height: 6rpx;
diff --git a/pages/mineEntry/myForecastName/myForecastName.vue b/pages/mineEntry/myForecastName/myForecastName.vue
index d7937cc..bd253d5 100644
--- a/pages/mineEntry/myForecastName/myForecastName.vue
+++ b/pages/mineEntry/myForecastName/myForecastName.vue
@@ -5,14 +5,14 @@
- {{ item.applyStatus==0?'点击进入报名':'预报名成功,待支付'}}
+ {{ item.applyStep==3?'点击进入签约合同':'预报名成功,待支付'}}
{{item.schoolName}}
班型:{{item.className}}
- {{$u.timeFormat(item.createDate, 'yyyy-mm-dd hh:MM:ss')}}
+ {{$u.timeFormat(item.applyDate, 'yyyy-mm-dd hh:MM:ss')}}
-
+
删除
@@ -25,17 +25,11 @@
-
-
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 @@
+
江西驾考公共服务平台
@@ -37,11 +38,16 @@
-
-
-
-
-
+
+
+
+
+
+
+
+
+ 暂无数据,您还未报名
+
@@ -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 @@
+
手机号快捷登录
+
手机号登录/注册