moreRecord.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <template>
  2. <view class="page">
  3. <view class="p-list">
  4. <view class="list-wrap flex-col">
  5. <view class="flex-col list-item" :key="i" v-for="(item, i) in 8">
  6. <view class="flex-row justify-between">
  7. <text class="name clamp">幸福西饼四拼多口味蛋糕</text>
  8. <!-- add -->
  9. <text class="price">-¥148.50</text>
  10. </view>
  11. <text class="time">2022/07/15 15:12</text>
  12. </view>
  13. </view>
  14. </view>
  15. <safe-area bgColor="#f8f8f8" />
  16. </view>
  17. </template>
  18. <script>
  19. export default {
  20. data() {
  21. return {
  22. };
  23. }
  24. }
  25. </script>
  26. <style lang="scss">
  27. page{
  28. background-color: #f8f8f8;
  29. }
  30. .page{
  31. padding: 30rpx;
  32. }
  33. .p-list{
  34. background: #FFFFFF;
  35. border-radius: 4rpx;
  36. .list-wrap{
  37. .list-item{
  38. padding: 40rpx 27rpx 40rpx 30rpx;
  39. }
  40. .list-item:not(:last-of-type) {
  41. border-bottom: solid 2rpx #0000000f;
  42. }
  43. .name {
  44. color: #333333;
  45. font-size: 30rpx;
  46. font-family: PingFang;
  47. letter-spacing: 1.2rpx;
  48. max-width: 439rpx;
  49. }
  50. .price {
  51. margin-top: 6rpx;
  52. color: #ea5f58;
  53. font-size: 30rpx;
  54. font-family: PingFang;
  55. &.add{
  56. color:#333333;
  57. }
  58. }
  59. .time {
  60. margin-top: 14rpx;
  61. align-self: flex-start;
  62. color: #999999;
  63. font-size: 24rpx;
  64. font-family: PingFang;
  65. }
  66. }
  67. }
  68. </style>