|
|
@ -5,11 +5,11 @@ |
|
|
|
<view class="card"> |
|
|
|
<view class="row"> |
|
|
|
<view class="lab">姓名</view> |
|
|
|
<view class="value">李轻云</view> |
|
|
|
<view class="value">{{form.name}}</view> |
|
|
|
</view> |
|
|
|
<view class="row"> |
|
|
|
<view class="lab">证件号</view> |
|
|
|
<view class="value">4310271992365685</view> |
|
|
|
<view class="value">{{form.idcard}}</view> |
|
|
|
</view> |
|
|
|
<view class="row"> |
|
|
|
<view class="lab">证件类型</view> |
|
|
@ -22,7 +22,7 @@ |
|
|
|
<view class="lab">手机号</view> |
|
|
|
<view class="rightCon"> |
|
|
|
<view class="val"> |
|
|
|
<input v-model="form.classModel" placeholder="请输入手机号" /></input> |
|
|
|
<input v-model="form.phone" placeholder="请输入手机号" /></input> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -30,7 +30,7 @@ |
|
|
|
<view class="lab">驾校名称</view> |
|
|
|
<view class="rightCon"> |
|
|
|
<view class="val"> |
|
|
|
<input v-model="form.classModel" placeholder="请输入手机号" /></input> |
|
|
|
<input v-model="form.schoolName" placeholder="请输入驾校名称" /></input> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -38,7 +38,7 @@ |
|
|
|
<view class="lab">学驾车型</view> |
|
|
|
<view class="rightCon"> |
|
|
|
<view class="val" @click="showType=true"> |
|
|
|
<input v-model="form.classModel" placeholder="请选择" disabled=""/></input> |
|
|
|
<input v-model="form.trainType" placeholder="请选择" disabled="" style="pointer-events: none;"/></input> |
|
|
|
</view> |
|
|
|
<view class="icon" @click="showType=true"> |
|
|
|
<u-icon name="arrow-right" size="14" color="#686B73" style="margin-left: 12rpx;"></u-icon> |
|
|
@ -58,16 +58,20 @@ |
|
|
|
|
|
|
|
<script> |
|
|
|
import { |
|
|
|
getpersonface, |
|
|
|
GetDetectInfoEnhanced, |
|
|
|
getCardType |
|
|
|
applyOnline |
|
|
|
} from '@/config/api.js' |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
form: { |
|
|
|
value: 1, |
|
|
|
typeName: '身份证' |
|
|
|
cardType: '身份证', |
|
|
|
phone: '', |
|
|
|
trainType: '', |
|
|
|
name: '', |
|
|
|
idcard: '', |
|
|
|
schoolName: '', |
|
|
|
applyType: 5,//(1:普通学员,2:免费学员,3:定向学员,4:理科免费学员,5:驾校免费学员) |
|
|
|
}, |
|
|
|
showType: false, |
|
|
|
typeArr: [ |
|
|
@ -77,40 +81,32 @@ |
|
|
|
// 报名进度(0:待报名,1:已选驾校,2:已实名制,3:已填写报名信息,4:已签署合同,5:待支付,6:已支付) |
|
|
|
}, |
|
|
|
onLoad(options) { |
|
|
|
|
|
|
|
this.form.userId = this.userId |
|
|
|
this.form.phone = this.vuex_userInfo.phone |
|
|
|
this.form.accountId = this.vuex_userInfo.accountId |
|
|
|
this.form.address = this.vuex_userInfo.address |
|
|
|
this.form.name = this.vuex_userInfo.name |
|
|
|
this.form.idcard = this.vuex_userInfo.idcard |
|
|
|
this.form.nationality = this.vuex_userInfo.nationality || '中国' |
|
|
|
this.form.cardType = this.vuex_userInfo.cardType || '1' |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
|
|
|
|
confirmType(val) { |
|
|
|
let item = val.value[0] |
|
|
|
// this.form.value = item.value |
|
|
|
console.log(item) |
|
|
|
this.form.trainType = item.value |
|
|
|
// this.form.typeName = item.label |
|
|
|
this.showType = false |
|
|
|
}, |
|
|
|
|
|
|
|
goNext() { |
|
|
|
// return this.$goPage('/pages/indexEntry/enroll/registInfo/registInfo') |
|
|
|
if (!this.form.value) return this.$u.toast('请选择证件类型') |
|
|
|
// 去签约 |
|
|
|
if (this.vuex_userInfo.applyStep == 3) { |
|
|
|
return this.$goPage('/pages/indexEntry/enroll/signContract/signContract') |
|
|
|
} |
|
|
|
// 去填表 |
|
|
|
if (this.vuex_userInfo.applyStep == 2) { |
|
|
|
if (this.title == '学员信息') { |
|
|
|
// 非平台学员 |
|
|
|
return his.$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 || this.vuex_userInfo.applyStep < 2) { |
|
|
|
// return this.$goPage('/pages/indexEntry/enroll/realName/realName') |
|
|
|
this.getpersonfaceFn() |
|
|
|
} |
|
|
|
async goNext() { |
|
|
|
if(!this.form.phone) return this.$u.toast('请输入手机号') |
|
|
|
if(!this.form.schoolName) return this.$u.toast('请输入驾校名称') |
|
|
|
if(!this.form.trainType) return this.$u.toast('请选择学驾车型') |
|
|
|
const {data: res} = await applyOnline(this.form) |
|
|
|
await this.$store.dispatch('getUserInfo') |
|
|
|
|
|
|
|
|
|
|
|
// this.$goPage('/pages/indexEntry/enroll/signContract/signContract') |
|
|
|
// this.$goPage('/pages/indexEntry/enroll/uploadAvatar/uploadAvatar') |
|
|
|