sqjl.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <template>
  2. <view class="content">
  3. <view v-for="(item, index) in list" :key="index" class="order-item flex">
  4. <view class="title-box flex_item">
  5. <view class="title-avatar">
  6. <image src="../../static/icon/sh-log.png"></image>
  7. </view>
  8. <view class="list_tpl">
  9. <view class="title">
  10. <view class="title-name ">我的好强儿</view>
  11. </view>
  12. <view class="time">
  13. <text>2020-12-12</text>
  14. </view>
  15. </view>
  16. <view class="money">
  17. <text>未通过</text>
  18. </view>
  19. </view>
  20. </view>
  21. </view>
  22. </template>
  23. <script>
  24. export default {
  25. data() {
  26. return {
  27. list: 10
  28. }
  29. },
  30. methods: {
  31. }
  32. }
  33. </script>
  34. <style lang="scss" scoped>
  35. .content {
  36. background-color: #fff;
  37. }
  38. .sq-item {
  39. height: 118rpx;
  40. border-top: 1px solid #F0F0F0;
  41. width: 690rpx;
  42. margin: auto;
  43. &:first-of-type {
  44. border-top: none;
  45. }
  46. }
  47. .order-item {
  48. padding: 20rpx 30rpx;
  49. line-height: 1.5;
  50. height: 118rpx;
  51. border-top: 1px solid #F0F0F0;
  52. width: 690rpx;
  53. margin: auto;
  54. &:first-of-type {
  55. border-top: none;
  56. }
  57. .title-box {
  58. width: 100%;
  59. .title-avatar {
  60. flex-shrink: 0;
  61. width: 55rpx;
  62. height: 55rpx;
  63. margin-right: 25rpx;
  64. border-radius: 100%;
  65. image {
  66. width: 100%;
  67. height: 100%;
  68. border-radius: 100%;
  69. }
  70. }
  71. .list_tpl {
  72. width: 85%;
  73. .title {
  74. display: flex;
  75. justify-content: flex-start;
  76. font-size: $font-lg;
  77. color: $font-color-base;
  78. overflow: hidden; //超出的文本隐藏
  79. text-overflow: ellipsis; //溢出用省略号显示
  80. white-space: nowrap;
  81. line-height: 1;
  82. text-align: center;
  83. .title-name {
  84. max-width: 40%;
  85. }
  86. .dl {
  87. margin-left: 10rpx;
  88. width: 93rpx;
  89. height: 32rpx;
  90. border-radius: 16rpx;
  91. image {
  92. width: 93rpx;
  93. height: 32rpx;
  94. border-radius: 16rpx;
  95. }
  96. }
  97. .class {
  98. display: inline-block;
  99. margin-left: 10rpx;
  100. padding: 6rpx;
  101. text-align: center;
  102. border: 1px solid #2e58ff;
  103. border-radius: 16rpx;
  104. font-size: 20rpx;
  105. font-family: PingFang SC;
  106. font-weight: 500;
  107. color: #2e58ff;
  108. }
  109. }
  110. .time {
  111. font-size: $font-base;
  112. color: $font-color-light;
  113. }
  114. }
  115. }
  116. .money {
  117. width: 50%;
  118. text-align: right;
  119. color: #333;
  120. font-size: $font-lg;
  121. }
  122. }
  123. </style>