Files

146 lines
2.7 KiB
Vue
Raw Normal View History

2022-09-13 18:23:31 +08:00
<template>
<view>
2022-09-14 16:15:22 +08:00
<view class="page-top">
<u-navbar title="个人中心" placeholder bgColor="transparent" :leftIcon="null" titleStyle="color:white">
</u-navbar>
</view>
2022-09-14 17:48:03 +08:00
<view class="sized-box" style="height:var(--status-bar-height);"></view>
2022-09-14 16:15:22 +08:00
<view class="sizedbox" style="height: 88rpx;"></view>
2022-09-13 18:23:31 +08:00
<view class="avatar_name">
<view class="avatar">
<image src="../../static/personal/avatar_sample.png" mode=""></image>
</view>
<text class="username">
张三
</text>
</view>
<view class="user-info">
<view class="user-info-item">
<text class="key">
性别:&nbsp;
</text>
<text class="value">
{{userInfo.gender}}
</text>
</view>
<view class="user-info-item">
<text class="key">
年龄:&nbsp;
</text>
<text class="value">
{{userInfo.age}}
</text>
</view>
<view class="user-info-item">
<text class="key">
所属单位:&nbsp;
</text>
<text class="value">
{{userInfo.unit}}
</text>
</view>
<view class="user-info-item">
<text class="key">
部门:&nbsp;
</text>
<text class="value">
{{userInfo.department}}
</text>
</view>
<view class="user-info-item">
<text class="key">
岗位:&nbsp;
</text>
<text class="value">
{{userInfo.post}}
</text>
</view>
<view class="user-info-item">
<text class="key">
负责项目:&nbsp;
</text>
<text class="value">
{{userInfo.project}}
</text>
</view>
<view class="user-info-item">
<text class="key">
项目角色:&nbsp;
</text>
<text class="value">
{{userInfo.role}}
</text>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
userInfo: {
name: '张三',
gender: '男',
age: 26,
unit: '航天科工六院',
department: '**部',
post: '**经理',
project: '负责项目',
role: '**项目经理'
}
}
},
methods: {
}
}
</script>
2022-09-14 17:48:03 +08:00
<style>
page {
background-color: #f6f6f6;
}
</style>
2022-09-13 18:23:31 +08:00
<style lang="scss">
2022-09-14 16:15:22 +08:00
.page-top {
z-index: 99;
background: linear-gradient(to top right, #496df6, #2e9ee8);
position: fixed;
width: 100%;
top: 0;
}
2022-09-13 18:23:31 +08:00
.avatar_name {
2022-09-14 16:15:22 +08:00
border-bottom: 2rpx solid #f4f4f4;
2022-09-13 18:23:31 +08:00
display: flex;
align-items: center;
height: 180rpx;
padding-left: 38rpx;
.avatar {
display: flex;
align-items: center;
uni-image {
width: 114rpx;
height: 114rpx;
}
}
.username {
margin-left: 100rpx;
font-size: 28px;
}
}
.user-info {
.user-info-item {
display: flex;
height: 120rpx;
2022-09-14 16:15:22 +08:00
padding-left: 20rpx;
2022-09-13 18:23:31 +08:00
align-items: center;
2022-09-14 16:15:22 +08:00
border-bottom: 2rpx solid #f4f4f4;
2022-09-13 18:23:31 +08:00
}
}
</style>