system_popup.vue 2.2 KB

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