sendList.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <template>
  2. <view class="sbox">
  3. <u-list @scrolltolower="scrolltolower" height="100%">
  4. <u-list-item v-for="(item, index) in list" :key="item.id">
  5. <view class="sbox-item">
  6. <view class="sbox-item-top adfacjb">
  7. <view class="sbox-item-top-left adfac">
  8. <text>{{item.memberName||''}}</text>
  9. <view class="type">{{item.categoryName}}</view>
  10. </view>
  11. <view class="sbox-item-top-right adfac">
  12. <image :src="imgBase+'send_success.png'"></image>
  13. <!-- <image :src="imgBase+'send_fail.png'"></image> -->
  14. <text>{{'发送成功'}}</text>
  15. </view>
  16. </view>
  17. <view class="sbox-item-pre first adf">
  18. <view class="sbox-item-pre-left">报告名称:</view>
  19. <view class="sbox-item-pre-right">{{item.reportName||''}}/{{typeDict[item.type]||''}}</view>
  20. </view>
  21. <view class="sbox-item-pre adfacjb">
  22. <view class="sbox-item-pre-left">团队名称:</view>
  23. <view class="sbox-item-pre-right">{{item.teamName||''}}</view>
  24. </view>
  25. <view class="sbox-item-pre adfacjb">
  26. <view class="sbox-item-pre-left">发送时间:</view>
  27. <view class="sbox-item-pre-right">{{item.createDate||''}}</view>
  28. </view>
  29. </view>
  30. </u-list-item>
  31. </u-list>
  32. </view>
  33. </template>
  34. <script>
  35. export default {
  36. props:{
  37. list:{
  38. typeof:Array,
  39. default:[]
  40. }
  41. },
  42. data(){
  43. return {
  44. typeDict:{
  45. '1':'个人版',
  46. '2':'团队版',
  47. '0':'团队PRO版'
  48. }
  49. }
  50. },
  51. methods:{
  52. scrolltolower(){
  53. this.$emit('scrolltolower')
  54. },
  55. }
  56. }
  57. </script>
  58. <style scoped lang="scss">
  59. .sbox{
  60. height: 100%;
  61. &-item{
  62. margin-top: 20rpx;
  63. background: #FFFFFF;
  64. border-radius: 24rpx;
  65. padding: 36rpx 24rpx;
  66. &-top{
  67. &-left{
  68. image{
  69. width: 48rpx;
  70. height: 48rpx;
  71. }
  72. text{
  73. font-family: PingFang-SC, PingFang-SC;
  74. font-weight: bold;
  75. font-size: 32rpx;
  76. color: #002846;
  77. line-height: 32rpx;
  78. }
  79. .type{
  80. padding: 5rpx 16rpx;
  81. background: #FFF7DC;
  82. border-radius: 20rpx;
  83. margin-left: 11rpx;
  84. font-family: PingFangSC, PingFang SC;
  85. font-weight: 400;
  86. font-size: 22rpx;
  87. color: #BA9B31;
  88. line-height: 30rpx;
  89. margin-top: 2rpx;
  90. }
  91. }
  92. &-right{
  93. image{
  94. width: 26rpx;
  95. height: 26rpx;
  96. margin-top: 2rpx;
  97. }
  98. text{
  99. font-family: PingFangSC, PingFang SC;
  100. font-weight: 400;
  101. font-size: 24rpx;
  102. color: #95A5B1;
  103. line-height: 32rpx;
  104. margin-left: 6rpx;
  105. }
  106. }
  107. }
  108. &-pre{
  109. margin-top: 34rpx;
  110. &-left{
  111. font-family: PingFangSC, PingFang SC;
  112. font-weight: 400;
  113. font-size: 26rpx;
  114. color: #667E90;
  115. line-height: 26rpx;
  116. width: 130rpx;
  117. }
  118. &-right{
  119. width: calc(100% - 130rpx);
  120. padding-left: 10rpx;
  121. box-sizing: border-box;
  122. font-family: PingFangSC, PingFang SC;
  123. font-weight: 400;
  124. font-size: 26rpx;
  125. color: #002846;
  126. line-height: 32rpx;
  127. text-align: right;
  128. }
  129. &.first{
  130. margin-top: 24rpx;
  131. border-top: 1rpx solid #EFEFEF;
  132. padding-top: 24rpx;
  133. justify-content: space-between;
  134. }
  135. }
  136. }
  137. }
  138. </style>