my_complaint_detail.vue 3.0 KB

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