my.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <template>
  2. <view class="my-index">
  3. <image class="my-header-image" :src="bgImage" mode="aspectFill"></image>
  4. <view class="user-info-box" @click="goPage('/pages/login/login')">
  5. <image class="avatar-image" :src="logoImage" mode="aspectFill"></image>
  6. <view class="user-info-right">登录/注册</view>
  7. </view>
  8. <view class="user-activity-menu">
  9. <view class="menu-item">
  10. <view class="left">
  11. <uni-icons class="menu-icon" type="home" size="24"></uni-icons>
  12. <view class="menu-name">我的房源</view>
  13. </view>
  14. <uni-icons type="right" size="20" color="#717171"></uni-icons>
  15. </view>
  16. <view class="menu-item">
  17. <view class="left">
  18. <uni-icons class="menu-icon" type="wallet" size="24"></uni-icons>
  19. <view class="menu-name">缴费管理</view>
  20. </view>
  21. <uni-icons type="right" size="20" color="#717171"></uni-icons>
  22. </view>
  23. <view class="menu-item">
  24. <view class="left">
  25. <uni-icons class="menu-icon" type="calendar" size="24"></uni-icons>
  26. <view class="menu-name">发票管理</view>
  27. </view>
  28. <uni-icons type="right" size="20" color="#717171"></uni-icons>
  29. </view>
  30. </view>
  31. </view>
  32. </template>
  33. <script>
  34. export default {
  35. data() {
  36. return {
  37. bgImage: require('@/static/image/my/banner.png'),
  38. logoImage: require('@/static/image/login/logo.png'),
  39. };
  40. },
  41. created() {},
  42. onShow() {},
  43. methods: {
  44. /* 跳转页面 */
  45. goPage(page) {
  46. uni.navigateTo({
  47. url: page
  48. })
  49. }
  50. }
  51. }
  52. </script>
  53. <style lang="scss">
  54. .my-index {
  55. position: relative;
  56. .my-header-image {
  57. width: 100%;
  58. height: 320rpx;
  59. }
  60. .user-info-box {
  61. background: #ffffff;
  62. padding: 30rpx;
  63. position: absolute;
  64. border-radius: 20rpx;
  65. display: flex;
  66. align-items: center;
  67. top: 250rpx;
  68. left: 30rpx;
  69. right: 30rpx;
  70. .avatar-image {
  71. width: 100rpx;
  72. height: 100rpx;
  73. border-radius: 10rpx;
  74. }
  75. .user-info-right {
  76. margin-left: 20rpx;
  77. font-size: 32rpx;
  78. font-weight: 500;
  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-name {
  96. margin-left: 20rpx;
  97. color: $uni-base-color;
  98. }
  99. .menu-icon {
  100. /* #ifdef H5 */
  101. color: $uni-base-color !important;
  102. /* #endif */
  103. /* #ifdef MP-WEIXIN */
  104. text {
  105. color: $uni-base-color !important;
  106. }
  107. /* #endif */
  108. }
  109. }
  110. }
  111. }
  112. }
  113. </style>