sendList.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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. <image :src="imgBase+'avatar.png'"></image>
  9. <text>{{item.memberName||''}}</text>
  10. <view class="type">{{item.categoryName}}</view>
  11. </view>
  12. <view class="sbox-item-top-right adfac">
  13. <image :src="imgBase+'send_success.png'"></image>
  14. <!-- <image :src="imgBase+'send_fail.png'"></image> -->
  15. <text>{{'发送成功'}}</text>
  16. </view>
  17. </view>
  18. <view class="sbox-item-pre first adfacjb">
  19. <view class="sbox-item-pre-left">报告名称:</view>
  20. <view class="sbox-item-pre-right">{{item.reportName||''}}/{{typeDict[item.type]||''}}</view>
  21. </view>
  22. <view class="sbox-item-pre adfacjb">
  23. <view class="sbox-item-pre-left">团队名称:</view>
  24. <view class="sbox-item-pre-right">{{item.teamName||''}}</view>
  25. </view>
  26. <view class="sbox-item-pre adfacjb">
  27. <view class="sbox-item-pre-left">发送时间:</view>
  28. <view class="sbox-item-pre-right">{{item.createDate||''}}</view>
  29. </view>
  30. </view>
  31. </u-list-item>
  32. </u-list>
  33. </view>
  34. </template>
  35. <script>
  36. export default {
  37. props:{
  38. list:{
  39. typeof:Array,
  40. default:[]
  41. }
  42. },
  43. data(){
  44. return {
  45. typeDict:{
  46. '1':'基础版',
  47. '2':'专业版',
  48. '3':'专家版'
  49. }
  50. }
  51. },
  52. methods:{
  53. scrolltolower(){
  54. this.$emit('scrolltolower')
  55. },
  56. }
  57. }
  58. </script>
  59. <style scoped lang="scss">
  60. .sbox{
  61. height: 100%;
  62. &-item{
  63. margin-top: 20rpx;
  64. background: #FFFFFF;
  65. border-radius: 24rpx;
  66. padding: 36rpx 24rpx;
  67. &-top{
  68. &-left{
  69. image{
  70. width: 48rpx;
  71. height: 48rpx;
  72. }
  73. text{
  74. font-family: PingFang-SC, PingFang-SC;
  75. font-weight: bold;
  76. font-size: 32rpx;
  77. color: #002846;
  78. line-height: 32rpx;
  79. margin-left: 20rpx;
  80. }
  81. .type{
  82. padding: 5rpx 16rpx;
  83. background: #FFF7DC;
  84. border-radius: 20rpx;
  85. margin-left: 11rpx;
  86. font-family: PingFangSC, PingFang SC;
  87. font-weight: 400;
  88. font-size: 22rpx;
  89. color: #BA9B31;
  90. line-height: 30rpx;
  91. }
  92. }
  93. &-right{
  94. image{
  95. width: 26rpx;
  96. height: 26rpx;
  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: 36rpx;
  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: 26rpx;
  127. text-align: right;
  128. }
  129. &.first{
  130. margin-top: 24rpx;
  131. border-top: 1rpx solid #EFEFEF;
  132. padding-top: 24rpx;
  133. }
  134. }
  135. }
  136. }
  137. </style>