mine.vue 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  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-card">
  27. <view class="card-head flex-center">
  28. <text class="name">我的订单</text>
  29. <view class="all flex-center">
  30. <text>全部</text>
  31. <up-icon name="arrow-right"></up-icon>
  32. </view>
  33. </view>
  34. <view class="card-cont flex-center">
  35. <view class="cont-item" v-for="(item,index) in orderList" :key="index">
  36. <image class="icon" :src="`${config.BASIC_IMG}img/order-icon-${index+1}.png`"></image>
  37. <view>{{item}}</view>
  38. </view>
  39. </view>
  40. </view>
  41. <view class="list-card">
  42. <view class="card-head flex-center">
  43. <text class="name">我的守护</text>
  44. <view class="all flex-center">
  45. <text>全部</text>
  46. <up-icon name="arrow-right"></up-icon>
  47. </view>
  48. </view>
  49. <view class="card-cont flex-center">
  50. <view class="cont-item image-item" v-for="(item,index) in 3" :key="index">
  51. <image class="img" :src="`https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png`"></image>
  52. <view class="name">从化荔博园</view>
  53. </view>
  54. </view>
  55. </view>
  56. <view class="list-item flex-center">
  57. <text class="name">联系客服</text>
  58. <up-icon name="arrow-right"></up-icon>
  59. </view>
  60. <view class="list-item flex-center">
  61. <text class="name">意见反馈</text>
  62. <up-icon name="arrow-right"></up-icon>
  63. </view>
  64. </view>
  65. </view>
  66. </template>
  67. <script setup>
  68. import config from "@/api/config.js"
  69. const orderList = ["待付款","待发货","待收货","待评价","退款/售后"]
  70. const imageList = []
  71. </script>
  72. <style lang="scss" scoped>
  73. .base-container {
  74. .user-info {
  75. background: #fff;
  76. border-radius: 16rpx;
  77. padding: 24rpx;
  78. display: flex;
  79. align-items: center;
  80. justify-content: space-between;
  81. .user-left{
  82. display: flex;
  83. align-items: center;
  84. .avatar{
  85. width: 92rpx;
  86. height: 92rpx;
  87. margin-right: 28rpx;
  88. border-radius: 50%;
  89. }
  90. .info{
  91. .name{
  92. font-family: 'PangMenZhengDao';
  93. }
  94. .text{
  95. font-size: 24rpx;
  96. }
  97. }
  98. }
  99. .user-right{
  100. font-size: 24rpx;
  101. padding: 12rpx 32rpx;
  102. border-radius: 50rpx;
  103. color: #000;
  104. background: #FFD95E;
  105. font-weight: 500;
  106. }
  107. }
  108. .grid-wrap{
  109. display: flex;
  110. margin-top: 20rpx;
  111. .grid-item{
  112. padding: 20rpx 28rpx;
  113. flex: 1;
  114. border-radius: 16rpx;
  115. border: 2rpx solid #FFFFFF;
  116. background-image: linear-gradient(180deg,#FFECAE,#FFFFFF);
  117. line-height: 42rpx;
  118. position: relative;
  119. &.coupon{
  120. margin-left: 18rpx;
  121. background-image: linear-gradient(180deg,#FFDFC5,#FFFFFF);
  122. }
  123. .grid-name{
  124. font-family: 'PangMenZhengDao';
  125. }
  126. .grid-text{
  127. font-size: 24rpx;
  128. }
  129. .image{
  130. position: absolute;
  131. bottom: 0;
  132. right: 0;
  133. width: 110rpx;
  134. height: 120rpx;
  135. }
  136. .icon{
  137. position: absolute;
  138. bottom: 0;
  139. right: 0;
  140. width: 110rpx;
  141. height: 110rpx
  142. }
  143. }
  144. }
  145. .list-wrap{
  146. .list-item,.list-card{
  147. background: #fff;
  148. border-radius: 10rpx;
  149. margin-top: 20rpx;
  150. padding: 26rpx 20rpx;
  151. .name{
  152. font-weight: 500;
  153. }
  154. .all{
  155. color: rgba(0, 0, 0, 0.6);
  156. font-size: 26rpx;
  157. }
  158. .card-cont{
  159. margin-top: 20rpx;
  160. .cont-item{
  161. flex: 1;
  162. text-align: center;
  163. font-size: 24rpx;
  164. .icon{
  165. width: 36rpx;
  166. height: 32rpx;
  167. margin-bottom: 4rpx;
  168. }
  169. }
  170. .image-item{
  171. border-radius: 16rpx;
  172. border: 1px solid #E3E3E3;
  173. padding: 10rpx;
  174. position: relative;
  175. .img{
  176. width: 100%;
  177. height: 180rpx;
  178. border-radius: 8rpx;
  179. }
  180. .name{
  181. position: absolute;
  182. bottom: 0;
  183. left: 0;
  184. color: #fff;
  185. padding: 6rpx;
  186. width: 100%;
  187. box-sizing: border-box;
  188. border-radius: 0 0 16rpx 16rpx;
  189. text-align: center;
  190. background: rgba(0, 0, 0, 0.3);
  191. backdrop-filter: blur(6rpx);
  192. }
  193. }
  194. .image-item + .image-item{
  195. margin-left: 20rpx;
  196. }
  197. }
  198. }
  199. .flex-center{
  200. display: flex;
  201. align-items: center;
  202. justify-content: space-between;
  203. }
  204. }
  205. }
  206. </style>