word.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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 r-20">
  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:'entities',
  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. box-shadow: 0 2rpx 6rpx 0 #0000001a, 0 2rpx 2px -2rpx #0000001a;
  62. width: 100%;
  63. padding: 32rpx;
  64. display: flex;
  65. align-items: center;
  66. justify-content: space-between;
  67. .file-data{
  68. display: flex;
  69. justify-content: flex-start;
  70. .file-icon{
  71. display: flex;
  72. justify-content: center;
  73. align-items: center;
  74. width: 96rpx;
  75. height: 96rpx;
  76. border-radius: 20rpx;
  77. background-color:#f8f9ff;
  78. margin-right: 32rpx;
  79. }
  80. .file-icon-pdf{
  81. background-color: #fff8f8;
  82. }
  83. .file-icon-excel{
  84. background-color:#f6fffb;
  85. }
  86. }
  87. }
  88. .steps-item:last-child {
  89. margin-bottom: 0;
  90. }
  91. .steps-line {
  92. width: 2rpx;
  93. background-color: #D9D9D9;
  94. height: 90rpx;
  95. }
  96. </style>