Просмотр исходного кода

feat(profile): 去掉'我的'页面 Tab 切换过渡页

iwt 2 месяцев назад
Родитель
Сommit
11967b2671

+ 2 - 9
cfc-frontend/pages/profile-main/profile.vue

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

+ 1 - 1
cfc-web/.last_build_commit

@@ -1 +1 @@
-183bc0c60b2475eee473468621a2daf6339017f1
+8f64c7a65f1c5d33690aad7242bdb9d898ae4947

+ 2 - 2
cfc-web/package-lock.json

@@ -1,12 +1,12 @@
 {
   "name": "cfc-web",
-  "version": "1.0.891",
+  "version": "1.0.892",
   "lockfileVersion": 3,
   "requires": true,
   "packages": {
     "": {
       "name": "cfc-web",
-      "version": "1.0.891",
+      "version": "1.0.892",
       "dependencies": {
         "@wangeditor/editor": "^5.1.23",
         "@wangeditor/editor-for-vue": "^1.0.2",