|
@@ -1,6 +1,5 @@
|
|
|
<template>
|
|
<template>
|
|
|
<view class="container">
|
|
<view class="container">
|
|
|
- <tab-transition v-if="showTabTransition" dimCode="wealth" ref="tabTransition" @close="showTabTransition = false" />
|
|
|
|
|
|
|
|
|
|
<!-- 未登录 -->
|
|
<!-- 未登录 -->
|
|
|
<view v-if="!isLoggedIn" class="login-prompt">
|
|
<view v-if="!isLoggedIn" class="login-prompt">
|
|
@@ -260,7 +259,6 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
-import TabTransition from '../../components/tab-transition.vue'
|
|
|
|
|
import AIFloatingAvatar from '../../components/AIFloatingAvatar.vue'
|
|
import AIFloatingAvatar from '../../components/AIFloatingAvatar.vue'
|
|
|
import {
|
|
import {
|
|
|
getChildren, getVisibleFamilyMembers, getFamilyEnergySandbox,
|
|
getChildren, getVisibleFamilyMembers, getFamilyEnergySandbox,
|
|
@@ -270,10 +268,9 @@ import {
|
|
|
} from '../../utils/api.js'
|
|
} from '../../utils/api.js'
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
- components: { TabTransition, AIFloatingAvatar },
|
|
|
|
|
|
|
+ components: { AIFloatingAvatar },
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
- showTabTransition: true,
|
|
|
|
|
nickname: '',
|
|
nickname: '',
|
|
|
role: 'parent',
|
|
role: 'parent',
|
|
|
isSwitchedChild: false,
|
|
isSwitchedChild: false,
|
|
@@ -317,7 +314,6 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
onShow() {
|
|
onShow() {
|
|
|
- this.showTabTransition = true
|
|
|
|
|
if (!this.isLoggedIn) {
|
|
if (!this.isLoggedIn) {
|
|
|
this._watchPageReady()
|
|
this._watchPageReady()
|
|
|
return
|
|
return
|
|
@@ -335,10 +331,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
_watchPageReady() {
|
|
_watchPageReady() {
|
|
|
- var self = this
|
|
|
|
|
- this.$nextTick(function() {
|
|
|
|
|
- if (self.$refs.tabTransition) self.$refs.tabTransition.markReady()
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ this.loadAllData()
|
|
|
},
|
|
},
|
|
|
loadAllData() {
|
|
loadAllData() {
|
|
|
this.loadUserInfo()
|
|
this.loadUserInfo()
|