system_popup.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. <template>
  2. <view class="system_content column-justify-sb center">
  3. <view :style="{marginTop:`${$tools.topHeight()}px`}">
  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"
  8. mode="aspectFill"></image>
  9. <image class="wh-100 r-circle" v-else :src="memberData.head_img" mode="aspectFill"></image>
  10. <view class="column m-l20">
  11. <view class="size-30 text-color-333">
  12. {{ memberData.name ? memberData.name : memberData.nickname }}
  13. </view>
  14. <text
  15. class="size-26 text-color-666">{{memberData.position_name?memberData.position_name:'无'}}</text>
  16. </view>
  17. </view>
  18. </view>
  19. <view class="system_item">
  20. <view class="row-c p-tb25" v-for="(item,index) in systemList" :key="index" @click="onGoSetting(item)">
  21. <image class="m-r20" :src="item.icon" mode=""></image>
  22. <text class="size-28 text-color-333">{{item.name}}</text>
  23. </view>
  24. </view>
  25. </view>
  26. <!-- <view class="system-quit size-28 button-color sys-weight-600" style="position: relative;">
  27. <view class="system-quit button-text">
  28. 退出登录
  29. </view>
  30. </view> -->
  31. <view class="system-button m-b50">
  32. <view class="system-quit">
  33. </view>
  34. <view class="system-button button-text size-28 button-color sys-weight-600">
  35. 退出登录
  36. </view>
  37. </view>
  38. </view>
  39. </template>
  40. <script>
  41. export default {
  42. props: {
  43. memberData: {
  44. default: {
  45. position_name: "",
  46. head_img: "",
  47. id: 5,
  48. name: "",
  49. nickname: "",
  50. phone: "",
  51. }
  52. }
  53. },
  54. data() {
  55. return {
  56. topNavHeight: null,
  57. systemList: [{
  58. icon: "/static/img/index/index-info.png",
  59. name: '个人信息',
  60. id: 1
  61. }, {
  62. icon: "/static/img/index/index-lock.png",
  63. name: '修改密码',
  64. id: 2
  65. }, {
  66. icon: "/static/img/index/index-phone.png",
  67. name: '修改手机号',
  68. id: 3
  69. }, {
  70. icon: "/static/img/index/index-phone.png",
  71. name: '邀请二维码',
  72. id: 4
  73. }, ]
  74. }
  75. },
  76. created() {
  77. this.topNavHeight = getApp().globalData.topNavHeight
  78. },
  79. methods: {
  80. moveHandle() {
  81. return false
  82. },
  83. onGoSetting(item) {
  84. if (item.id == 1) {
  85. return uni.navigateTo({
  86. url: `/page_subpack/personal_details/personal_details?id=${item.id}&title=${item.name}`
  87. })
  88. } else {
  89. uni.navigateTo({
  90. url: `/pages/login/index`
  91. })
  92. }
  93. // uni.navigateTo({
  94. // url: `/page_subpack/system_setting/system_setting?id=${item.id}&title=${item.name}`
  95. // })
  96. }
  97. }
  98. }
  99. </script>
  100. <style lang="scss" scoped>
  101. .system_content {
  102. width: 375rpx;
  103. height: 100vh;
  104. background-image: url("https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/index/popup_bg.png");
  105. background-repeat: no-repeat;
  106. background-size: 100% 100%;
  107. }
  108. .avatar {
  109. width: 315rpx;
  110. height: 140rpx;
  111. }
  112. .avatar_name {
  113. position: absolute;
  114. }
  115. .system_item {
  116. width: 315rpx;
  117. margin-top: 50rpx;
  118. image {
  119. width: 30rpx;
  120. height: 32rpx;
  121. }
  122. }
  123. .system-button {
  124. width: 335rpx;
  125. height: 90rpx;
  126. line-height: 90rpx;
  127. text-align: center;
  128. position: relative;
  129. }
  130. .system-quit {
  131. width: 335rpx;
  132. height: 90rpx;
  133. line-height: 90rpx;
  134. background: #3ABF7D;
  135. opacity: 0.3;
  136. border-radius: 30rpx;
  137. .quit-active {
  138. opacity: 1;
  139. }
  140. }
  141. .button-text {
  142. position: absolute;
  143. top: 0;
  144. }
  145. </style>