my_suggestion_detail.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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. 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>