records.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <template>
  2. <view>
  3. <view class="card" v-for="(item,index) in 6" :key="index">
  4. <view class="left">
  5. <text>充值成功</text>
  6. <text>2021-07-05 14:35:20</text>
  7. </view>
  8. <view class="right">
  9. <text style="color: #30C87F;">查看发票</text>
  10. <text class="text-price">600000</text>
  11. </view>
  12. </view>
  13. </view>
  14. </template>
  15. <script>
  16. export default {
  17. data() {
  18. return {
  19. }
  20. },
  21. methods: {
  22. }
  23. }
  24. </script>
  25. <style lang="scss" scoped>
  26. .card{
  27. margin: 20rpx 0;
  28. background-color: #FFFFFF;
  29. padding: 30rpx;
  30. display: flex;
  31. justify-content: space-between;
  32. .left{
  33. display: flex;
  34. flex-direction: column;
  35. text:first-child{
  36. font-weight: 800;
  37. margin-bottom: 20rpx;
  38. font-size: 32rpx;
  39. color: #353535;
  40. }
  41. text:last-child{
  42. font-size: 26rpx;
  43. color: #888888;
  44. }
  45. }
  46. .right{
  47. display: flex;
  48. flex-direction: column;
  49. text:first-child{
  50. text-align: end;
  51. margin-bottom: 20rpx;
  52. font-size: 24rpx;
  53. }
  54. text:last-child{
  55. font-size: 40rpx;
  56. color: #353535;
  57. }
  58. }
  59. }
  60. </style>