45
chenyc
2023-05-24 7e6b8b1eef198ab4de9633288037a23817f9ee39
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
<template>
    <div class="page">
        <div class="box_1">
            <div class="userinfo">
                <div class="name">{{patientInfo.patientInfo.patientName}}</div>
                <div class="userCode">卡号:{{patientInfo.patientInfo.patientCardNo}} </div>
                <div class="userQRcode">
                    <img
                        style=" width: 60px;height: 60px;margin-left: 8%; margin-top: 20px;"
                        referrerpolicy="no-referrer"
                        :src="patientInfo.patientInfo.patientAvatarIcon"
                    />
                </div>
            </div>
            <div class="userHead">
                <van-image
                    round
                    width="78px"
                    height="78px"
                    :src="Info.headimgurl"
                />
            </div>
            <div class="meuns">
                <van-row class="meunsitems">
                    <van-col span="6" @click="topath('/report')" class="item">
                        <van-image
                            round
                            width="42px"
                            height="42px"
                            :src="meun1"
                        />
                        <div>检验报告</div>
                    </van-col>
                    <van-col span="6" @click="topath('/paiban')" class="item">
                        <van-image
                            round
                            width="42px"
                            height="42px"
                            :src="meun2"
                        />
                        <div>透析排班</div>
                    </van-col>
                    <van-col span="6" @click="topath('/prescriptionDrug')" class="item">
                        <van-image
                            round
                            width="42px"
                            height="42px"
                            :src="meun3"
                        />
                        <div>透析医嘱</div>
                    </van-col>
                    <van-col span="6" @click="topath('/record')" class="item">
                        <van-image
                            round
                            width="42px"
                            height="42px"
                            :src="meun4"
                        />
                        <div>透析记录</div>
                    </van-col>
                </van-row>
            </div>
        </div>
        <div class="viewInfo">
            <div class="box">
                <div class="crainfo">
                    <div class="tizhong">{{patientInfo.weight}}</div>
                </div>
                <div class="hanzhi">体重(kg)</div>
                <div class="yinyu">Patient weight data</div>
            </div>
            <div class="box">
                <div class="crainfo">
                    <div class="xueya">{{patientInfo.pressure}}</div>
                </div>
                <div class="hanzhi">血压(mmHg)</div>
                <div class="yinyu">Patient blood pressure data</div>
            </div>
        </div>
        <div class="listInfos">
            <div class="listrow">
                <div class="rowioc">
                    <van-image
                        width="24px"
                        height="24px"
                        :src="List1"
                    />
                </div>
                <div class="rowtext">
                    <div class="rowb">健康趋势</div>
                    <div class="rowc">Health trends</div>
                </div>
                <div class="rowiocback">
                    <van-image
                        :src="Black"
                    />
                </div>
            </div>
            <div class="listrow">
                <div class="rowioc">
                    <van-image
                        width="24px"
                        height="24px"
                        :src="List1"
                    />
                </div>
                <div class="rowtext">
                    <div class="rowb">健康趋势</div>
                    <div class="rowc">Health trends</div>
                </div>
                <div class="rowiocback">
                    <van-image
                        :src="Black"
                    />
                </div>
            </div>
        </div>
        <van-tabbar v-model="active" @change="tabChang">
            <van-tabbar-item name="home" icon="like">首页</van-tabbar-item>
            <van-tabbar-item name="jifen" icon="cart-circle-o">积分商城</van-tabbar-item>
            <van-tabbar-item name="my" icon="manager">我的</van-tabbar-item>
        </van-tabbar>
    </div>
</template>
  <script lang="ts" setup>
    import { onMounted,ref,computed,watch } from 'vue'
    import { userInfoStore } from '@/stores/userInfo'
    import { Image as VanImage,Tabbar as VanTabbar , TabbarItem as VanTabbarItem, Toast } from 'vant'
    import {useRouter} from 'vue-router'
    import meun1 from './assets/meun1.png'
    import meun2 from './assets/meun2.png'
    import meun3 from './assets/meun3.png'
    import meun4 from './assets/meun4.png'
    import List1 from './assets/row1.png'
    import Black from './assets/Black.png'
    const router=useRouter()
    const userInfo = userInfoStore()
    const active=ref('home')
    const tabChang=(index:any)=>{
        if (index==='home'){
            router.push('/')
        } else if(index==='jifen') {
            router.push('jifenShangCheng')
        }else if(index==='my') {
            router.push('my')
        }
    }
    const topath=(url:string)=>{
        console.log('sss')
        if (url==='/report'){
            Toast('此功能暂未开通')
        } else {
            router.push(url)
        }
    }
    const patientInfo=computed(() => {
        return userInfo.patient
    })
    const Info=computed(() => {
        return userInfo.info
    })
    watch(
        ()=>patientInfo,
        ()=>{
            console.log('患者变化了')
        }
    )
    onMounted(() => {
        // if (userInfo.info.openid===''){
        //     router.push('login')
        // }
        console.log(userInfo.patient,'患者信息')
        console.log(userInfo.info,'微信账号信息')
    })
  </script>
  <style scoped lang="css" src="./assets/index.scss" />