Commit 4b9392e2 by lishengfu

Merge branch 'master' of gitlab.corp.qinqinxiaobao.com:frontend_vue/qqxb-self-service

parents 0e75b93f 0a7a72ee
......@@ -44,7 +44,7 @@ class EmployeeService implements EmployeeInterface {
*/
public async getUserInfo(params: any): Promise<any> {
const url = urls.userInfoUrl + `/userAuthDetails`;
return request.post(url, params, this.header)
return request.post(url, params, this.header, true)
}
/**
......
......@@ -26,9 +26,9 @@ class Request {
* @param params 请求参数
* @param headers 请求头信息
*/
public post(url: string, params: any = {}, headers: any = {}) {
public post(url: string, params: any = {}, headers: any = {}, special: boolean = false) {
return new Promise((resolve, reject) => {
resolve(http.post(`${url}?${GetCommonPms()}`, params, { headers: headers }));
resolve(http.post(`${url}?${GetCommonPms(special)}`, params, { headers: headers }));
})
}
......@@ -42,7 +42,7 @@ class Request {
*/
public put(url: string, params: any = {}, headers: any = {}) {
return new Promise((resolve, reject) => {
resolve(http.put(`${url}?${GetCommonPms()}`, params, {headers: headers}));
resolve(http.put(`${url}?${GetCommonPms()}`, params, { headers: headers }));
})
}
......
......@@ -43,15 +43,18 @@ export default class SelectIdentity extends Vue {
}
async created() {
await this.$server.EmployeeService.getUserInfo({}).then(res => {
if (res.data && res.data.uthStatus && res.data.uthStatus > 0) {
this.id_no = res.data.personalIdCardNo;
} else {
//TODO: 跳转到实名认证
}
}).catch(err=>{
console.log('err=',err);
});
await this.$server.EmployeeService.getUserInfo({})
.then(res => {
if (res.data && res.data.uthStatus && res.data.uthStatus > 0) {
this.id_no = res.data.personalIdCardNo;
console.log("this.id_no=", this.id_no);
} else {
//TODO: 跳转到实名认证
}
})
.catch(err => {
console.log("err=", err);
});
}
}
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment