appealCard.vue 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <template>
  2. <div class="otherAppeal" >
  3. <div class="title">
  4. {{ otherAppeal.title }}
  5. </div>
  6. <div v-if="!isOther">
  7. <img
  8. src="/static/appeal/waited.svg"
  9. class="state"
  10. v-if="otherAppeal.process === 2"
  11. />
  12. <img src="/static/appeal/waiting.svg" class="state" v-else />
  13. </div>
  14. <div class="details" v-if="otherAppeal.process === '2'">
  15. <img src="/static/appeal/avator.png" class="icon" />
  16. <p class="msg">
  17. <span class="name">{{ otherAppeal.department_name }}</span
  18. >:
  19. <span class="msg_body">{{ otherAppeal.reply }}</span>
  20. </p>
  21. </div>
  22. <div class="details" v-else>
  23. <p class="msg">
  24. <span class="msg_body_waiting">正在处理中……</span>
  25. </p>
  26. </div>
  27. <!-- <div class="details" v-else>
  28. <img src="/static/appeal/avator.png" class="icon" />
  29. <p class="msg">
  30. <span class="name">{{ otherAppeal.department_name }}</span
  31. >:
  32. <span class="msg_body">{{ otherAppeal.reply }}</span>
  33. </p>
  34. </div> -->
  35. </div>
  36. </template>
  37. <script>
  38. export default {
  39. props: ["otherAppeal", "isOther"],
  40. };
  41. </script>
  42. <style lang="scss" scoped>
  43. .otherAppeal {
  44. margin: 5% 8%;
  45. position: relative;
  46. height: 200rpx;
  47. .title {
  48. margin-bottom: 5%;
  49. font-size: 30rpx;
  50. font-weight: 600;
  51. }
  52. .state {
  53. position: absolute;
  54. right: 0;
  55. top: 0;
  56. transform: translateY(-30%);
  57. width: 94rpx;
  58. height: 74rpx;
  59. }
  60. .details {
  61. position: relative;
  62. .name {
  63. font-size: 26rpx;
  64. color: red;
  65. }
  66. .msg {
  67. font-size: 26rpx;
  68. overflow: hidden;
  69. text-overflow: ellipsis;
  70. display: -webkit-box;
  71. -webkit-box-orient: vertical;
  72. -webkit-line-clamp: 3;
  73. word-wrap: break-word;
  74. word-break: break-all;
  75. line-height: 40rpx;
  76. letter-spacing: 2rpx;
  77. .msg_body_waiting {
  78. color: #aaa;
  79. }
  80. }
  81. .icon {
  82. width: 50rpx;
  83. height: 50rpx;
  84. position: absolute;
  85. transform: translateX(-100%);
  86. }
  87. }
  88. }
  89. </style>