实名认证调整
This commit is contained in:
@ -106,29 +106,23 @@
|
|||||||
if( this.show ) {
|
if( this.show ) {
|
||||||
await this.getDetail()
|
await this.getDetail()
|
||||||
}
|
}
|
||||||
let flag=this.getUrlParam('esignFlag')
|
|
||||||
console.log("flag",flag)
|
|
||||||
|
|
||||||
const urlParams = new URLSearchParams(window.location.search);
|
const urlParams = new URLSearchParams(window.location.search);
|
||||||
|
console.log('window.location',window.location)
|
||||||
console.log("urlParams",urlParams)
|
console.log("urlParams",urlParams)
|
||||||
console.log("window---",window.location)
|
// console.log("decodeURIComponent( window.location.href)",decodeURIComponent( window.location.href))
|
||||||
console.log("11111---",urlParams.get('token'))
|
// decodeURIComponent( window.location.href)
|
||||||
console.log("2222---",urlParams.get('esignFlag'))
|
|
||||||
|
|
||||||
// let aaa = urlParams.get('esignFlag');
|
|
||||||
// console.log("aaa",aaa)
|
|
||||||
// console.log('urlParams.get(\'esignFlag\')',urlParams.get('esignFlag'))
|
|
||||||
// console.log('localStorage.getItem("esignFlag")',localStorage.getItem("esignFlag"))
|
|
||||||
this.esignFlag = urlParams.get('esignFlag') || localStorage.getItem("esignFlag")
|
this.esignFlag = urlParams.get('esignFlag') || localStorage.getItem("esignFlag")
|
||||||
|
if(window.location.search){
|
||||||
|
console.log('有参数')
|
||||||
|
this.esignFlag = localStorage.getItem("esignFlag") || urlParams.get('esignFlag')
|
||||||
|
}else {
|
||||||
|
console.log('无参数,说明认证成功')
|
||||||
|
this.esignFlag =true
|
||||||
|
}
|
||||||
localStorage.setItem("esignFlag",this.esignFlag )
|
localStorage.setItem("esignFlag",this.esignFlag )
|
||||||
console.log("this.esignFlag ",this.esignFlag )
|
console.log("this.esignFlag ",this.esignFlag )
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getUrlParam(name){
|
|
||||||
let reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
|
|
||||||
let r = window.location.search.substr(1).match(reg);
|
|
||||||
if (r!=null) return unescape(r[2]); return null;
|
|
||||||
},
|
|
||||||
async getDetail() {
|
async getDetail() {
|
||||||
let res = await driverInfoVerifyDetail( {
|
let res = await driverInfoVerifyDetail( {
|
||||||
verifyType: 1
|
verifyType: 1
|
||||||
|
|||||||
Reference in New Issue
Block a user