瀏覽代碼

个人信息展示

dmy 5 年之前
父節點
當前提交
f7d84b813f
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      _src/components/popup/otherInfo/index.js
  2. 2 2
      _src/components/popup/otherInfo/index.vue

+ 1 - 1
_src/components/popup/otherInfo/index.js

@@ -18,7 +18,7 @@ otherInfo.install = function (Vue, store, router) {
       },
       data () {
         return {
-          visible: true,
+          visible: false,
           userId
         }
       }

+ 2 - 2
_src/components/popup/otherInfo/index.vue

@@ -114,13 +114,13 @@ export default {
     }
   },
   created () {
-    this.userInfo = this.members[this.userId]
-    console.log(this.userInfo)
     API.user.getOtherInfo({
       target_id: this.userId,
       group_id: this.groupId || null
     }).then(({ data }) => {
       this.accountList = data.data.binds
+      this.userInfo = data.data
+      this.visible = true
     })
   }
 }