|
|
@ -71,18 +71,36 @@ export default { |
|
|
|
this.accessNum() |
|
|
|
this.accessNum() |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods:{ |
|
|
|
methods:{ |
|
|
|
|
|
|
|
|
|
|
|
//校内人员认证 |
|
|
|
//校内人员认证 |
|
|
|
async userAuth(){ |
|
|
|
userAuth(){ |
|
|
|
axios.interceptors.response.use(response => { |
|
|
|
location.href = 'https://finance.uestc.cn/liuwanr/userInfo/loginSchoolPerson' |
|
|
|
this.responseUrl = response.request.responseURL |
|
|
|
// axios.interceptors.response.use(response => { |
|
|
|
return response; |
|
|
|
|
|
|
|
}, error => { |
|
|
|
// // let res = JSON.parse(response.request.response) |
|
|
|
return Promise.reject(error); |
|
|
|
// console.log('相应值=>',response.request) |
|
|
|
}) |
|
|
|
|
|
|
|
let rest = await this.$get(this.api.loginSchoolPerson) |
|
|
|
// // window.location.href = res.url |
|
|
|
window.location.href = this.responseUrl |
|
|
|
// return response; |
|
|
|
console.log('res1=>',rest); |
|
|
|
// }, error => { |
|
|
|
|
|
|
|
// return Promise.reject(error); |
|
|
|
|
|
|
|
// }) |
|
|
|
|
|
|
|
// axios({ |
|
|
|
|
|
|
|
// url:'https://finance.uestc.cn/liuwanr/userInfo/loginSchoolPerson', |
|
|
|
|
|
|
|
// method:'get', |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// }) |
|
|
|
|
|
|
|
// this.$get(this.api.loginSchoolPerson).then(res =>{ |
|
|
|
|
|
|
|
// // window.location.href = res.url |
|
|
|
|
|
|
|
// }).catch(err=>{}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
//校内人员认证 |
|
|
|
|
|
|
|
// async userAuth(){ |
|
|
|
|
|
|
|
// let rest = await this.$get(this.api.loginSchoolPerson) |
|
|
|
|
|
|
|
// window.location.href = rest.url |
|
|
|
|
|
|
|
// // console.log('res1=>',rest); |
|
|
|
|
|
|
|
// }, |
|
|
|
accessNum(){ |
|
|
|
accessNum(){ |
|
|
|
this.$get(this.api.getAccessNum).then(res =>{ |
|
|
|
this.$get(this.api.getAccessNum).then(res =>{ |
|
|
|
this.proAccessNum.currentNum = res.currentNum, |
|
|
|
this.proAccessNum.currentNum = res.currentNum, |
|
|
@ -91,7 +109,8 @@ export default { |
|
|
|
}).catch(err=>{}) |
|
|
|
}).catch(err=>{}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
toClient(){ |
|
|
|
toClient(){ |
|
|
|
location.href = location.host.includes('116.63.168.79') ? 'http://116.63.168.79/kdclient/#/clientLogin' : 'https://finance.uestc.cn/kdclient/#/clientLogin' |
|
|
|
// location.href = location.host.includes('116.63.168.79') ? 'http://116.63.168.79/kdclient/#/clientLogin?type=0' : 'https://finance.uestc.cn/kdclient/#/clientLogin?type=0' |
|
|
|
|
|
|
|
this.$router.push(`/clientLogin?type=1&account=2017000000013`) |
|
|
|
this.visiteShow = false |
|
|
|
this.visiteShow = false |
|
|
|
}, |
|
|
|
}, |
|
|
|
toMang(){ |
|
|
|
toMang(){ |
|
|
|