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.
|
|
|
<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">{{ my.info.userName }}</view>
|
|
|
|
<view class="phone">{{ my.info.phone }}</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="list">
|
|
|
|
<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>
|
|
|
|
import { my } from '@/apis/modules/parner.js'
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
my: {
|
|
|
|
info: {},
|
|
|
|
},
|
|
|
|
avatar: uni.getStorageSync('avatar') || '@/static/image/avatar.png',
|
|
|
|
userName: uni.getStorageSync('userName')
|
|
|
|
}
|
|
|
|
},
|
|
|
|
onShow() {
|
|
|
|
this.getInfo()
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
// 获取个人信息
|
|
|
|
getInfo() {
|
|
|
|
my().then(({ my }) => {
|
|
|
|
this.my = my
|
|
|
|
}).catch(e => {})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
.bg {
|
|
|
|
width: 100%;
|
|
|
|
height: 300rpx;
|
|
|
|
}
|
|
|
|
.wrap {
|
|
|
|
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>
|