mes_mobile/pages/person/accountCenter.vue

109 lines
2.7 KiB
Vue
Raw Normal View History

2024-04-11 18:54:43 +08:00
<template>
<view class="person_page page_padding font13">
2024-01-15 14:02:04 +08:00
<view class="person_dataA contentboxsty">
2024-02-19 16:53:38 +08:00
<view class="content_box logo_box">
2024-01-15 14:02:04 +08:00
<view class="data_name">头像</view>
<view class="">
2024-02-19 16:53:38 +08:00
<button class="person_button" open-type="chooseAvatar" @chooseavatar='onChooseAvatar'>
<image class="person_logo" :src="avatarUrl"></image>
</button>
2024-01-15 14:02:04 +08:00
</view>
</view>
<view class="content_box">
<view class="data_name">真实姓名</view>
<view class="">
>
</view>
</view>
<view class="content_box noborbot">
<view class="data_name">登录名</view>
<view class="">
</view>
</view>
</view>
<view class="person_dataB contentboxsty">
<view class="content_box" @click="toChangPhone()">
<view class="data_name">手机号</view>
<view class=""></view>
</view>
<view class="content_box noborbot">
<view class="data_name">微信</view>
<view class=""></view>
</view>
</view>
<view class="person_dataC contentboxsty">
<view class="content_box">
<view class="data_name">设备故障通知</view>
2024-03-13 16:07:11 +08:00
<view class="">
</view>
2024-01-15 14:02:04 +08:00
</view>
<view class="content_box">
<view class="data_name">出材率预警通知</view>
<view class=""></view>
</view>
<view class="content_box noborbot">
<view class="data_name">设备保修通知</view>
<view class=""></view>
</view>
</view>
<view class="person_dataD contentboxsty">
<view class="content_box noborbot">
<view class="data_name">清除缓存</view>
<view class=""></view>
</view>
2024-04-11 18:54:43 +08:00
</view>
</view>
</template>
2024-02-19 16:53:38 +08:00
<script>
const defaultAvatarUrl = 'https://mmbiz.qpic.cn/mmbiz/icTdbqWNOwNRna42FI242Lcia07jQodd2FJGIYQfG0LAJGFxM4FbnQP6yfMxBgJ0F3YRqJCJ1aPAK2dQagdusBZg/0';
2024-04-11 18:54:43 +08:00
export default {
data() {
return {
avatarUrl:defaultAvatarUrl
}
},
2024-01-15 14:02:04 +08:00
methods: {
2024-02-19 16:53:38 +08:00
onChooseAvatar(e) {
uni.showToast({
title:'成功',
duration:1000
})
this.avatarUrl = e.detail.avatarUrl
},
2024-04-11 18:54:43 +08:00
//跳转更改手机号页面
2024-01-15 14:02:04 +08:00
toChangPhone(){
2024-03-13 16:07:11 +08:00
uni.navigateTo({
url: '/pages/person/changePhone'
})
2024-04-11 18:54:43 +08:00
}
}
}
</script>
2024-01-15 14:02:04 +08:00
<style lang="scss" >
.person_page{
.person_dataA{
padding: 0 14px;
margin-bottom: 12px;
}
.person_dataB{padding: 0 14px;margin-bottom: 12px;}
.person_dataC{padding: 0 14px;margin-bottom: 12px;}
.person_dataD{padding: 0 14px;}
2024-02-19 16:53:38 +08:00
.content_box{
display: flex;align-items: center;height: 44px;border-bottom: 1px solid #2D3A6F;
}
.logo_box{height: 64px;
.person_button{width: 40px;height: 40px;border-radius: 50%;padding: 0;}
.person_logo{width: 40px;height: 40px;}
}
2024-01-15 14:02:04 +08:00
.data_name{flex: 1;}
2024-03-13 16:07:11 +08:00
}
2024-04-11 18:54:43 +08:00
</style>