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.
108 lines
2.4 KiB
108 lines
2.4 KiB
3 years ago
|
<template>
|
||
|
<view>
|
||
|
<uni-list>
|
||
2 years ago
|
<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')" />
|
||
3 years ago
|
</uni-list>
|
||
2 years ago
|
|
||
2 years ago
|
<view class="location">
|
||
|
<uni-list>
|
||
|
<uni-list-item :show-extra-icon="true" showArrow :extra-icon="locationIcon" title="意向城市">
|
||
|
|
||
|
</uni-list-item>
|
||
|
</uni-list>
|
||
|
</view>
|
||
|
|
||
|
<!-- <view v-if="auth('我的:退出账号')" class="logout" @click="logout">退出登录</view> -->
|
||
|
<view class="logout" @click="logout">退出登录</view>
|
||
3 years ago
|
</view>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
2 years ago
|
import { my } from '@/apis/modules/parner.js'
|
||
3 years ago
|
export default {
|
||
|
data() {
|
||
|
return {
|
||
|
phoneIcon: {
|
||
|
color: '#007eff',
|
||
|
size: '22',
|
||
|
type: 'phone'
|
||
|
},
|
||
|
mailIcon: {
|
||
|
color: '#007eff',
|
||
|
size: '22',
|
||
|
type: 'email'
|
||
|
},
|
||
3 years ago
|
accountIcon: {
|
||
|
color: '#007eff',
|
||
|
size: '22',
|
||
3 years ago
|
type: 'person'
|
||
3 years ago
|
},
|
||
3 years ago
|
pwdIcon: {
|
||
|
color: '#007eff',
|
||
|
size: '22',
|
||
|
type: 'locked'
|
||
3 years ago
|
},
|
||
2 years ago
|
locationIcon: {
|
||
|
color: '#007eff',
|
||
|
size: '22',
|
||
|
type: 'location'
|
||
|
},
|
||
2 years ago
|
info: {
|
||
|
account: '',
|
||
|
phone: '',
|
||
|
email: ''
|
||
|
}
|
||
3 years ago
|
}
|
||
|
},
|
||
2 years ago
|
onShow() {
|
||
|
this.getInfo()
|
||
|
},
|
||
3 years ago
|
methods: {
|
||
2 years ago
|
// 获取个人信息
|
||
|
getInfo() {
|
||
2 years ago
|
const { partnerId, teamId } = uni.getStorageSync('team')
|
||
2 years ago
|
my({
|
||
2 years ago
|
partnerId,
|
||
|
teamId
|
||
2 years ago
|
}).then(({ my }) => {
|
||
|
this.info = my.info
|
||
|
}).catch(e => {})
|
||
|
},
|
||
3 years ago
|
toPage(path) {
|
||
|
this.$util.to(path)
|
||
2 years ago
|
},
|
||
|
// 退出登录
|
||
|
logout() {
|
||
|
const that = this
|
||
|
uni.showModal({
|
||
|
title: '提示',
|
||
|
content: '确定要退出账号吗?',
|
||
|
success(res) {
|
||
|
if (res.confirm) {
|
||
|
uni.clearStorageSync()
|
||
2 years ago
|
that.$util.to('/pages/login/login')
|
||
2 years ago
|
}
|
||
|
}
|
||
|
})
|
||
3 years ago
|
}
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
|
||
2 years ago
|
<style scoped lang="scss">
|
||
2 years ago
|
.location {
|
||
|
margin-top: 30rpx;
|
||
|
}
|
||
2 years ago
|
.logout {
|
||
|
padding: 30rpx 0;
|
||
|
margin-top: 30rpx;
|
||
|
font-size: 28rpx;
|
||
|
color: #333;
|
||
|
text-align: center;
|
||
|
background-color: #fff;
|
||
|
}
|
||
3 years ago
|
</style>
|