address-detail.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <template>
  2. <view>
  3. <scroll-view :scroll-y="modalName==null" class="page">
  4. <cu-custom :bgColor="NavBarColor" :isBack="true">
  5. <block slot="backText">返回</block>
  6. <block slot="content">个人信息</block>
  7. </cu-custom>
  8. <view class="cu-list menu-avatar margin-top">
  9. <view class="cu-item">
  10. <view class="cu-avatar round lg" v-if="infoList.avatar" :style="[{backgroundImage:'url('+ infoList.avatar +')'}]"></view>
  11. <view class="cu-avatar round lg" v-else :style="[{backgroundImage:'url('+ avatar +')'}]"></view>
  12. <view class="content">
  13. <view class="text-grey text-lg">{{infoList.realname?infoList.realname:infoList.username}}<text class="cuIcon-peoplefill margin-left-sm" :class="infoList.sex=='2'?'text-pink':'text-blue'"></text></view>
  14. <view class="text-gray text-sm flex">
  15. <view class="text-cut">
  16. {{infoList.post}}
  17. </view>
  18. </view>
  19. </view>
  20. </view>
  21. </view>
  22. <view class="cu-list menu margin-top">
  23. <view class="cu-item animation-slide-bottom" :style="[{animationDelay: '0.2s'}]">
  24. <view class="content">
  25. <text class="text-grey">手机</text>
  26. </view>
  27. <view class="action">
  28. <text class="text-grey">{{infoList.phone?infoList.phone:phone}}</text>
  29. </view>
  30. </view>
  31. <view class="cu-item animation-slide-bottom" :style="[{animationDelay: '0.3s'}]">
  32. <view class="content">
  33. <text class="text-grey">邮箱</text>
  34. </view>
  35. <view class="action">
  36. <text class="text-grey">{{infoList.email?infoList.email:email}}</text>
  37. </view>
  38. </view>
  39. <view class="cu-item animation-slide-bottom" :style="[{animationDelay: '0.4s'}]">
  40. <view class="content">
  41. <text class="text-grey">部门</text>
  42. </view>
  43. <view class="action">
  44. <text class="text-grey">{{infoList.departName?infoList.departName:company}}</text>
  45. </view>
  46. </view>
  47. </view>
  48. </scroll-view>
  49. </view>
  50. </template>
  51. <script>
  52. import {phone,email,company} from "@/common/util/constants"
  53. export default {
  54. data() {
  55. return {
  56. phone,
  57. email,
  58. company,
  59. NavBarColor:this.NavBarColor,
  60. avatar:'/static/login4.png',
  61. modalName: null,
  62. infoList:{
  63. realname:'',
  64. post:'',
  65. avatar:'',
  66. phone:null,
  67. email:'',
  68. department:'',
  69. title:''
  70. },
  71. };
  72. },
  73. onLoad() {
  74. this.infoList = this.$Route.query;
  75. console.log("this.infoList>>>",this.infoList)
  76. },
  77. methods: {
  78. backRoute() {
  79. //通讯录个人信息页面返回问题
  80. if(this.infoList.page){
  81. this.$Router.push({name:this.infoList.page})
  82. }else{
  83. let parmas={
  84. title:this.$Route.query.departName,
  85. orgCode:this.$Route.query.orgCode
  86. }
  87. this.$Router.push({name: 'member',params:parmas})
  88. }
  89. },
  90. }
  91. }
  92. </script>
  93. <style>
  94. .page {
  95. height: 100Vh;
  96. width: 100vw;
  97. }
  98. .page.show {
  99. overflow: hidden;
  100. }
  101. .switch-sex::after {
  102. content: "\e716";
  103. }
  104. .switch-sex::before {
  105. content: "\e7a9";
  106. }
  107. .switch-music::after {
  108. content: "\e66a";
  109. }
  110. .switch-music::before {
  111. content: "\e6db";
  112. }
  113. </style>