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="`${config.BASIC_IMG}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="`${config.BASIC_IMG}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. 123
  34. </view>
  35. </view>
  36. </view>
  37. <view class="list-item list-card">
  38. <text class="name">我的守护</text>
  39. <text>></text>
  40. </view>
  41. <view class="list-item">
  42. <text class="name">联系客服</text>
  43. <up-icon name="arrow-right"></up-icon>
  44. </view>
  45. <view class="list-item">
  46. <text class="name">意见反馈</text>
  47. <text>></text>
  48. </view>
  49. </view>
  50. </view>
  51. </template>
  52. <script setup>
  53. import config from "@/api/config.js"
  54. </script>
  55. <style lang="scss" scoped>
  56. .base-container {
  57. .user-info {
  58. background: #fff;
  59. border-radius: 16rpx;
  60. padding: 24rpx;
  61. display: flex;
  62. align-items: center;
  63. justify-content: space-between;
  64. .user-left{
  65. display: flex;
  66. align-items: center;
  67. .avatar{
  68. width: 92rpx;
  69. height: 92rpx;
  70. margin-right: 28rpx;
  71. border-radius: 50%;
  72. }
  73. .info{
  74. .name{
  75. font-family: 'PangMenZhengDao';
  76. }
  77. .text{
  78. font-size: 24rpx;
  79. }
  80. }
  81. }
  82. .user-right{
  83. font-size: 24rpx;
  84. padding: 12rpx 32rpx;
  85. border-radius: 50rpx;
  86. color: #000;
  87. background: #FFD95E;
  88. font-weight: 500;
  89. }
  90. }
  91. .grid-wrap{
  92. display: flex;
  93. margin-top: 20rpx;
  94. .grid-item{
  95. padding: 20rpx 28rpx;
  96. flex: 1;
  97. border-radius: 16rpx;
  98. border: 2rpx solid #FFFFFF;
  99. background-image: linear-gradient(180deg,#FFECAE,#FFFFFF);
  100. line-height: 42rpx;
  101. position: relative;
  102. &.coupon{
  103. margin-left: 18rpx;
  104. background-image: linear-gradient(180deg,#FFDFC5,#FFFFFF);
  105. }
  106. .grid-name{
  107. font-family: 'PangMenZhengDao';
  108. }
  109. .grid-text{
  110. font-size: 24rpx;
  111. }
  112. .image{
  113. position: absolute;
  114. bottom: 0;
  115. right: 0;
  116. width: 110rpx;
  117. height: 120rpx;
  118. }
  119. .icon{
  120. position: absolute;
  121. bottom: 0;
  122. right: 0;
  123. width: 110rpx;
  124. height: 110rpx
  125. }
  126. }
  127. }
  128. .list-wrap{
  129. .list-item{
  130. background: #fff;
  131. border-radius: 10rpx;
  132. margin-top: 20rpx;
  133. padding: 26rpx 20rpx;
  134. display: flex;
  135. align-items: center;
  136. justify-content: space-between;
  137. .name{
  138. font-weight: 500;
  139. }
  140. }
  141. }
  142. }
  143. </style>