|
|
@ -6,15 +6,15 @@ |
|
|
|
<view class="row"> |
|
|
|
<view class="lab">证件类型</view> |
|
|
|
<view class="rightCon"> |
|
|
|
<view class="val"> |
|
|
|
<input v-model="form.typeName" placeholder="请选择" class="input1" @click="showType=true" disabled/></input> |
|
|
|
<view class="val" @click="showType=true"> |
|
|
|
<input v-model="form.typeName" placeholder="请选择" class="input1" style="pointer-events: none;" disabled/></input> |
|
|
|
</view> |
|
|
|
<view class="icon"> |
|
|
|
<u-icon name="arrow-right" size="14" color="#686B73" style="margin-left: 12rpx;" ></u-icon> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="row" v-if="form.type==2"> |
|
|
|
<view class="row" v-if="form.value==7"> |
|
|
|
<view class="lab">国籍</view> |
|
|
|
<view class="rightCon"> |
|
|
|
<view class="val"> |
|
|
@ -25,7 +25,7 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="row" v-if="form.type==2||form.type==3"> |
|
|
|
<view class="row" v-if="form.value!=1"> |
|
|
|
<view class="lab">证件号码</view> |
|
|
|
<view class="rightCon"> |
|
|
|
<view class="val"> |
|
|
@ -39,58 +39,65 @@ |
|
|
|
<view class="row"> |
|
|
|
<view class="lab">实名认证</view> |
|
|
|
<view class="rightCon"> |
|
|
|
<view class="val">待认证</view> |
|
|
|
<view class="val" v-if="vuex_userInfo.applyStep>1" style="color: #1989FA;">已认证</view> |
|
|
|
<view class="val" v-else>待认证</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="btnBg" @click="goNext">下一步</view> |
|
|
|
</view> |
|
|
|
<u-picker :show="showType" :columns="typeArr" keyName="label" @confirm="confirmType" @cancel="showType=false"></u-picker> |
|
|
|
|
|
|
|
<u-picker :show="showType" :columns="typeArr" keyName="lab" @confirm="confirmType" @cancel="showType=false"></u-picker> |
|
|
|
|
|
|
|
<!-- <web-view :src="link"></web-view> --> |
|
|
|
<!-- <iframe :src="link" frameborder="0"></iframe> --> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import { getpersonface, GetDetectInfoEnhanced } from '@/config/api.js' |
|
|
|
import { getpersonface, GetDetectInfoEnhanced, getCardType } from '@/config/api.js' |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
form: { |
|
|
|
type: 1, |
|
|
|
typeName: '' |
|
|
|
value: 1, |
|
|
|
typeName: '身份证' |
|
|
|
}, |
|
|
|
showType: false, |
|
|
|
typeArr: [ |
|
|
|
[ |
|
|
|
{lab: '居民身份证',id: 1}, |
|
|
|
{lab: '外国人永久居留身份证',id: 2}, |
|
|
|
{lab: '军官证',id: 3}, |
|
|
|
] |
|
|
|
], |
|
|
|
link: 'https://www.baidu.com/?tn=62095104_29_oem_dg&ch=6' |
|
|
|
typeArr: [], |
|
|
|
} |
|
|
|
// 报名进度(0:待报名,1:已选驾校,2:已实名制,3:已填写报名信息,4:已签署合同,5:待支付,6:已支付) |
|
|
|
}, |
|
|
|
onLoad() { |
|
|
|
this.getpersonfaceFn() |
|
|
|
this.GetDetectInfoEnhancedFn() |
|
|
|
// this.GetDetectInfoEnhancedFn() |
|
|
|
this.getCardTypeFn() |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
// 获取证件类型 |
|
|
|
async getCardTypeFn() { |
|
|
|
const {data: res} = await getCardType() |
|
|
|
this.typeArr = [res] |
|
|
|
await this.$store.dispatch('getUserInfo') |
|
|
|
if(this.vuex_userInfo.applyStep>1) { |
|
|
|
res.forEach(item=>{ |
|
|
|
if(item.value==this.vuex_userInfo.cardType ){ |
|
|
|
this.form.typeName = item.label |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
console.log(res) |
|
|
|
}, |
|
|
|
confirmType(val) { |
|
|
|
let item = val.value[0] |
|
|
|
this.form.type = item.id |
|
|
|
this.form.typeName = item.lab |
|
|
|
console.log(item) |
|
|
|
this.form.value = item.value |
|
|
|
this.form.typeName = item.label |
|
|
|
this.showType = false |
|
|
|
}, |
|
|
|
async getpersonfaceFn() { |
|
|
|
const {data: res} = await getpersonface({ ruleId: 1, RedirectUrl: 'http://192.168.1.44:8002/h5/#/pages/indexEntry/enroll/realName/realName'}) |
|
|
|
const {data: res} = await getpersonface({ ruleId: 1, RedirectUrl: 'http://192.168.1.44:8001/h5/#/pages/indexEntry/enroll/realName/realName'}) |
|
|
|
let obj = JSON.parse(res) |
|
|
|
this.link = obj.Url |
|
|
|
this.$store.commit('updateBizToken', obj.BizToken) |
|
|
|
alert(this.$store.state.school.BizToken) |
|
|
|
// #ifdef H5 |
|
|
|
window.open(this.link, '_blank') |
|
|
|
// #endif |
|
|
@ -103,16 +110,37 @@ |
|
|
|
let obj = { |
|
|
|
ruleId: 1, |
|
|
|
redirectUrl: 'http://192.168.1.44:8002/h5/#/pages/indexEntry/enroll/registInfo/registInfo', |
|
|
|
bizToken: 'A39C2EF8-9FF7-415D-BA4B-51F9457395CE' |
|
|
|
bizToken: 'C9C2BC8E-8336-4071-84B3-8170E283E6CA', |
|
|
|
userId: this.userId |
|
|
|
} |
|
|
|
const {data: res} = await GetDetectInfoEnhanced(obj) |
|
|
|
let obj2 = JSON.parse(res) |
|
|
|
console.log(obj2) |
|
|
|
console.log('请求结果来了') |
|
|
|
console.log(obj2.Text) |
|
|
|
console.log(obj2.Text.ErrMsg=='成功') |
|
|
|
// uni.setStorageSync(obj2) |
|
|
|
}, |
|
|
|
goNext() { |
|
|
|
|
|
|
|
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) { |
|
|
|
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() |
|
|
|
} |
|
|
|
|
|
|
|
// this.$goPage('/pages/indexEntry/enroll/signContract/signContract') |
|
|
|
// this.$goPage('/pages/indexEntry/enroll/uploadAvatar/uploadAvatar') |
|
|
|
} |
|
|
|
} |
|
|
|