generateList.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. <template>
  2. <view class="gbox">
  3. <u-list @scrolltolower="scrolltolower" height="100%">
  4. <u-list-item v-for="(item, index) in list" :key="item.id">
  5. <view class="gbox-item">
  6. <view class="gbox-item-top adfac">
  7. <view class="gbox-item-top-type">{{typeCfg['1']}}</view>
  8. <view class="gbox-item-top-title">{{'甜梦巧克力公司PREILL分析报告'}}</view>
  9. </view>
  10. <view class="gbox-item-p adf">
  11. <view class="gbox-item-p-left">团队名称:</view>
  12. <view class="gbox-item-p-right">{{'甜梦巧克力有限公司'}}</view>
  13. </view>
  14. <view class="gbox-item-p adfac">
  15. <view class="gbox-item-p-left">报告进度:</view>
  16. <view class="gbox-item-p-progress adfacjb">
  17. <view class="gbox-item-p-progress-l">
  18. <view class="gbox-item-p-progress-l-current" :style="{'width':(80)+'%'}"></view>
  19. </view>
  20. <view class="gbox-item-p-progress-r">{{80}}%</view>
  21. </view>
  22. </view>
  23. <view class="gbox-item-bottom adfacjb">
  24. <view class="gbox-item-bottom-left adfac">
  25. <view class="gbox-item-bottom-left-text">创建时间:</view>
  26. <view class="gbox-item-bottom-left-time">{{'2025-05-28 12:00:00'}}</view>
  27. </view>
  28. <view class="gbox-item-bottom-right" @click="sendReport(item)">发送报告</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. typeCfg:{
  46. 1:'基础版',
  47. 2:'专业版',
  48. 3:'专家版'
  49. }
  50. }
  51. },
  52. methods:{
  53. scrolltolower(){
  54. this.$emit('scrolltolower')
  55. },
  56. sendReport(item){
  57. uni.navigateTo({
  58. url:'/pagesHome/reportResult'
  59. })
  60. }
  61. }
  62. }
  63. </script>
  64. <style scoped lang="scss">
  65. .gbox{
  66. height: 100%;
  67. &-item{
  68. margin-top: 20rpx;
  69. background: #FFFFFF;
  70. border-radius: 24rpx;
  71. padding: 40rpx 24rpx 10rpx;
  72. position: relative;
  73. &-top{
  74. &-type{
  75. padding: 2rpx 13rpx;
  76. background: #FFF7DC;
  77. border-radius: 6rpx;
  78. font-family: PingFangSC, PingFang SC;
  79. font-weight: 400;
  80. font-size: 24rpx;
  81. color: #BA9B31;
  82. line-height: 33rpx;
  83. }
  84. &-title{
  85. font-family: PingFang-SC, PingFang-SC;
  86. font-weight: bold;
  87. font-size: 32rpx;
  88. color: #002846;
  89. line-height: 32rpx;
  90. text-indent: 17rpx;
  91. }
  92. }
  93. &-p{
  94. margin-top: 36rpx;
  95. &>view{
  96. font-family: PingFangSC, PingFang SC;
  97. font-weight: 400;
  98. font-size: 24rpx;
  99. color: #667E90;
  100. line-height: 24rpx;
  101. }
  102. &-left{
  103. width: 134rpx;
  104. }
  105. &-right{
  106. width: calc(100% - 134rpx);
  107. }
  108. &-progress{
  109. width: calc(100% - 134rpx);
  110. &-l{
  111. width: 410rpx;
  112. height: 12rpx;
  113. background: #F0F2F8;
  114. border-radius: 6rpx;
  115. position: relative;
  116. &-current{
  117. height: 12rpx;
  118. background: #FFDF73;
  119. border-radius: 6rpx;
  120. position: absolute;
  121. left: 0;
  122. top: 0;
  123. }
  124. }
  125. &-r{
  126. width: calc(100% - 410rpx);
  127. font-family: PingFangSC, PingFang SC;
  128. font-weight: 400;
  129. font-size: 24rpx;
  130. color: #002846;
  131. line-height: 24rpx;
  132. text-align: right;
  133. }
  134. }
  135. }
  136. &-bottom{
  137. margin-top: 30rpx;
  138. border-top: 1rpx solid #EFEFEF;
  139. padding-top: 18rpx;
  140. &-left{
  141. &>view{
  142. font-family: PingFangSC, PingFang SC;
  143. font-weight: 400;
  144. font-size: 24rpx;
  145. color: #667E90;
  146. line-height: 24rpx;
  147. }
  148. }
  149. &-right{
  150. padding: 17rpx 20rpx;
  151. background: linear-gradient( 90deg, #33A7A7 0%, #4DB2B2 100%);
  152. border-radius: 30rpx;
  153. font-family: PingFang-SC, PingFang-SC;
  154. font-weight: bold;
  155. font-size: 24rpx;
  156. color: #FFFFFF;
  157. line-height: 26rpx;
  158. letter-spacing: 2rpx;
  159. }
  160. }
  161. }
  162. }
  163. </style>