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.
110 lines
2.1 KiB
110 lines
2.1 KiB
<template> |
|
<view class="page"> |
|
<image class="bg" src="@/static/image/person-bg.png"></image> |
|
<view class="wrap"> |
|
<view class="info"> |
|
<image class="avatar" :src="avatar" mode=""></image> |
|
<view class="text"> |
|
<view class="name">{{ userName }}</view> |
|
<view class="phone">1356231564</view> |
|
</view> |
|
</view> |
|
<view class="list"> |
|
<view class="item"> |
|
<view class="left"> |
|
<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"> |
|
<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"> |
|
<image class="icon" src="@/static/image/person3.png" mode=""></image> |
|
<text class="name">设置</text> |
|
</view> |
|
</view> |
|
</view> |
|
</view> |
|
</view> |
|
</template> |
|
|
|
<script> |
|
export default { |
|
data() { |
|
return { |
|
avatar: uni.getStorageSync('avatar') || '@/static/image/avatar.png', |
|
userName: uni.getStorageSync('userName'), |
|
} |
|
}, |
|
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; |
|
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; |
|
} |
|
} |
|
</style>
|
|
|