matterDetails.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <template>
  2. <view class="matter-page">
  3. <template v-if="info">
  4. <view class="matter-item" v-if="info.handleMethod">
  5. <view class="matter-label">办理方式</view>
  6. <view class="matter-val">{{info.handleMethod}}</view>
  7. </view>
  8. <view class="matter-item" v-if="info.serviceObject">
  9. <view class="matter-label">服务对象</view>
  10. <view class="matter-val">{{info.serviceObject}}</view>
  11. </view>
  12. <view class="matter-item" v-if="info.processingConditions">
  13. <view class="matter-label">办理条件</view>
  14. <view class="matter-val" v-html="info.processingConditions"></view>
  15. </view>
  16. <view class="matter-item" v-if="info.processingMaterial">
  17. <view class="matter-label">办理材料</view>
  18. <view class="matter-val" v-html="info.processingMaterial"></view>
  19. </view>
  20. <view class="matter-item" v-if="info.processingDays">
  21. <view class="matter-label">承诺办结</view>
  22. <view class="matter-val">{{info.processingDays}}天(工作日)</view>
  23. </view>
  24. </template>
  25. </view>
  26. </template>
  27. <script>
  28. export default {
  29. data() {
  30. return {
  31. info: {
  32. // "deleteFlag": "NOT_DELETE",
  33. // "createTime": "2024-12-17 17:38:09",
  34. // "createUser": "1543837863788879871",
  35. // "updateTime": null,
  36. // "updateUser": null,
  37. // "id": "1868953821385449474",
  38. // "category": "交通",
  39. // "name": "message",
  40. // "code": "test---11",
  41. // "businessType": "SECURITY",
  42. // "appId": "1851541103046574082",
  43. // "bizAppName": null,
  44. // "sort": 1,
  45. // "active": "ENABLE",
  46. // "processingDays": 2,
  47. // "matterType": "COMPREHENSIVE",
  48. // "handleMethod": "ONLINE_PROCESSING,WINDOW_PROCESSING",
  49. // "serviceObject": "PERSON,ENTERPRISE",
  50. // "processingConditions": "<p><img src=\"http://192.168.0.78:8282/dev/file/download?id=1868953714309062658\" alt=\"\" width=\"152\" height=\"152\"></p>",
  51. // "processingMaterial": "<p>大萨达撒<a href=\"https://www.baidu.com\">www.baidu.com</a></p>",
  52. // "transMap": {}
  53. }
  54. }
  55. },
  56. onLoad() {
  57. const eventChannel = this.getOpenerEventChannel();
  58. eventChannel.on('acceptDataFromOpenerPage', data => {
  59. this.info = data
  60. uni.setNavigationBarTitle({
  61. title: data.name
  62. });
  63. })
  64. }
  65. }
  66. </script>
  67. <style lang="scss" scoped>
  68. .matter-page {
  69. width: 100%;
  70. min-height: 100vh;
  71. background-color: #F2F2F2;
  72. padding: 30rpx;
  73. .matter-item {
  74. width: 100%;
  75. border: 1rpx solid #E0DDDD;
  76. display: flex;
  77. justify-content: space-between;
  78. align-items: stretch;
  79. margin-bottom: 30rpx;
  80. >view {
  81. flex-shrink: 0;
  82. padding: 20rpx;
  83. }
  84. .matter-label {
  85. width: 30%;
  86. background-color: #fff;
  87. display: flex;
  88. justify-content: center;
  89. align-items: center;
  90. }
  91. .matter-val {
  92. // display: flex;
  93. // justify-content: center;
  94. // align-items: center;
  95. // flex-wrap: wrap;
  96. border-left: 1rpx solid #E0DDDD;
  97. width: 70%;
  98. background-color: #F4FAFF;
  99. white-space: pre-wrap;
  100. overflow-wrap: break-word;
  101. }
  102. }
  103. }
  104. ::v-deep img,
  105. ::v-deep video,
  106. ::v-deep audio {
  107. max-width: 100%;
  108. }
  109. </style>