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.

68 lines
1.6 KiB

<template>
<view>
<uni-list>
<uni-list-item :show-extra-icon="true" showArrow :extra-icon="phoneIcon" title="手机号" :rightText="info.phone" clickable @click="toPage('../phone/phone')" />
<uni-list-item :show-extra-icon="true" showArrow :extra-icon="mailIcon" title="邮箱" :rightText="info.email" clickable @click="toPage('../email/email')" />
<uni-list-item :show-extra-icon="true" showArrow :extra-icon="accountIcon" title="账号" :rightText="info.account" clickable @click="toPage('../account/account')" />
<uni-list-item :show-extra-icon="true" showArrow :extra-icon="pwdIcon" title="密码" rightText="******" clickable @click="toPage('../password/password')" />
</uni-list>
</view>
</template>
<script>
2 years ago
import { my } from '@/apis/modules/parner.js'
export default {
data() {
return {
phoneIcon: {
color: '#007eff',
size: '22',
type: 'phone'
},
mailIcon: {
color: '#007eff',
size: '22',
type: 'email'
},
2 years ago
accountIcon: {
color: '#007eff',
size: '22',
2 years ago
type: 'person'
2 years ago
},
pwdIcon: {
color: '#007eff',
size: '22',
type: 'locked'
2 years ago
},
2 years ago
info: {
account: '',
phone: '',
email: ''
}
}
},
2 years ago
onShow() {
this.getInfo()
},
methods: {
2 years ago
// 获取个人信息
getInfo() {
const team = uni.getStorageSync('team')
my({
partnerId: team.partnerId,
teamId: team.teamId
}).then(({ my }) => {
this.info = my.info
}).catch(e => {})
},
toPage(path) {
this.$util.to(path)
}
}
}
</script>
<style>
</style>