my_suggestion_detail.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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. <!-- 设置页面背景 -->
  76. <style lang="scss">
  77. page{
  78. height: 100%;
  79. // background-color: #FFF;
  80. }
  81. </style>
  82. <style lang="scss">
  83. /* 设置背景 */
  84. // page{
  85. // height: 100%;
  86. // background-color: #FFF2CC;
  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>