system_popup.vue 2.5 KB

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