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.

111 lines
2.1 KiB

3 years ago
<template>
<view class="page">
3 years ago
<image class="bg" src="@/static/image/person-bg.png"></image>
<view class="wrap">
<view class="info">
3 years ago
<image class="avatar" :src="avatar" mode=""></image>
<view class="text">
3 years ago
<view class="name">{{ userName }}</view>
<view class="phone">1356231564</view>
</view>
</view>
<view class="list">
<view class="item">
<view class="left">
3 years ago
<image class="icon" src="@/static/image/person1.png" mode=""></image>
<text class="name">我的收益</text>
</view>
<text class="val">231323</text>
</view>
<view class="item">
<view class="left">
3 years ago
<image class="icon" src="@/static/image/person2.png" mode=""></image>
<text class="name">团队收益</text>
</view>
<text class="val">231323</text>
</view>
<view class="item" @click="$util.to('../setting/setting')">
<view class="left">
3 years ago
<image class="icon" src="@/static/image/person3.png" mode=""></image>
<text class="name">设置</text>
</view>
</view>
</view>
</view>
3 years ago
</view>
</template>
<script>
export default {
data() {
return {
3 years ago
avatar: uni.getStorageSync('avatar') || '@/static/image/avatar.png',
userName: uni.getStorageSync('userName'),
3 years ago
}
},
methods: {
}
}
</script>
<style scoped lang="scss">
.bg {
width: 100%;
height: 300rpx;
}
.wrap {
z-index: 2;
position: relative;
padding: 0 24rpx;
margin-top: -150rpx;
}
.info {
display: flex;
align-items: center;
padding: 26rpx 34rpx;
background-color: #fff;
border-radius: 16rpx;
.avatar {
width: 120rpx;
height: 120rpx;
margin-right: 28rpx;
3 years ago
border-radius: 50%;
}
.name {
margin-bottom: 10rpx;
font-size: 40rpx;
color: #333;
}
.phone {
font-size: 28rpx;
color: #333;
}
}
.list {
margin-top: 16rpx;
.item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 26rpx 28rpx;
margin-bottom: 16rpx;
background-color: #fff;
border-radius: 16rpx;
}
.left {
display: inline-flex;
align-items: center;
}
.icon {
width: 48rpx;
height: 48rpx;
margin-right: 16rpx;
}
text {
font-size: 28rpx;
color: #333;
}
}
3 years ago
</style>