YNUtdPlatform/pages/workPlan/my/index.vue

72 lines
1.3 KiB
Vue
Raw Normal View History

2024-10-24 08:54:23 +08:00
<template>
<view>
<u-navbar
class="u-navbar"
title="我的"
placeholder
@leftClick="leftClick"
leftIconColor="#fff"
bgColor="#00337A"
:titleStyle="{ color: '#FFF', fontSize: '32rpx' }"
/>
<view class="header-user">
2024-10-25 18:21:10 +08:00
<view>{{ userName }}</view>
<view>{{ userPhone }}</view>
2024-10-24 08:54:23 +08:00
</view>
<view class="message-push">
<uni-icons type="email" size="30" style="color: #9da7b0; margin-right: 36rpx"></uni-icons>
短信推送
</view>
<m-tabbar fixed fill :current="2" :tabbar="tabbar"></m-tabbar>
</view>
</template>
<script>
import TabbarConfig from '../util/tabbar'
export default {
data() {
return {
2024-10-25 18:21:10 +08:00
tabbar: TabbarConfig,
userName: '',
userPhone: ''
2024-10-24 08:54:23 +08:00
}
2024-10-25 18:21:10 +08:00
},
methods: {
leftClick() {
uni.navigateBack()
}
},
onLoad() {
this.userName = uni.getStorageSync('wkName')
this.userPhone = uni.getStorageSync('userPhone')
2024-10-24 08:54:23 +08:00
}
}
</script>
<style lang="scss" scoped>
.header-user {
padding: 60rpx 0 18rpx 60rpx;
background-color: #f2f6f9;
color: #003778;
view {
padding: 8rpx 0;
font-size: 30rpx;
}
}
.message-push {
margin-top: 24rpx;
padding-left: 60rpx;
padding: 30rpx 0 30rpx 60rpx;
display: flex;
align-items: center;
background-color: #f2f6f9;
color: #9da7b0;
font-size: 28rpx;
}
</style>