my.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <template>
  2. <view class="container my-index">
  3. <img class="user-header-image" src="../../static/image/my/banner.png" alt="" />
  4. <!-- 用户信息 - 开始 -->
  5. <view class="user-info-box">
  6. <img class="img" src="../../static/image/login/logo.png" alt="" />
  7. <view class="user-info-right">
  8. <view class="user-nickname" @click="goPage('/pages/login/login')">登录/注册</view>
  9. </view>
  10. </view>
  11. <!-- 用户信息 - 结束 -->
  12. <view class="user-activity-menu">
  13. <view class="menu-item">
  14. <view class="left">
  15. <uni-icons type="home" size="24" color="#535353"></uni-icons>
  16. <view class="menu-name">我的房源</view>
  17. </view>
  18. <uni-icons type="right" size="20" color="#717171"></uni-icons>
  19. </view>
  20. <view class="menu-item">
  21. <view class="left">
  22. <uni-icons type="wallet" size="24" color="#535353"></uni-icons>
  23. <view class="menu-name">缴费管理</view>
  24. </view>
  25. <uni-icons type="right" size="20" color="#717171"></uni-icons>
  26. </view>
  27. <view class="menu-item">
  28. <view class="left">
  29. <uni-icons type="calendar" size="24" color="#535353"></uni-icons>
  30. <view class="menu-name">发票管理</view>
  31. </view>
  32. <uni-icons type="right" size="20" color="#717171"></uni-icons>
  33. </view>
  34. </view>
  35. </view>
  36. </template>
  37. <script>
  38. export default {
  39. data() {
  40. return {};
  41. },
  42. created() {},
  43. onShow() {},
  44. methods: {
  45. /* 跳转页面 */
  46. goPage(page) {
  47. uni.navigateTo({
  48. url: page
  49. })
  50. }
  51. }
  52. }
  53. </script>
  54. <style lang="scss">
  55. .my-index {
  56. position: relative;
  57. .user-header-image {
  58. width: 100%;
  59. height: 320rpx;
  60. object-fit: cover;
  61. }
  62. .user-info-box {
  63. background: #ffffff;
  64. padding: 30rpx;
  65. position: absolute;
  66. border-radius: 20rpx;
  67. display: flex;
  68. align-items: center;
  69. top: 250rpx;
  70. left: 30rpx;
  71. right: 30rpx;
  72. .img {
  73. width: 100rpx;
  74. height: 100rpx;
  75. border-radius: 10rpx;
  76. }
  77. .user-info-right {
  78. margin-left: 20rpx;
  79. }
  80. }
  81. .user-activity-menu {
  82. margin: 30rpx;
  83. margin-top: 120rpx;
  84. border-radius: 20rpx;
  85. background: #fff;
  86. .menu-item {
  87. display: flex;
  88. align-items: center;
  89. justify-content: space-between;
  90. height: 96rpx;
  91. padding: 0 30rpx;
  92. .left {
  93. display: flex;
  94. align-items: center;
  95. .menu-icon {
  96. width: 40rpx;
  97. height: 40rpx;
  98. }
  99. .menu-name {
  100. font-size: 28rpx;
  101. margin-left: 20rpx;
  102. color: #333;
  103. }
  104. }
  105. }
  106. }
  107. }
  108. </style>