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.
95 lines
1.6 KiB
95 lines
1.6 KiB
3 years ago
|
<template>
|
||
|
<view class="page">
|
||
|
<view class="top">
|
||
|
<view class="box">
|
||
|
<view class="portrait">
|
||
|
<img src="../../static/logo.png" alt="">
|
||
|
</view>
|
||
|
<view class="information">
|
||
|
<view class="name">
|
||
|
{{list.name}}
|
||
|
</view>
|
||
|
<view class="organization">
|
||
|
{{list.organizationName}}
|
||
|
</view>
|
||
|
</view>
|
||
|
</view>
|
||
|
</view>
|
||
|
<view class="items">
|
||
|
<view class="item">
|
||
|
<view class="text" @tap="changePassword()">
|
||
|
修改密码
|
||
|
</view>
|
||
|
</view>
|
||
|
</view>
|
||
|
</view>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
data() {
|
||
|
return {
|
||
|
list:{}
|
||
|
}
|
||
|
},
|
||
|
onLoad() {
|
||
|
this.list=uni.getStorageSync("user")
|
||
|
console.log(this.list);
|
||
|
},
|
||
|
methods: {
|
||
|
changePassword(){
|
||
|
console.log(123);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<style lang="scss">
|
||
|
.page {
|
||
|
|
||
|
|
||
|
.top{
|
||
|
background: linear-gradient(180deg, #317AFF 0%, #ACD1FF 100%);
|
||
|
height: 300rpx;
|
||
|
padding: 20rpx 40rpx;
|
||
|
.box{
|
||
|
display: flex;
|
||
|
.portrait{
|
||
|
width: 150rpx;
|
||
|
height: 150rpx;
|
||
|
border-radius: 150rpx;
|
||
|
border: 6rpx solid #fff;
|
||
|
img{
|
||
|
width: 100%;
|
||
|
height: 100%;
|
||
|
border-radius: 150rpx;
|
||
|
}
|
||
|
}
|
||
|
.information{
|
||
|
color: #fff;
|
||
|
margin: 30rpx 20rpx;
|
||
|
font-size: 36rpx;
|
||
|
.name{
|
||
|
margin-bottom: 20rpx;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
.items{
|
||
|
width: 100%;
|
||
|
margin-top: -40rpx;
|
||
|
.item{
|
||
|
background-color: #fff;
|
||
|
width: 90%;
|
||
|
margin: 0 auto;
|
||
|
height: 80rpx;
|
||
|
line-height: 80rpx;
|
||
|
border-radius: 10rpx;
|
||
|
padding-left: 20rpx;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
</style>
|