Personalinformation.vue 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <template>
  2. <view class="OutermostLayer">
  3. <view class="Personalinformation">
  4. <u-cell-group>
  5. <u-cell
  6. size="large"
  7. title="用户名"
  8. :value="getuserInfo.realName"
  9. ></u-cell>
  10. <u-cell
  11. size="large"
  12. title="手机"
  13. :value="getuserInfo.mobile"
  14. ></u-cell>
  15. <u-cell
  16. size="large"
  17. title="邮箱"
  18. :value="getuserInfo.email"
  19. ></u-cell>
  20. <u-cell
  21. size="large"
  22. title="性别"
  23. :value="getuserInfo.gender==0?'男':'女'"
  24. ></u-cell>
  25. <!--<u-cell-->
  26. <!--size="large"-->
  27. <!--title="地址"-->
  28. <!--value="安徽省合肥市"-->
  29. <!--&gt;</u-cell>-->
  30. <u-cell
  31. size="large"
  32. title="部门"
  33. value="合肥传秀科技技术部"
  34. ></u-cell>
  35. <!--<u-cell-->
  36. <!--size="large"-->
  37. <!--title="职位"-->
  38. <!--value="前端工程师"-->
  39. <!--&gt;</u-cell>-->
  40. <u-cell
  41. size="large"
  42. title="个人信息"
  43. value="修改"
  44. isLink
  45. @click="editdata"
  46. ></u-cell>
  47. </u-cell-group>
  48. </view>
  49. </view>
  50. </template>
  51. <script>
  52. export default {
  53. data() {
  54. return {
  55. getuserInfo:{},
  56. };
  57. },
  58. onLoad() {
  59. this.getuserInfo = uni.getStorageSync('getuserInfo');
  60. // console.log('111111111111111111', this.getuserInfo)
  61. // this.getappuserdata();
  62. },
  63. methods: {
  64. // getappuserdata(){
  65. // this.$api.get('/user/'+this.getuserInfo.id,{})
  66. // .then(res=>{
  67. // console.log('111111111111111111',res)
  68. //
  69. // })
  70. // },
  71. editdata(){
  72. uni.navigateTo({
  73. url: '/pages/my/Personalinformation/Informationmodification/Informationmodification'
  74. })
  75. },
  76. }
  77. }
  78. </script>
  79. <style lang="scss">
  80. .Personalinformation{
  81. padding: 30rpx;
  82. }
  83. </style>