实名认证接口加token参数

This commit is contained in:
2025-09-11 13:05:01 +08:00
parent 728063ca86
commit 2dbf353113

View File

@ -171,12 +171,14 @@
this.$toast('身份证正面照片未上传') this.$toast('身份证正面照片未上传')
return return
} }
const urlParams = new URLSearchParams(window.location.search);
let token = urlParams.get('token');
if(this.form.name && this.form.identityCardNumber) { if(this.form.name && this.form.identityCardNumber) {
let res = await driverRealName( { let res = await driverRealName( {
phone: this.form.phone, phone: this.form.phone,
name: this.form.name, name: this.form.name,
idNo: this.form.identityCardNumber, idNo: this.form.identityCardNumber,
token:this.getParam('token'), token:token
}) })
let info = res?.data let info = res?.data
console.log('info', info) console.log('info', info)