|
|
|
@ -8,8 +8,7 @@ const router = useRouter()
|
|
|
|
|
const initLoad=async ()=>{
|
|
|
|
|
await getVoteToken()
|
|
|
|
|
if (route.query.state && route.query.code){
|
|
|
|
|
const res= await viewOpenId({code: Array.isArray(route.query.code)?route.query.code[0]:route.query.code, state: Array.isArray(route.query.state)?route.query.state[0]:route.query.state})
|
|
|
|
|
console.log('openid',res)
|
|
|
|
|
const res= await viewOpenId({code: Array.isArray(route.query.code)?route.query.code.at(-1):route.query.code, state: Array.isArray(route.query.state)?route.query.state.at(-1):route.query.state})
|
|
|
|
|
if (res.status===0){
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -22,7 +21,6 @@ if (route.query.uid){
|
|
|
|
|
getWorkInfo()
|
|
|
|
|
}
|
|
|
|
|
const isW=isWechat()
|
|
|
|
|
console.log('isW',isW)
|
|
|
|
|
voteStatus().then((res)=>{
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
|
|
|
|
@ -40,7 +38,7 @@ if(res.status===401){
|
|
|
|
|
window.location.href = `https://appointteam.szjixun.cn/api/appointment/wx?notifyUrl=${encodeURIComponent(window.location.href)}`
|
|
|
|
|
}*/
|
|
|
|
|
|
|
|
|
|
/*cWxApi()*/
|
|
|
|
|
/* cWxApi()*/
|
|
|
|
|
initLoad()
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|