| | |
| | | <script lang="ts" setup> |
| | | import { ref,onMounted } from 'vue' |
| | | import {useRoute,useRouter} from 'vue-router' |
| | | import { ajaxGet } from '@/utils/axios' |
| | | import { ajaxGet ,ajaxPost} from '@/utils/axios' |
| | | // import { Session } from '@/utils/storage' |
| | | import { Dialog } from 'vant' |
| | | import { userInfoStore } from '@/stores/userInfo' |
| | |
| | | userInfo.setUserInfo({openid:re.openid,nickname:re.nickname,headimgurl:re.headimgurl}) |
| | | const openid = re.openid |
| | | if (openid) { |
| | | ajaxGet('patient/info/wechatLogin',{openid}).then((re:any)=>{ |
| | | ajaxPost('patient/info/wechatLogin',{openid}).then((re:any)=>{ |
| | | console.log('openid换的accesstoken=',re) |
| | | }) |
| | | } |