<template>
  <view class="u-m-20">
    <u-navbar :border-bottom="false" :is-back="true" title="个人信息">
    </u-navbar>
    <view>
      <u-cell-group>
        <u-cell-item :arrow="false" hover-class="none" title="用户名">{{ vuex_user.user.userName }}</u-cell-item>
        <u-cell-item :arrow="false" hover-class="none" title="手机号">{{ vuex_user.user.phonenumber }}</u-cell-item>
        <u-cell-item :arrow="false" hover-class="none" title="真实姓名">{{ vuex_user.user.nickName }}</u-cell-item>
      </u-cell-group>
      <!-- <u-cell-group>
        <u-cell-item title="邀请码"></u-cell-item>
      </u-cell-group> -->
    </view>

    <!-- <view class="u-m-t-20">
      <u-button type="primary" @click="subProfile">提交</u-button>
    </view> -->
  </view>
</template>

<script>
export default {
  data() {
    return {
      value: false,
    }
  },
  created() {
    this.address = uni.getStorageSync('lifeData').vuex_user.address;
  },
  methods: {
    subProfile() {
      // 1.更新vuex中的用户信息
      this.$mytip.toast('修改成功')
      // 2.页面跳转
      uni.switchTab({
        url: '/pages/center/center'
      })
    },
  }
}
</script>