图书馆小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

87 lines
1.5 KiB

  1. <template>
  2. <view class="feedback-detail-page">
  3. <view class="section">
  4. <text class="subject">{{ detail.subject }}</text>
  5. <view class="section-content">{{ detail.content }}</view>
  6. <text class="time">{{ detail.createTime }}</text>
  7. </view>
  8. <view class="section reply-section">
  9. <view class="section-title">馆方回复</view>
  10. <view class="section-content" v-if="detail.reply">{{ detail.reply }}</view>
  11. <view class="section-content no-reply" v-else>未回复</view>
  12. </view>
  13. </view>
  14. </template>
  15. <script>
  16. export default {
  17. data() {
  18. return {
  19. detail: {}
  20. };
  21. },
  22. onLoad(options) {
  23. if (options.item) {
  24. this.detail = JSON.parse(decodeURIComponent(options.item));
  25. }
  26. }
  27. };
  28. </script>
  29. <style lang="scss" scoped>
  30. .feedback-detail-page {
  31. padding: 15px;
  32. background-color: #f7f8fa;
  33. min-height: 100vh;
  34. }
  35. .section {
  36. background-color: #fff;
  37. border-radius: 10px;
  38. padding: 15px;
  39. margin-bottom: 12px;
  40. }
  41. .section-title {
  42. font-size: 14px;
  43. font-weight: bold;
  44. color: #333;
  45. margin-bottom: 10px;
  46. }
  47. .section-content {
  48. font-size: 15px;
  49. color: #666;
  50. line-height: 1.6;
  51. margin-bottom: 6px;
  52. }
  53. .section-content:last-child {
  54. margin-bottom: 0;
  55. }
  56. .subject {
  57. font-size: 16px;
  58. font-weight: bold;
  59. color: #333;
  60. display: block;
  61. margin-bottom: 10px;
  62. }
  63. .time {
  64. font-size: 12px;
  65. color: #999;
  66. display: block;
  67. text-align: right;
  68. }
  69. .no-reply {
  70. color: #999;
  71. font-style: italic;
  72. }
  73. .reply-section {
  74. background-color: #f0f9ff;
  75. }
  76. </style>