55 lines
927 B
Vue
55 lines
927 B
Vue
<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> |