myBalance.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. <template>
  2. <view class="page">
  3. <view class="p-money flex-col items-start">
  4. <text class="key">余额</text>
  5. <text class="val clamp">387.50</text>
  6. </view>
  7. <view class="p-recharge flex-col">
  8. <view class="flex-row justify-between">
  9. <text class="text_4">充值中心</text>
  10. <view class="flex-row group_6">
  11. <text class="text_5">更多</text>
  12. <image
  13. src="/static/rech-rarrow.png"
  14. class="image_5"
  15. />
  16. </view>
  17. </view>
  18. <view class="grid">
  19. <view class="flex-col items-start grid-item" v-for="(item,idx) in 4" :key="idx">
  20. <view class="group_7 align-center">
  21. <text class="text_6">¥</text>
  22. <text class="text_8 clamp">100</text>
  23. </view>
  24. <text class="text_10">充值金额</text>
  25. </view>
  26. </view>
  27. </view>
  28. <view class="p-list">
  29. <view class="flex-row justify-between title-wrap">
  30. <text class="title">账户明细</text>
  31. <view class="flex-row group_9">
  32. <text class="txt">更多</text>
  33. <image
  34. src="/static/rech-rarrow.png"
  35. class="ic"
  36. />
  37. </view>
  38. </view>
  39. <view class="list-wrap flex-col">
  40. <view class="flex-col list-item" :key="i" v-for="(item, i) in 8">
  41. <view class="flex-row justify-between">
  42. <text class="name clamp">幸福西饼四拼多口味蛋糕</text>
  43. <!-- add -->
  44. <text class="price">-¥148.50</text>
  45. </view>
  46. <text class="time">2022/07/15 15:12</text>
  47. </view>
  48. </view>
  49. </view>
  50. <safe-area bgColor="#f8f8f8" />
  51. </view>
  52. </template>
  53. <script>
  54. export default {
  55. data() {
  56. return {
  57. };
  58. }
  59. }
  60. </script>
  61. <style lang="scss">
  62. page{
  63. background-color: #f8f8f8;
  64. }
  65. .page{
  66. padding: 30rpx;
  67. }
  68. .p-money{
  69. padding: 22rpx 30rpx 51rpx;
  70. background-color: #92b99c;
  71. border-radius: 10rpx;
  72. .key {
  73. color: #ffffff;
  74. font-size: 32rpx;
  75. font-family: PingFang;
  76. letter-spacing: 1.28rpx;
  77. }
  78. .val {
  79. margin-top: 27rpx;
  80. color: #ffffff;
  81. font-size: 54rpx;
  82. font-family: PingFang;
  83. letter-spacing: 2.16rpx;
  84. max-width: 400rpx;
  85. }
  86. }
  87. .p-recharge{
  88. margin-top: 24rpx;
  89. padding: 29rpx 20rpx 30rpx;
  90. background-color: #ffffff;
  91. border-radius: 4rpx;
  92. .text_4 {
  93. color: #333333;
  94. font-size: 30rpx;
  95. font-family: PingFang;
  96. line-height: 29rpx;
  97. letter-spacing: 1.2rpx;
  98. }
  99. .group_6 {
  100. margin-top: 4rpx;
  101. }
  102. .text_5 {
  103. color: #999999;
  104. font-size: 24rpx;
  105. font-family: PingFang;
  106. line-height: 23rpx;
  107. }
  108. .image_5 {
  109. margin-left: 13rpx;
  110. flex-shrink: 0;
  111. width: 12rpx;
  112. height: 20rpx;
  113. }
  114. .grid {
  115. margin-top: 41rpx;
  116. display: grid;
  117. grid-template-columns: repeat(2, 1fr);
  118. row-gap: 22rpx;
  119. column-gap: 22rpx;
  120. }
  121. .grid-item {
  122. padding: 26rpx 22rpx 30rpx;
  123. background-color: #ffffff;
  124. border-radius: 4rpx;
  125. border: solid 1rpx #d8d8d8;
  126. }
  127. .group_7 {
  128. line-height: 31rpx;
  129. }
  130. .text_6 {
  131. color: #333333;
  132. font-size: 28rpx;
  133. font-family: PingFang;
  134. letter-spacing: 1.12rpx;
  135. }
  136. .text_8 {
  137. color: #333333;
  138. font-size: 40rpx;
  139. font-family: PingFang;
  140. max-width: 220rpx;
  141. letter-spacing: 1.6rpx;
  142. }
  143. .text_10 {
  144. margin-left: 7rpx;
  145. margin-top: 13rpx;
  146. color: #999999;
  147. font-size: 24rpx;
  148. font-family: PingFang;
  149. }
  150. }
  151. .p-list{
  152. margin-top: 20rpx;
  153. background: #FFFFFF;
  154. border-radius: 4rpx;
  155. .title-wrap{
  156. padding: 29rpx 20rpx 30rpx 21rpx;
  157. border-bottom: solid 2rpx #0000001a;
  158. .title{
  159. color: #333333;
  160. font-size: 30rpx;
  161. font-family: PingFang;
  162. line-height: 29rpx;
  163. letter-spacing: 1.2rpx;
  164. }
  165. .group_9 {
  166. margin-top: 4rpx;
  167. }
  168. .txt {
  169. color: #999999;
  170. font-size: 24rpx;
  171. font-family: PingFang;
  172. line-height: 23rpx;
  173. }
  174. .ic{
  175. margin-left: 13rpx;
  176. flex-shrink: 0;
  177. width: 12rpx;
  178. height: 20rpx;
  179. }
  180. }
  181. .list-wrap{
  182. .list-item{
  183. padding: 40rpx 27rpx 40rpx 30rpx;
  184. }
  185. .list-item:not(:last-of-type) {
  186. border-bottom: solid 2rpx #0000000f;
  187. }
  188. .name {
  189. color: #333333;
  190. font-size: 30rpx;
  191. font-family: PingFang;
  192. letter-spacing: 1.2rpx;
  193. max-width: 439rpx;
  194. }
  195. .price {
  196. margin-top: 6rpx;
  197. color: #ea5f58;
  198. font-size: 30rpx;
  199. font-family: PingFang;
  200. &.add{
  201. color:#333333;
  202. }
  203. }
  204. .time {
  205. margin-top: 14rpx;
  206. align-self: flex-start;
  207. color: #999999;
  208. font-size: 24rpx;
  209. font-family: PingFang;
  210. }
  211. }
  212. }
  213. </style>