my_suggestion_detail.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <template>
  2. <view>
  3. <view class="wrapper">
  4. <!-- 建议号和ID -->
  5. <view>
  6. <view>
  7. <text>建议号:</text>
  8. <text class="benginTwo">{{suggestion.id}}</text>
  9. </view>
  10. <view>
  11. <text>ID:</text>
  12. <text class="benginTwo">{{suggestion.fromUid}}</text>
  13. </view>
  14. </view>
  15. <!-- 处理人ID和处理人昵称 -->
  16. <view>
  17. <view>
  18. <text>处理人ID:</text>
  19. <text>{{suggestion.processorUid}}</text>
  20. </view>
  21. </view>
  22. <!-- 建议标题和日期 -->
  23. <view class="suggestTitleWrapper">
  24. <text class="suggestTime">标题</text>
  25. <text class="suggestTtile">{{suggestion.adviseTitle}}</text>
  26. </view>
  27. <!-- 建议内容 -->
  28. <view class="suggestContentWrapper">
  29. <text>建议内容:</text>
  30. <text>{{suggestion.adviseDetail}}</text>
  31. </view>
  32. <!-- 处理结果 -->
  33. <view class="handleResult">
  34. <text>处理结果:</text>
  35. <text>{{suggestion.result}}</text>
  36. </view>
  37. <!-- 日期 -->
  38. <view class="handleResult">
  39. <text>生成日期:</text>
  40. <text class="handleTime">{{suggestion.fistDatetime}}</text>
  41. </view>
  42. <view class="handleResult">
  43. <text>结案日期:</text>
  44. <text class="handleTime">{{suggestion.closetime}}</text>
  45. </view>
  46. </view>
  47. <!-- 处理状态 -->
  48. <view class="handleStatus">
  49. <text>{{suggestion.status}}</text>
  50. </view>
  51. </view>
  52. </template>
  53. <script>
  54. export default {
  55. data() {
  56. return {
  57. suggestion: {}
  58. }
  59. },
  60. onLoad(opt){
  61. this.suggestion = JSON.parse(decodeURIComponent(opt.item));
  62. if(this.suggestion.processorUid==null){
  63. this.suggestion.processorUid = " ";
  64. }
  65. if(this.suggestion.name==null){
  66. this.suggestion.name = " ";
  67. }
  68. if(this.suggestion.result==null){
  69. this.suggestion.result = " ";
  70. }
  71. if(this.suggestion.closetime==null){
  72. this.suggestion.closetime = " ";
  73. }
  74. }
  75. }
  76. </script>
  77. <!-- 设置页面背景 -->
  78. <style lang="scss">
  79. page{
  80. height: 100%;
  81. // background-color: #FFF;
  82. }
  83. </style>
  84. <style lang="scss">
  85. /* 设置背景 */
  86. // page{
  87. // height: 100%;
  88. // background-color: #FFF2CC;
  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: 10rpx;
  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>