aircraft-pilot/aircraft/server/my/my.vue

55 lines
927 B
Vue
Raw Normal View History

2025-07-02 14:58:38 +08:00
<template>
<view class="aircraft-my">
我的
<u-toast ref="uToast"></u-toast>
</view>
</template>
<script>
export default {
// #ifdef MP
options: {
styleIsolation: 'shared'
},
// #endif
props: {
topLevel:{
type: Number,
default: 0
},
isLogin: {
type: String,
default: ''
}
},
data(){
return{
// #ifdef MP
// 微信小程序自定义导航栏参数
StatusBar: this.StatusBar || 0,
CustomBarHeight: this.Custom.height+(this.Custom.top-this.StatusBar)*2 || 0,
// #endif
// 用户信息
userMessage:{}
// userMessage: this.$store.state.vuex_token === ''?{}:JSON.parse(this.$store.state.user_message),
}
},
computed:{
},
methods:{
// 初始化
init(){
if(this.isLogin !== ''){
this.userMessage = JSON.parse(this.$store.state.user_message);
}else{
this.userMessage = {};
}
}
}
}
</script>
<style scoped lang="scss">
.aircraft-my{
}
</style>