This commit is contained in:
辉 2023-11-13 14:30:56 +08:00
parent 9bd7eeb661
commit 58043fdf15

View File

@ -1,7 +1,7 @@
<template> <template>
<view class="app"> <view class="app">
<!-- 家医 医生--> <!-- 家医 医生-->
<view class="Familydoctor" v-if="status=='1'"> <view class="Familydoctor" v-if="status==1">
<view class="Familybody"> <view class="Familybody">
<view class="myorder titles" @tap="personlinfo()"> <view class="myorder titles" @tap="personlinfo()">
<view class="title"> <view class="title">
@ -52,10 +52,9 @@
</view> </view>
</view> </view>
</view> </view>
</view> </view>
<!-- 泉医 医生--> <!-- 泉医 医生-->
<view class="Quanyi" v-if="status=='2'"> <view class="Quanyi" v-if="status==2">
<div class="imgs"> <div class="imgs">
</div> </div>
<image src="/static/headsculpture.png" mode="" class="headsculpture"> <image src="/static/headsculpture.png" mode="" class="headsculpture">
@ -101,7 +100,7 @@
</view> </view>
</view> </view>
<!-- 专病医生 --> <!-- 专病医生 -->
<view class="Quanyi" v-if="status=='3'"> <view class="Quanyi" v-if="status==3">
<div class="imgs"> <div class="imgs">
</div> </div>
<image src="/static/headsculpture.png" mode="" class="headsculpture"> <image src="/static/headsculpture.png" mode="" class="headsculpture">
@ -161,8 +160,7 @@
form: { form: {
name: '' name: ''
}, },
status: '', status: undefined,
id: '',
list: [], list: [],
} }
}, },
@ -170,13 +168,12 @@
}, },
onShow() { onShow() {
this.status = uni.getStorageSync("status") this.status = Number(uni.getStorageSync("status"))
this.info() this.info()
}, },
methods: { methods: {
info() { info() {
this.id = uni.getStorageSync("id") hospitalPerson(uni.getStorageSync("id")).then(res => {
hospitalPerson(this.id).then(res => {
this.list = res.data this.list = res.data
}) })
}, },
@ -192,11 +189,9 @@
}, },
// 个人信息 // 个人信息
personlinfo() { personlinfo() {
// console.log(this.list, '66')
uni.navigateTo({ uni.navigateTo({
url: `/pages/Personalinfo/Personalinfo?list=${JSON.stringify(this.list)}` url: `/pages/Personalinfo/Personalinfo?list=${JSON.stringify(this.list)}`
}) })
}, },
gotime() { gotime() {
uni.navigateTo({ uni.navigateTo({