receiveList.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <template>
  2. <view class="rbox">
  3. <u-list @scrolltolower="scrolltolower" height="100%">
  4. <u-list-item v-for="(item, index) in list" :key="item.id">
  5. <view class="rbox-item">
  6. <view class="rbox-item-top adfac">
  7. <view class="rbox-item-top-type">{{typeCfg['1']}}</view>
  8. <view class="rbox-item-top-title">{{'甜梦巧克力公司PREILL分析报告'}}</view>
  9. </view>
  10. <view class="rbox-item-p adf">
  11. <view class="rbox-item-p-left">团队名称:</view>
  12. <view class="rbox-item-p-right">{{'甜梦巧克力有限公司'}}</view>
  13. </view>
  14. <view class="rbox-item-p adf">
  15. <view class="rbox-item-p-left">发送教练:</view>
  16. <view class="rbox-item-p-right">{{'刘亦可'}}</view>
  17. </view>
  18. <view class="rbox-item-p adf">
  19. <view class="rbox-item-p-left">报告时间:</view>
  20. <view class="rbox-item-p-right">{{'2025-05-28 12:00:00'}}</view>
  21. </view>
  22. <view class="rbox-item-btn" @click="reviewReport(item)">查看报告</view>
  23. </view>
  24. </u-list-item>
  25. </u-list>
  26. </view>
  27. </template>
  28. <script>
  29. export default {
  30. props:{
  31. list:{
  32. typeof:Array,
  33. default:[]
  34. }
  35. },
  36. data(){
  37. return {
  38. typeCfg:{
  39. 1:'基础版',
  40. 2:'专业版',
  41. 3:'专家版'
  42. }
  43. }
  44. },
  45. methods:{
  46. scrolltolower(){
  47. this.$emit('scrolltolower')
  48. },
  49. reviewReport(item){
  50. if(!item.fileUrl) return this.$showToast('报告pdf为空,请联系教练。')
  51. uni.navigateTo({
  52. url:`/pages/reportDetail?pdfUrl=${item.fileUrl}&reportId=${item.reportId}&fileName=${item.programName}-${item.reportName}`
  53. })
  54. }
  55. }
  56. }
  57. </script>
  58. <style scoped lang="scss">
  59. .rbox{
  60. height: 100%;
  61. &-item{
  62. margin-top: 20rpx;
  63. background: #FFFFFF;
  64. border-radius: 24rpx;
  65. padding: 40rpx 24rpx;
  66. position: relative;
  67. &-top{
  68. &-type{
  69. padding: 2rpx 13rpx;
  70. background: #FFF7DC;
  71. border-radius: 6rpx;
  72. font-family: PingFangSC, PingFang SC;
  73. font-weight: 400;
  74. font-size: 24rpx;
  75. color: #BA9B31;
  76. line-height: 33rpx;
  77. }
  78. &-title{
  79. font-family: PingFang-SC, PingFang-SC;
  80. font-weight: bold;
  81. font-size: 32rpx;
  82. color: #002846;
  83. line-height: 32rpx;
  84. text-indent: 17rpx;
  85. }
  86. }
  87. &-p{
  88. margin-top: 36rpx;
  89. &>view{
  90. font-family: PingFangSC, PingFang SC;
  91. font-weight: 400;
  92. font-size: 24rpx;
  93. color: #667E90;
  94. line-height: 24rpx;
  95. }
  96. &-left{
  97. width: 134rpx;
  98. }
  99. &-right{
  100. width: calc(100% - 134rpx);
  101. }
  102. }
  103. &-btn{
  104. padding: 17rpx 20rpx;
  105. background: linear-gradient( 90deg, #33A7A7 0%, #4DB2B2 100%);
  106. border-radius: 30rpx;
  107. font-family: PingFang-SC, PingFang-SC;
  108. font-weight: bold;
  109. font-size: 24rpx;
  110. color: #FFFFFF;
  111. line-height: 26rpx;
  112. letter-spacing: 2rpx;
  113. position: absolute;
  114. bottom: 40rpx;
  115. right: 24rpx;
  116. }
  117. }
  118. }
  119. </style>