record.vue 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <template>
  2. <view class="record">
  3. <view class=" item" v-for="l in list">
  4. <view class="name">
  5. <image src="../../static/error/missing-face.png" mode=""></image>
  6. <view class="name-right">
  7. <view class="nickname">{{l.name}}</view>
  8. <view class="time">{{l.time}}</view>
  9. </view>
  10. </view>
  11. <view class="u">
  12. {{l.money}}
  13. </view>
  14. </view>
  15. </view>
  16. </template>
  17. <script>
  18. export default {
  19. data() {
  20. return {
  21. list: [{
  22. name: "御风",
  23. time: "2019-12-02 12:00:00",
  24. money: "5000U"
  25. },
  26. {
  27. name: "茶荷酒",
  28. time: "2008-10-02 12:00:00",
  29. money: "1000U"
  30. }]
  31. }
  32. }
  33. }
  34. </script>
  35. <style lang="scss" scoped>
  36. .record {
  37. margin-top: 20rpx;
  38. background-color: #fff;
  39. .item {
  40. padding: 30rpx;
  41. margin: 20rpx;
  42. margin-bottom: 0;
  43. display: flex;
  44. justify-content: space-between;
  45. border-bottom: solid 1rpx #f8f8f8;
  46. .name {
  47. display: flex;
  48. image {
  49. height: 100rpx;
  50. width: 100rpx;
  51. margin-right: 30rpx;
  52. }
  53. .name-right {
  54. display: grid;
  55. align-content: space-between;
  56. .nickname {
  57. color: #3F454B;
  58. font-size: 32rpx;
  59. }
  60. .time {
  61. color: #999999;
  62. font-size: 28rpx;
  63. }
  64. }
  65. }
  66. .u {
  67. color: #EF3A55;
  68. margin: auto 0;
  69. font-weight: bold;
  70. font-size: 35rpx;
  71. }
  72. }
  73. }
  74. </style>