my_complaint_detail.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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. padding: 20rpx;
  90. }
  91. .benginTwo {
  92. margin-left: 10rpx;
  93. }
  94. /* 建议标题和时间 */
  95. .suggestTitleWrapper{
  96. margin-top: 50rpx;
  97. display: flex;
  98. flex-direction: column;
  99. align-items: center;
  100. }
  101. /* 单独设置标题 */
  102. .suggestTtile{
  103. font-weight: bold;
  104. }
  105. /* 单独设置建议时间 */
  106. .suggestTime{
  107. font-size: 26rpx;
  108. color: #A6A6A6;
  109. }
  110. /* 建议内容 */
  111. .suggestContentWrapper{
  112. margin-top: 40rpx;
  113. display: flex;
  114. flex-direction: column;
  115. height: 600rpx;
  116. }
  117. /* 处理结果 */
  118. .handleResult{
  119. margin-top: 30rpx;
  120. }
  121. /* 处理时间 */
  122. .handleTime{
  123. font-weight: bold;
  124. }
  125. /* 处理状态 */
  126. .handleStatus{
  127. margin: 60rpx 0;
  128. display: flex;
  129. flex-direction: column;
  130. align-items: center;
  131. font-weight: bold;
  132. color: red;
  133. }
  134. </style>