| | |
| | | round |
| | | width="50px" |
| | | height="50px" |
| | | src="https://fastly.jsdelivr.net/npm/@vant/assets/cat.jpeg" |
| | | :src="patientInfo.patientInfo.patientAvatarIcon" |
| | | /> |
| | | </div> |
| | | <div class="rowtext"> |
| | |
| | | <img |
| | | style=" width: 55px;height: 55px;margin-left: 8%; margin-top: 15px;" |
| | | referrerpolicy="no-referrer" |
| | | :src="patientInfo.patientInfo.patientAvatarIcon" |
| | | src="./imgs/erwm.png" |
| | | /> |
| | | <div class="devcc">出示称重码</div> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="ButtonBody"> |
| | | <van-button type="primary" round block>退出登录</van-button> |
| | | <van-button type="primary" @click="logOUT" round block>退出登录</van-button> |
| | | </div> |
| | | <van-tabbar v-model="active" @change="tabChang"> |
| | | <van-tabbar-item name="home" icon="like">首页</van-tabbar-item> |
| | |
| | | </template> |
| | | <script lang="ts" setup> |
| | | import { ref,computed } from 'vue' |
| | | import {ajaxPost} from '@/utils/axios' |
| | | import { Session } from '@/utils/storage' |
| | | import { userInfoStore } from '@/stores/userInfo' |
| | | import serve1 from './imgs/serve1.png' |
| | | import { Image as VanImage,Tabbar as VanTabbar , TabbarItem as VanTabbarItem} from 'vant' |
| | |
| | | const patientInfo=computed(()=>{ |
| | | return userInfo.patient |
| | | }) |
| | | const logOUT=()=>{ |
| | | ajaxPost('/patient/info/logout','').then((re:any)=>{ |
| | | console.log(re) |
| | | Session.clear() // 清除缓存/token等 |
| | | router.push('login') |
| | | }) |
| | | } |
| | | </script> |
| | | <style lang="scss" scoped> |
| | | body{ |