my_complaint_detail.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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. <!-- 设置页面背景 -->
  75. <style lang="scss">
  76. page{
  77. height: 100%;
  78. // background-color: #FFF;
  79. //background-color: #3ED598;
  80. }
  81. </style>
  82. <style lang="scss" scoped>
  83. /* 设置背景 */
  84. // page{
  85. // background-color: #FFF2CC;
  86. // height: 100%;
  87. // }
  88. .wrapper {
  89. width: 93%;
  90. padding: 20rpx;
  91. margin-left: 10rpx;
  92. border-radius: 20rpx;
  93. background-color: #FFF;
  94. }
  95. .benginTwo {
  96. margin-left: 10rpx;
  97. }
  98. /* 建议标题和时间 */
  99. .suggestTitleWrapper{
  100. margin-top: 50rpx;
  101. display: flex;
  102. flex-direction: column;
  103. align-items: center;
  104. }
  105. /* 单独设置标题 */
  106. .suggestTtile{
  107. font-weight: bold;
  108. }
  109. /* 单独设置建议时间 */
  110. .suggestTime{
  111. font-size: 26rpx;
  112. color: #A6A6A6;
  113. }
  114. /* 建议内容 */
  115. .suggestContentWrapper{
  116. margin-top: 40rpx;
  117. display: flex;
  118. flex-direction: column;
  119. height: 600rpx;
  120. }
  121. /* 处理结果 */
  122. .handleResult{
  123. margin-top: 30rpx;
  124. }
  125. /* 处理时间 */
  126. .handleTime{
  127. font-weight: bold;
  128. }
  129. /* 处理状态 */
  130. .handleStatus{
  131. margin: 60rpx 0;
  132. display: flex;
  133. flex-direction: column;
  134. align-items: center;
  135. font-weight: bold;
  136. color: red;
  137. }
  138. </style>