profile.vue 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <template>
  2. <view class="u-m-20">
  3. <u-navbar :border-bottom="false" :is-back="true" title="个人信息">
  4. </u-navbar>
  5. <view>
  6. <u-cell-group>
  7. <u-cell-item :arrow="false" hover-class="none" title="用户名">{{ vuex_user.user.userName }}</u-cell-item>
  8. <u-cell-item :arrow="false" hover-class="none" title="手机号">{{ vuex_user.user.phonenumber }}</u-cell-item>
  9. <u-cell-item :arrow="false" hover-class="none" title="真实姓名">{{ vuex_user.user.nickName }}</u-cell-item>
  10. </u-cell-group>
  11. <!-- <u-cell-group>
  12. <u-cell-item title="邀请码"></u-cell-item>
  13. </u-cell-group> -->
  14. </view>
  15. <!-- <view class="u-m-t-20">
  16. <u-button type="primary" @click="subProfile">提交</u-button>
  17. </view> -->
  18. </view>
  19. </template>
  20. <script>
  21. export default {
  22. data() {
  23. return {
  24. value: false,
  25. }
  26. },
  27. created() {
  28. this.address = uni.getStorageSync('lifeData').vuex_user.address;
  29. },
  30. methods: {
  31. subProfile() {
  32. // 1.更新vuex中的用户信息
  33. this.$mytip.toast('修改成功')
  34. // 2.页面跳转
  35. uni.switchTab({
  36. url: '/pages/center/center'
  37. })
  38. },
  39. }
  40. }
  41. </script>