Browse Source

我的预报名

master
unknown 11 months ago
parent
commit
61745901e9
  1. 3
      components/searchRow/searchRow.vue
  2. 3
      config/api.js
  3. 2
      manifest.json
  4. 15
      pages/indexEntry/enroll/enroll.vue
  5. 8
      pages/indexEntry/enroll/registInfo/registInfo.vue
  6. 11
      pages/mineEntry/myForecastName/myForecastName.vue
  7. 11
      pages/tabbar/index/index.vue

3
components/searchRow/searchRow.vue

@ -6,7 +6,7 @@
</view> </view>
<view class="inputBox"> <view class="inputBox">
<u-search :placeholder="placeholder" v-model="keyword" :color="'#fff'" :disabled="disable" placeholderColor="#fff" :bgColor="'transparent'" @change="$u.debounce(searchFn, 2000)" :showAction="false" @search="$u.debounce(searchFn, 500)" @clear="clearSearchFn"></u-search>
<u-search :placeholder="placeholder" v-model="keyword" :color="'#fff'" :disabled="disable" placeholderColor="#fff" style="pointer-events: none;" :bgColor="'transparent'" @change="$u.debounce(searchFn, 1500)" :showAction="false" @search="$u.debounce(searchFn, 500)" @clear="clearSearchFn"></u-search>
</view> </view>
</view> </view>
</view> </view>
@ -26,7 +26,6 @@
}, },
clearSearchFn() { clearSearchFn() {
this.keyword = '' this.keyword = ''
this.$emit('searchFn', '')
} }
} }
} }

3
config/api.js

@ -166,6 +166,9 @@ export const getAgreement = (params={}) => http.get('app/student-record/getAgree
export const getDriveProcessDetails = (params={}) => http.get('app/student-record/getDriveProcessDetails', {params}) export const getDriveProcessDetails = (params={}) => http.get('app/student-record/getDriveProcessDetails', {params})
// 学时查询 // 学时查询
export const getStudentProcess = (params={}) => http.get('app/student-process/getStudentProcess', {params}) export const getStudentProcess = (params={}) => http.get('app/student-process/getStudentProcess', {params})
// 获得预报名记录列表
export const trainingApplyList = (params={}) => http.get('app/training-apply/list', {params})

2
manifest.json

@ -96,7 +96,7 @@
"disableHostCheck" : true, "disableHostCheck" : true,
"proxy" : { "proxy" : {
"/api" : { "/api" : {
"target" : "http://192.168.1.15:48080/",
"target" : "http://192.168.1.36:48080/",
// "target" : "http://192.168.1.36:48080/", // "target" : "http://192.168.1.36:48080/",
"changeOrigin" : true, "changeOrigin" : true,
"secure" : true, "secure" : true,

15
pages/indexEntry/enroll/enroll.vue

@ -191,14 +191,14 @@
// uni.setStorageSync(obj2) // uni.setStorageSync(obj2)
}, },
async goNext() { async goNext() {
// return this.$goPage('/pages/indexEntry/enroll/registInfo/registInfo')
// if(!this.form.value) return this.$u.toast('') // if(!this.form.value) return this.$u.toast('')
// this.$goPage('/pages/indexEntry/enroll/signContract/signContract?schoolId='+this.vuex_userInfo.schoolId) // this.$goPage('/pages/indexEntry/enroll/signContract/signContract?schoolId='+this.vuex_userInfo.schoolId)
// return // return
// //
if(this.vuex_userInfo.applyStep==3) {
return this.$goPage('/pages/indexEntry/enroll/signContract/signContract')
}
// if(this.vuex_userInfo.applyStep==3) {
// return this.$goPage('/pages/indexEntry/enroll/signContract/signContract')
// }
// return this.$goPage('/pages/indexEntry/enroll/registInfo/registInfo')
// //
if(this.vuex_userInfo.applyStep==2) { if(this.vuex_userInfo.applyStep==2) {
if(this.title=='学员信息') { if(this.title=='学员信息') {
@ -208,8 +208,11 @@
return this.$goPage('/pages/indexEntry/enroll/registInfo/registInfo') return this.$goPage('/pages/indexEntry/enroll/registInfo/registInfo')
} }
// //
if(this.vuex_userInfo.applyStep==4||this.vuex_userInfo.applyStep==5) {
return this.$goPage('/pages/indexEntry/enroll/payment/payment')
// if(this.vuex_userInfo.applyStep==4||this.vuex_userInfo.applyStep==5) {
// return this.$goPage('/pages/indexEntry/enroll/payment/payment')
// }
if(this.vuex_userInfo.applyStep>1&&this.vuex_userInfo.applyStep<5) {
return this.$goPage('/pages/indexEntry/enroll/registInfo/registInfo')
} }
// //
if(this.form.value!=1) { if(this.form.value!=1) {

8
pages/indexEntry/enroll/registInfo/registInfo.vue

@ -115,7 +115,7 @@
<view class="rightCon"> <view class="rightCon">
<view class="row" @click="showOldDriveModel=true" > <view class="row" @click="showOldDriveModel=true" >
<view class="val"> <view class="val">
<mySelect :value="form.oldDriveModel"/>
<mySelect :value="form.oldTrainType"/>
</view> </view>
<view class="arrow"> <view class="arrow">
<u-icon name="arrow-right" size="14" color="#686B73" style="margin-left: 12rpx;" ></u-icon> <u-icon name="arrow-right" size="14" color="#686B73" style="margin-left: 12rpx;" ></u-icon>
@ -152,7 +152,7 @@
<view class="rightCon"> <view class="rightCon">
<view class="row"> <view class="row">
<view class="val"> <view class="val">
<mySelect :value="form.classModel"/>
<mySelect :value="form.fromArea"/>
</view> </view>
<view class="arrow"> <view class="arrow">
<u-icon name="arrow-right" size="14" color="#686B73" style="margin-left: 12rpx;" ></u-icon> <u-icon name="arrow-right" size="14" color="#686B73" style="margin-left: 12rpx;" ></u-icon>
@ -319,6 +319,7 @@
totalAmount: 0, totalAmount: 0,
radiovalue2: 2, // radiovalue2: 2, //
businessType: 0, businessType: 0,
fromArea: '',//
}, },
showSchool: false, showSchool: false,
@ -433,6 +434,9 @@
// columnIndexvaluevalues // columnIndexvaluevalues
confirmCity(e) { confirmCity(e) {
console.log('confirm', e) console.log('confirm', e)
this.form.fromArea = e.value.map((item)=>{
return item.name
}).join(',').replace(/,/g, '-')
this.showCity = false this.showCity = false
}, },
// //

11
pages/mineEntry/myForecastName/myForecastName.vue

@ -25,6 +25,7 @@
</template> </template>
<script> <script>
import { trainingApplyList } from "@/config/api.js"
export default { export default {
data() { data() {
return { return {
@ -38,7 +39,15 @@
status: 'loadmore', status: 'loadmore',
} }
}, },
onLoad() {
this.trainingApplyListFn()
},
methods: {
async trainingApplyListFn() {
const {data: res} = await trainingApplyList({studentId: this.studentId})
this.list = res
}
}
} }
</script> </script>

11
pages/tabbar/index/index.vue

@ -305,18 +305,13 @@
} }
// this.$goPage(item.url) // this.$goPage(item.url)
this.$store.commit('updateNonPlatformStudent', false) this.$store.commit('updateNonPlatformStudent', false)
if(this.vuex_userInfo.applyStep==3) {
return this.$goPage('/pages/indexEntry/enroll/signContract/signContract')
if(this.vuex_userInfo.applyStep<2) {
this.$goPage('/pages/indexEntry/enroll/enroll')
} }
// //
if(this.vuex_userInfo.applyStep==2) {
if(this.vuex_userInfo.applyStep>1&&this.vuex_userInfo.applyStep6<5) {
return this.$goPage('/pages/indexEntry/enroll/registInfo/registInfo') return this.$goPage('/pages/indexEntry/enroll/registInfo/registInfo')
} }
//
if(this.vuex_userInfo.applyStep==4||this.vuex_userInfo.applyStep==5) {
return this.$goPage('/pages/indexEntry/enroll/payment/payment')
}
} }
if(item.text=='找驾驶馆') { if(item.text=='找驾驶馆') {
const res = await this.$store.dispatch('checkLogin') const res = await this.$store.dispatch('checkLogin')

Loading…
Cancel
Save