appealCard.vue 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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: 28rpx;
  50. }
  51. .state {
  52. position: absolute;
  53. right: 0;
  54. top: 0;
  55. transform: translateY(-30%);
  56. width: 94rpx;
  57. height: 74rpx;
  58. }
  59. .details {
  60. position: relative;
  61. .name {
  62. font-size: 25rpx;
  63. color: red;
  64. }
  65. .msg {
  66. font-size: 25rpx;
  67. overflow: hidden;
  68. text-overflow: ellipsis;
  69. display: -webkit-box;
  70. -webkit-box-orient: vertical;
  71. -webkit-line-clamp: 3;
  72. word-wrap: break-word;
  73. word-break: break-all;
  74. line-height: 40rpx;
  75. letter-spacing: 2rpx;
  76. .msg_body_waiting {
  77. color: #aaa;
  78. }
  79. }
  80. .icon {
  81. width: 50rpx;
  82. height: 50rpx;
  83. position: absolute;
  84. transform: translateX(-100%);
  85. }
  86. }
  87. }
  88. </style>