word.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <template>
  2. <view class="m-20">
  3. <view class="row-c r-20 sys-background-fff m-b20" v-for="(item,index) in stageList" :key="index">
  4. <view class="file-box">
  5. <view class="file-data">
  6. <view class="file-icon" v-if="item.attachmentFormat==='docx'">
  7. <image class="wh-45 " src="/page_task/static/img/task-details/icon-word.png" mode="aspectFill"></image>
  8. </view>
  9. <view class="file-icon file-icon-excel" v-if="item.attachmentFormat==='xlsx'">
  10. <image class="wh-45 " src="/page_task/static/img/task-details/icon-excel.png" mode="aspectFill"></image>
  11. </view>
  12. <view class="file-icon file-icon-pdf" v-if="item.attachmentFormat==='pdf'">
  13. <image class="wh-45 " src="/page_task/static/img/task-details/icon-pdf.png" mode="aspectFill"></image>
  14. </view>
  15. <view>
  16. <view>{{item.attachmentName}}</view>
  17. <view class="size-26 text-color-333 m-t10"><text>{{item.attachmentFormat}}</text>•<text>{{(item.attachmentSize/1024/1024).toFixed(2)}}MB</text></view>
  18. </view>
  19. </view>
  20. <view>
  21. <uni-icons type="right" size="20"></uni-icons>
  22. </view>
  23. </view>
  24. </view>
  25. </view>
  26. </template>
  27. <script>
  28. export default {
  29. name:'word-list',
  30. props: {
  31. businessId:{
  32. default:0
  33. }
  34. },
  35. data() {
  36. return {
  37. stageList: []
  38. }
  39. },
  40. watch:{
  41. 'businessId':function () {
  42. // this.getStageList()
  43. }
  44. },
  45. mounted() {
  46. this.getStageList()
  47. },
  48. methods: {
  49. getStageList() {
  50. this.stageList=[
  51. {'attachmentName':'拍卖裁定书.docx','attachmentFormat':'docx','attachmentSize':465445,'attachmentAddress':'https://storage.jd.com/auction.gateway/5EB379EF1ADA205F9525D1BFA9DC1D4D20250616121557808.docx'},
  52. {'attachmentName':'通知书(定向询价).pdf','attachmentFormat':'pdf','attachmentSize':284577,'attachmentAddress':'https://storage.jd.com/auction.gateway/2CC6F971D5CA2A11B829D01956446F3920250418151753793.pdf'},
  53. {'attachmentName':'评估报告1.pdf','attachmentFormat':'pdf','attachmentSize':3276836,'attachmentAddress':'https://storage.jd.com/auction.gateway/7F7226679C6E76620D9381906217543920250612120816112.pdf'},
  54. ]
  55. },
  56. },
  57. }
  58. </script>
  59. <style lang="scss" scoped>
  60. .file-box{
  61. width: 100%;
  62. padding: 32rpx;
  63. display: flex;
  64. align-items: center;
  65. justify-content: space-between;
  66. .file-data{
  67. display: flex;
  68. justify-content: flex-start;
  69. .file-icon{
  70. display: flex;
  71. justify-content: center;
  72. align-items: center;
  73. width: 96rpx;
  74. height: 96rpx;
  75. border-radius: 20rpx;
  76. background-color:oklch(.97 .014 254.604);
  77. margin-right: 32rpx;
  78. }
  79. .file-icon-pdf{
  80. background-color: oklch(.971 .013 17.38);
  81. }
  82. .file-icon-excel{
  83. background-color: oklch(.982 .018 155.826);
  84. }
  85. }
  86. }
  87. .steps-item:last-child {
  88. margin-bottom: 0;
  89. }
  90. .steps-line {
  91. width: 2rpx;
  92. background-color: #D9D9D9;
  93. height: 90rpx;
  94. }
  95. </style>