my_suggestion_detail.vue 2.7 KB

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