chenyc
2022-09-23 3ce633c51d54fa3a89c473d8f501a9d4970cf0cf
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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
<template>
    <div class="page">
        <div class="hader">
            <van-row>
                <van-col span="12">
                    <van-image
                        round
                        width="50px"
                        height="50px"
                        src="https://fastly.jsdelivr.net/npm/@vant/assets/cat.jpeg"
                    />
                </van-col>
                <van-col span="12" class="hader-regth">
                    账号管理员
                    <van-icon name="arrow" />
                </van-col>
            </van-row>
        </div>
        <div class="userInfo">
            <van-row style="padding-left: 20px;">
                <van-col span="16" class="info16">
                    <div class="div1">张三丰
                        <span class="but">排班提醒</span>
                    </div>
                    <div class="div2">患者卡号</div>
                    <div class="div3">000000001</div>
                </van-col>
                <van-col span="8" class="info8">
                    <div class="img">
                        <img
                            style=" width: 50px;height: 50px;margin-left: 8%; margin-top: 22px;"
                            referrerpolicy="no-referrer"
                            src="@/views/home/assets/img/SketchPng011ef35b32ef075413b756766208370cde43357dffc3333d2acf29b70793c15d.png"
                        />
                    </div>
                    <div class="text" style="font-size: 10px;font-weight: 400;color: #777777;">
                        出示称重码
                    </div>
                </van-col>
            </van-row>
        </div>
        <div class="serves">
            <div style="padding-left: 20px;">
                <div class="title">其他服务</div>
                <van-row>
                    <van-col span="6" class="serveItem">
                        <div>
                            <van-image
                                :src="serve1"
                            />
                        </div>
                        <div>
                            我的用药
                        </div>
                    </van-col>
                    <van-col span="6" class="serveItem">
                        <div>
                            <van-image
                                :src="serve1"
                            />
                        </div>
                        <div>
                            检验指标
                        </div>
                    </van-col>
                    <van-col span="6" class="serveItem">
                        <div>
                            <van-image
                                :src="serve1"
                            />
                        </div>
                        <div>
                            科室公告
                        </div>
                    </van-col>
                    <van-col span="6" class="serveItem">
                        <div>
                            <van-image
                                :src="serve1"
                            />
                        </div>
                        <div>
                            科室介绍
                        </div>
                    </van-col>
                    <van-col span="6" class="serveItem">
                        <div>
                            <van-image
                                :src="serve1"
                            />
                        </div>
                        <div>
                            智慧云客服
                        </div>
                    </van-col>
                </van-row>
            </div>
        </div>
        <van-tabbar v-model="active" @change="tabChang">
            <van-tabbar-item name="home" icon="like">首页</van-tabbar-item>
            <van-tabbar-item name="my" icon="manager">我的</van-tabbar-item>
        </van-tabbar>
    </div>
</template>
<script lang="ts" setup>
    import { ref } from 'vue'
    import serve1 from './imgs/serve1.png'
    import { Image as VanImage,Tabbar as VanTabbar , TabbarItem as VanTabbarItem} from 'vant'
    import {useRouter} from 'vue-router'
    const router=useRouter()
    const active=ref('my')
    const tabChang=(index:any)=>{
        alert(index)
        if (index==='home'){
            router.push('/')
        } else {
            router.push('my')
        }
    }
</script>
<style lang="scss" scoped>
    body{
        background-color:#166bd3;
    }
.page{
    background-color:#F6FAFF;
    position:relative;
    min-width: 375px;
    min-height: 800px;
    .hader{
        margin-top: 20px;
        margin-bottom: 20px;
        height: 50px;
        width: 92%;
        margin-left: 4%;
        text-align:left;
        .hader-regth{
            height: 50px;
            text-align:right;
            line-height: 50px;
        }
    }
    .userInfo{
        width: 92%;
        margin-left: 4%;
        height: 100px;
        background: #FFFFFF;
        box-shadow: 0px 2px 4px 0px rgba(70,150,249,0.1);
        border-radius: 5px;
        .info16{
            text-align: left;
            // background:red;
            .div1{
                margin-top: 20px;
                margin-bottom: 6px;
                height: 21px;
                font-size: 15px;
                font-family: PingFangSC-Medium, PingFang SC;
                font-weight: 500;
                color: #333333;
                line-height: 21px;
                .but{
                    font-family: PingFangSC-Regular, PingFang SC;
                    font-weight: 400;
                    color: #FDFDFD;
                    background:rgb(77, 124, 212);
                    border-radius: 8px;
                    height: 20px;
                    line-height: 20px;
                    font-size: 13px;
                    padding: 2px 8px;
                }
            }
            .div2{
                height: 17px;
                font-size: 12px;
                font-family: PingFangSC-Regular, PingFang SC;
                font-weight: 400;
                color: #777777;
                line-height: 17px;
            }
            .div3{
                margin-top: 6px;
                height: 20px;
                font-size: 14px;
                font-family: PingFangSC-Regular, PingFang SC;
                font-weight: 400;
                color: #777777;
                line-height: 20px;
            }
 
        }
    }
    .serves{
        background: #FFFFFF;
        border-radius: 8px;
        align-self: center;
        margin-top: 20px;
        width: 92%;
        margin-left: 4%;
        padding-top: 12px;
        // padding-left: 20px;
        padding-bottom: 20px;
        .title{
            margin-top: 12px;
            overflow-wrap: break-word;
            color: rgba(51, 51, 51, 1);
            font-size: 14px;
            font-family: PingFangSC-Medium;
            text-align: left;
            white-space: nowrap;
            line-height: 20px;
            // margin-bottom: 20px;
        }
        .serveItem{
            text-align: center;
            margin-top: 20px;
            font-size: 13px;
            font-family: PingFangSC-Regular, PingFang SC;
            font-weight: 400;
            color: #333333;
            line-height: 20px;
        }
    }
}
</style>