<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script>
export default {
  // name: "App"
  data() {
    return {

    };
  },
  mounted(){
    this.getuserinfo();
  },
  created() {
   
  },

  methods: {
    // 获取用户信息
    getuserinfo() {
      let that = this;
      var url = "/api/member/index";
      var params = {};
      console.log("7766554", params);
      that.$axios
        .post(url, params)
        .then(res => {
          console.log(res)
          localStorage.setItem("avatar", res.data.avatar)
          localStorage.setItem("address", res.data.address)
          localStorage.setItem("nickname", res.data.nickname)
          localStorage.setItem("label", JSON.stringify(res.data.label))


        })
        .catch(err => {
          console.log(err)
        });
    },
  }

};
</script>

<style>
body,
html {
  background: #f5f5f5;
}
.container{
  overflow-x:hidden;
}
#app {
}
/* a标签去除默认样式 */
/*包含以下四种的链接*/
a {
  text-decoration: none;
}
/*正常的未被访问过的链接*/
a:link {
  text-decoration: none;
}
/*已经访问过的链接*/
a:visited {
  text-decoration: none;
}
/*鼠标划过(停留)的链接*/
a:hover {
  text-decoration: none;
}
/* 正在点击的链接*/
a:active {
  text-decoration: none;
}
img {
  width: 100%;
  height: 100%;
}
.tieziwordbox p img{
    width: 100%!important;
  height: 100%!important;
}
textarea {
  border: none;
  outline: none;
}
input {
  border: none;
  outline: none;
}
.van-tabbar--fixed {
  height: 1rem !important;
}
.van-tabbar-item__text {
  font-size: 0.12rem !important;
  margin-top: 0.05rem !important;
}

.flex {
  display: flex;
}

.flexone {
  display: flex;
  align-items: center;
}

.flextwo {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flexthree {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flexfour {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.flexfive {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
}
.register {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
}
</style>