index.vue 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <template>
  2. <view>
  3. <u-navbar :placeholder="true" bgColor="#fff" :autoBack="true" :border="true" title="我的盲豆"></u-navbar>
  4. <view class="bean">
  5. <view class="bean-balance">500</view>
  6. <view class="bean-list">
  7. <view class="flex bean-list-item">
  8. <view class="flex left">
  9. <view class="title">商品兑换</view>
  10. <view class="date">2021-11-29 14:10:22</view>
  11. </view>
  12. <view class="flex right">
  13. <view class="amt">-200</view>
  14. <view class="balance">余额:234</view>
  15. </view>
  16. </view>
  17. <view class="flex bean-list-item">
  18. <view class="flex left">
  19. <view class="title">商品兑换</view>
  20. <view class="date">2021-11-29 14:10:22</view>
  21. </view>
  22. <view class="flex right">
  23. <view class="amt">-200</view>
  24. <view class="balance">余额:234</view>
  25. </view>
  26. </view>
  27. </view>
  28. </view>
  29. </view>
  30. </template>
  31. <script>
  32. export default {
  33. data() {
  34. return {
  35. };
  36. }
  37. }
  38. </script>
  39. <style lang="scss" scoped>
  40. .bean {
  41. margin: 20rpx 10rpx;
  42. &-balance {
  43. height: 230rpx;
  44. line-height: 230rpx;
  45. border-radius: 10rpx;
  46. background-image: linear-gradient(to right, #eea2a2 0%, #bbc1bf 19%, #57c6e1 42%, #b49fda 79%, #7ac5d8 100%);
  47. font-size: 50rpx;
  48. padding-left: 180rpx;
  49. font-weight: bold;
  50. margin-bottom: 20rpx;
  51. }
  52. &-list {
  53. background-color: #FFFFFF;
  54. padding: 0 40rpx;
  55. &-item {
  56. justify-content: space-between;
  57. padding: 24rpx 0;
  58. border-bottom: 1px solid rgba(236, 236, 236, 100);
  59. .left{
  60. flex-direction: column;
  61. justify-content: space-between;
  62. align-items: flex-start;
  63. }
  64. .right{
  65. flex-direction: column;
  66. justify-content: space-between;
  67. align-items: flex-end;
  68. }
  69. .title{
  70. font-size: 32rpx;
  71. font-weight: bold;
  72. margin-bottom: 32rpx;
  73. }
  74. .amt{
  75. margin-bottom: 32rpx;
  76. }
  77. .balance{
  78. color: #606060;
  79. }
  80. }
  81. &-item:last-child {
  82. border-bottom: none;
  83. }
  84. }
  85. }
  86. </style>