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.

98 lines
2.6 KiB

2 years ago
<style lang="scss">
2 years ago
.container{
2 years ago
min-height:100%;
background:#F6F6F6;
&>.head{
width:100%;
padding-top:var(--status-bar-height);
background:#10C176;
margin-bottom:-190rpx;
}
&>.card{
position:relative;
min-height:900rpx;
justify-content: flex-start;
z-index: 10;
margin:0;
display: flex;
flex-direction: column;
2 years ago
.u-transition{
2 years ago
margin:-120rpx auto 10rpx auto;
}
.name{
font-weight: bold;
font-size:32rpx;
margin:0 auto;
}
.phone{
font-size:26rpx;
color:#333;
margin: 10rpx auto 30rpx auto;
}
.item{
height:90rpx;
display:flex;
align-items: center;
border-bottom:2rpx solid rgba(216, 216, 216, 0.2);
text{
&:first-child{
color:#10C176;
2 years ago
font-size:36rpx;
2 years ago
margin-right:32rpx;
}
&:nth-child(3){
margin-left:auto;
}
}
}
}
}
</style>
<template>
2 years ago
<view class="container">
2 years ago
<image class="head" src="@/static/my_head.png" mode="aspectFit"/>
<view class="card">
2 years ago
<u-image radius="50%" width="140rpx" height="140rpx" :src="`${host('imgUrl')}/${$store.getters['userInfo'].avatar}`" mode="aspectFill" @click="reHeadImg">
<image slot="error" style="width:140rpx;height:140rpx;border-radius:50%;" src="@/static/userHeader.png" mode="aspectFill"/>
</u-image>
2 years ago
<text class="name">{{$store.getters.userInfo.realname}}</text>
<text class="phone">{{$store.getters.userInfo.phone}}</text>
2 years ago
<view class="item" @click="$u.route({url:'pages/home/personalInfo'})">
<text class="plant-gerenzhongxinwode"/> <text>个人信息</text> <text class="plant-youbian"/>
</view>
2 years ago
<view class="item" @click="$u.route({url:'pages/home/rePassword'})">
<text class="plant-icon2"/> <text>修改密码</text> <text class="plant-youbian"/>
2 years ago
</view>
2 years ago
<view class="item" @click="$u.route({url:'/pages/purchase/record'})">
2 years ago
<text class="plant-liulanjilu-tianchong"/> <text>采购记录</text> <text class="plant-youbian"/>
2 years ago
</view>
<view class="item" @click="$u.route({url:'/pages/stock/mana'})">
2 years ago
<text class="plant-kufangguanli-lingyongguihuan"/> <text>领用记录</text> <text class="plant-youbian"/>
</view>
<view class="item" @click="$store.commit('outLogin')">
2 years ago
<text class="plant-tuichu"/> <text>退出</text> <text class="plant-youbian"/>
</view>
</view>
</view>
</template>
<script>
2 years ago
import {host} from '@/common/request'
2 years ago
export default{
data(){
return{
2 years ago
host,
2 years ago
}
},
onLoad(options){
this.$nextTick(()=>{
if(options.toPage){
uni.navigateTo({url:`/pages/purchase/${options.toPage}`})
}
})
},
2 years ago
methods:{
}
}
</script>