my_complaint_detail.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <template>
  2. <view class="wrapper">
  3. <view>
  4. <view>
  5. <text>投诉号:</text>
  6. <text class="benginTwo">{{complaint.id}}</text>
  7. </view>
  8. <view>
  9. <text>ID:</text>
  10. <text class="benginTwo">{{complaint.fromUid}}</text>
  11. </view>
  12. </view>
  13. <!-- 处理人ID和处理人昵称 -->
  14. <view>
  15. <view>
  16. <text>处理人ID:</text>
  17. <text>{{complaint.processorUid}}</text>
  18. </view>
  19. <view>
  20. <text>处理人昵称:</text>
  21. <text>{{complaint.name}}</text>
  22. </view>
  23. </view>
  24. <!-- 建议标题和日期 -->
  25. <view class="suggestTitleWrapper">
  26. <text class="suggestTtile">投诉标题</text>
  27. <text class="suggestTime">{{complaint.complaintTitle}}</text>
  28. </view>
  29. <!-- 建议内容 -->
  30. <view class="suggestContentWrapper">
  31. <text>投诉内容:</text>
  32. <text>{{complaint.complaintDetail}}</text>
  33. </view>
  34. <!-- 处理结果 -->
  35. <view class="handleResult">
  36. <text>处理结果描述:</text>
  37. <text>{{complaint.result}}</text>
  38. </view>
  39. <!-- 日期 -->
  40. <view class="handleResult">
  41. <text>结案日期时间:</text>
  42. <text class="handleTime">{{complaint.closetime}}</text>
  43. </view>
  44. <!-- 处理状态 -->
  45. <view class="handleStatus">
  46. <text>{{complaint.status}}</text>
  47. </view>
  48. </view>
  49. </template>
  50. <script>
  51. export default {
  52. data() {
  53. return {
  54. complaint: {}
  55. }
  56. },
  57. onLoad(opt){
  58. this.complaint = JSON.parse(decodeURIComponent(opt.item));
  59. if(this.complaint.processorUid==null){
  60. this.complaint.processorUid = " ";
  61. }
  62. if(this.complaint.name==null){
  63. this.complaint.name = " ";
  64. }
  65. if(this.complaint.result==null){
  66. this.complaint.result = " ";
  67. }
  68. if(this.complaint.closetime==null){
  69. this.complaint.closetime = " ";
  70. }
  71. }
  72. }
  73. </script>
  74. <style lang="scss">
  75. /* 设置背景 */
  76. page{
  77. background-color: #FFF2CC;
  78. height: 100%;
  79. }
  80. .wrapper {
  81. padding: 20rpx;
  82. }
  83. .benginTwo {
  84. margin-left: 10rpx;
  85. }
  86. /* 建议标题和时间 */
  87. .suggestTitleWrapper{
  88. margin-top: 50rpx;
  89. display: flex;
  90. flex-direction: column;
  91. align-items: center;
  92. }
  93. /* 单独设置标题 */
  94. .suggestTtile{
  95. font-weight: bold;
  96. }
  97. /* 单独设置建议时间 */
  98. .suggestTime{
  99. font-size: 26rpx;
  100. color: #A6A6A6;
  101. }
  102. /* 建议内容 */
  103. .suggestContentWrapper{
  104. margin-top: 40rpx;
  105. display: flex;
  106. flex-direction: column;
  107. height: 600rpx;
  108. }
  109. /* 处理结果 */
  110. .handleResult{
  111. margin-top: 30rpx;
  112. }
  113. /* 处理时间 */
  114. .handleTime{
  115. font-weight: bold;
  116. }
  117. /* 处理状态 */
  118. .handleStatus{
  119. margin: 60rpx 0;
  120. display: flex;
  121. flex-direction: column;
  122. align-items: center;
  123. font-weight: bold;
  124. color: red;
  125. }
  126. </style>