mine.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <template>
  2. <view class="base-container">
  3. <view class="user-info">
  4. <view class="user-left">
  5. <image class="avatar" src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"></image>
  6. <view class="info">
  7. <text class="name">听妈妈的话</text>
  8. <view class="text">这是您使用飞鸟有味的第15天</view>
  9. </view>
  10. </view>
  11. <view class="user-right">收货地址</view>
  12. </view>
  13. <view class="grid-wrap">
  14. <view class="grid-item ">
  15. <view class="grid-name">守护兑换</view>
  16. <text class="grid-text">积累能量获大礼</text>
  17. <image class="image" src="https://birdseye-img.sysuimars.com/youwei-uniapp/img/gift.png"></image>
  18. </view>
  19. <view class="grid-item coupon">
  20. <view class="grid-name">优惠券</view>
  21. <text class="grid-text">满100减50</text>
  22. <image class="icon" src="https://birdseye-img.sysuimars.com/youwei-uniapp/img/coupon.png"></image>
  23. </view>
  24. </view>
  25. <view class="list-wrap">
  26. <view class="list-item list-card">
  27. <view class="card-head">
  28. <text class="name">我的订单</text>
  29. <text>></text>
  30. </view>
  31. <view class="card-cont">
  32. <view class="list-item">
  33. </view>
  34. </view>
  35. </view>
  36. <view class="list-item list-card">
  37. <text class="name">我的守护</text>
  38. <text>></text>
  39. </view>
  40. <view class="list-item">
  41. <text class="name">联系客服</text>
  42. <text>></text>
  43. </view>
  44. <view class="list-item">
  45. <text class="name">意见反馈</text>
  46. <text>></text>
  47. </view>
  48. </view>
  49. </view>
  50. </template>
  51. <script setup>
  52. </script>
  53. <style lang="scss" scoped>
  54. .base-container {
  55. .user-info {
  56. background: #fff;
  57. border-radius: 16rpx;
  58. padding: 24rpx;
  59. display: flex;
  60. align-items: center;
  61. justify-content: space-between;
  62. .user-left{
  63. display: flex;
  64. align-items: center;
  65. .avatar{
  66. width: 92rpx;
  67. height: 92rpx;
  68. margin-right: 28rpx;
  69. border-radius: 50%;
  70. }
  71. .info{
  72. .name{
  73. font-family: 'PangMenZhengDao';
  74. }
  75. .text{
  76. font-size: 24rpx;
  77. }
  78. }
  79. }
  80. .user-right{
  81. font-size: 24rpx;
  82. padding: 12rpx 32rpx;
  83. border-radius: 50rpx;
  84. color: #000;
  85. background: #FFD95E;
  86. font-weight: 500;
  87. }
  88. }
  89. .grid-wrap{
  90. display: flex;
  91. margin-top: 20rpx;
  92. .grid-item{
  93. padding: 20rpx 28rpx;
  94. flex: 1;
  95. border-radius: 16rpx;
  96. border: 2rpx solid #FFFFFF;
  97. background-image: linear-gradient(180deg,#FFECAE,#FFFFFF);
  98. line-height: 42rpx;
  99. position: relative;
  100. &.coupon{
  101. margin-left: 18rpx;
  102. background-image: linear-gradient(180deg,#FFDFC5,#FFFFFF);
  103. }
  104. .grid-name{
  105. font-family: 'PangMenZhengDao';
  106. }
  107. .grid-text{
  108. font-size: 24rpx;
  109. }
  110. .image{
  111. position: absolute;
  112. bottom: 0;
  113. right: 0;
  114. width: 110rpx;
  115. height: 120rpx;
  116. }
  117. .icon{
  118. position: absolute;
  119. bottom: 0;
  120. right: 0;
  121. width: 110rpx;
  122. height: 110rpx
  123. }
  124. }
  125. }
  126. .list-wrap{
  127. .list-item{
  128. background: #fff;
  129. border-radius: 10rpx;
  130. margin-top: 20rpx;
  131. padding: 26rpx 20rpx;
  132. display: flex;
  133. align-items: center;
  134. justify-content: space-between;
  135. .name{
  136. font-weight: 500;
  137. }
  138. }
  139. }
  140. }
  141. </style>