You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

117 lines
2.5 KiB

<template>
1 year ago
<view class="page-usercenter">
1 year ago
<view class="user-wrapper" @click="toUserModify">
<img :src="uinfo.user_avatar" class="avator" v-if="uinfo.user_avatar">
<img :src="cssUrl+'user_grey.svg'" class="avator" v-else>
<view class="ucode PfScMedium over2">{{uinfo.user_nick}}</view>
1 year ago
</view>
1 year ago
<view class="menu">
1 year ago
<view class="item" @click="toVisitors">
1 year ago
<img :src="cssUrl+'user_icon.svg'" alt="">
<view>就诊人</view>
</view>
1 year ago
<view class="item" @click="toPrebookList">
1 year ago
<img :src="cssUrl+'message.svg'" alt="">
<view>就诊记录</view>
1 year ago
</view>
</view>
<tabbar current="2" leftButtonText="预约"></tabbar>
</view>
</template>
1 year ago
<script>
import tabbar from '@/components/tabbar.vue';
export default {
data() {
1 year ago
return {
cssUrl:this.cssUrl,
uinfo:{}
}
1 year ago
},
components:{
tabbar:tabbar
},
onShow() {
this.getUser()
},
methods: {
getUser(){
this.$http.req('user/get_user_info', {}, 'POST').then(data=>{
if(data == -1) return
this.uinfo = data
});
},
1 year ago
toVisitors(){
this.$nav.navToPath('/pages/visitors_new/visitors_new?type=2')
1 year ago
},
toPrebookList(){
this.$nav.navToPath('/pages/prebook_list/prebook_list')
1 year ago
},
toUserModify(){
this.$nav.navToPath('/pages/user_modify/user_modify')
}
}
}
</script>
<style lang="scss" scoped>
1 year ago
.page-usercenter{
width: 100%;
height: 100vh;
1 year ago
overflow-y: auto;
1 year ago
background: #F8F8F8;
.avator{
display: block;
width: 160rpx;
height: 160rpx;
border-radius: 100%;
margin: 20rpx auto 24rpx;
1 year ago
}
.ucode{
width: 80%;
text-align: center;
margin: 0 auto;
min-height: 56rpx;
line-height: 56rpx;
font-size: 40rpx;
color: #000000;
letter-spacing: 1rpx;
word-break: break-all;
}
.menu{
width: 714rpx;
margin: 35rpx auto 0;
height: 206rpx;
background: #FFFFFF;
display: flex;
align-items: center;
justify-content: space-between;
box-shadow: 0rpx 2rpx 24rpx 0rpx rgba(0,0,0,0.03);
border-radius: 0rpx 0rpx 8rpx 8rpx;
padding: 0 130rpx;
box-sizing: border-box;
.item{
width: 116rpx;
img{
width: 70rpx;
height: 70rpx;
margin: 0 auto;
display: block;
margin-bottom: 30rpx;
}
view{
width: 100%;
text-align: center;
height: 40rpx;
line-height: 40rpx;
font-size: 28rpx;
color: #666666;
}
}
}
}
</style>