diff --git a/src/views/rvDriverAuthentication/personAudit.vue b/src/views/rvDriverAuthentication/personAudit.vue index 9bd6b33b..703f6a1f 100644 --- a/src/views/rvDriverAuthentication/personAudit.vue +++ b/src/views/rvDriverAuthentication/personAudit.vue @@ -106,16 +106,24 @@ if( this.show ) { await this.getDetail() } + let flag=this.getUrlParam('esignFlag') + console.log("flag",flag) + const urlParams = new URLSearchParams(window.location.search); - 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")) + // 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") localStorage.setItem("esignFlag",this.esignFlag ) console.log("this.esignFlag ",this.esignFlag ) }, 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() { let res = await driverInfoVerifyDetail( { verifyType: 1