system_popup.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <template>
  2. <view class="system_content column-c" :style="{paddingTop:`${$tools.topHeight()}px`}">
  3. <view class="column justify-center avatar r-100">
  4. <view class="avatar r-100" style="background-color: rgba(0, 0, 0, 0.1);"></view>
  5. <view class="row-c avatar_name m-l20">
  6. <image class="wh-100 r-circle" v-if="memberData.head_img" src="/static/img/index/index-avatar.png" mode=""></image>
  7. <image class="wh-100 r-circle" v-else :src="memberData.head_img" mode="aspectFill"></image>
  8. <view class="column m-l20">
  9. <text class="size-30 text-color-333">{{ memberData.name ? memberData.name : memberData.nickname }}</text>
  10. <text class="size-26 text-color-666">{{memberData.position_name?memberData.position_name:'无'}}</text>
  11. </view>
  12. </view>
  13. </view>
  14. <view class="system_item">
  15. <view class="row-c p-tb25" v-for="(item,index) in systemList" :key="index" @click="onGoSetting(item)">
  16. <image class="m-r20" :src="item.icon" mode=""></image>
  17. <text class="size-28 text-color-333">{{item.name}}</text>
  18. </view>
  19. </view>
  20. </view>
  21. </template>
  22. <script>
  23. export default {
  24. props:{
  25. memberData:{
  26. default:{
  27. position_name: "",
  28. head_img: "",
  29. id: 5,
  30. name: "",
  31. nickname: "",
  32. phone: "",
  33. }
  34. }
  35. },
  36. data() {
  37. return {
  38. topNavHeight: null,
  39. systemList: [{
  40. icon: "/static/img/index/index-info.png",
  41. name: '个人信息',
  42. id: 1
  43. }, {
  44. icon: "/static/img/index/index-lock.png",
  45. name: '修改密码',
  46. id: 2
  47. }, {
  48. icon: "/static/img/index/index-phone.png",
  49. name: '修改手机号',
  50. id: 3
  51. }, {
  52. icon: "/static/img/index/index-phone.png",
  53. name: '邀请二维码',
  54. id: 4
  55. }, ]
  56. }
  57. },
  58. created() {
  59. this.topNavHeight = getApp().globalData.topNavHeight
  60. },
  61. methods: {
  62. moveHandle() {
  63. return false
  64. },
  65. onGoSetting(item) {
  66. if (item.id == 1) {
  67. return uni.navigateTo({
  68. url: `/page_subpack/personal_details/personal_details?id=${item.id}&title=${item.name}`
  69. })
  70. }
  71. uni.navigateTo({
  72. url: `/page_subpack/system_setting/system_setting?id=${item.id}&title=${item.name}`
  73. })
  74. }
  75. }
  76. }
  77. </script>
  78. <style lang="scss" scoped>
  79. .system_content {
  80. width: 375rpx;
  81. height: 100vh;
  82. background-image: url("https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/index/popup_bg.png");
  83. background-repeat: no-repeat;
  84. background-size: 100% 100%;
  85. }
  86. .avatar {
  87. width: 315rpx;
  88. height: 140rpx;
  89. }
  90. .avatar_name {
  91. position: absolute;
  92. }
  93. .system_item {
  94. width: 315rpx;
  95. margin-top: 50rpx;
  96. image {
  97. width: 30rpx;
  98. height: 32rpx;
  99. }
  100. }
  101. </style>