matterDetails.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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 class="distance-btn" @click.stop="goTransact()">
  26. <text>去办理</text>
  27. </view>
  28. </view>
  29. </template>
  30. <script>
  31. export default {
  32. data() {
  33. return {
  34. info: {
  35. // "deleteFlag": "NOT_DELETE",
  36. // "createTime": "2024-12-17 17:38:09",
  37. // "createUser": "1543837863788879871",
  38. // "updateTime": null,
  39. // "updateUser": null,
  40. // "id": "1868953821385449474",
  41. // "category": "交通",
  42. // "name": "message",
  43. // "code": "test---11",
  44. // "businessType": "SECURITY",
  45. // "appId": "1851541103046574082",
  46. // "bizAppName": null,
  47. // "sort": 1,
  48. // "active": "ENABLE",
  49. // "processingDays": 2,
  50. // "matterType": "COMPREHENSIVE",
  51. // "handleMethod": "ONLINE_PROCESSING,WINDOW_PROCESSING",
  52. // "serviceObject": "PERSON,ENTERPRISE",
  53. // "processingConditions": "<p><img src=\"http://192.168.0.78:8282/dev/file/download?id=1868953714309062658\" alt=\"\" width=\"152\" height=\"152\"></p>",
  54. // "processingMaterial": "<p>大萨达撒<a href=\"https://www.baidu.com\">www.baidu.com</a></p>",
  55. // "transMap": {}
  56. }
  57. }
  58. },
  59. onLoad() {
  60. const eventChannel = this.getOpenerEventChannel();
  61. eventChannel.on('acceptDataFromOpenerPage', data => {
  62. this.info = data
  63. uni.setNavigationBarTitle({
  64. title: data.name
  65. });
  66. })
  67. },
  68. methods:{
  69. goTransact(){
  70. window.location = 'https://wsgaj.chutianyun.gov.cn/weixin/#/'
  71. }
  72. }
  73. }
  74. </script>
  75. <style lang="scss" scoped>
  76. .matter-page {
  77. width: 100%;
  78. min-height: 100vh;
  79. background-color: #F2F2F2;
  80. padding: 30rpx;
  81. .matter-item {
  82. width: 100%;
  83. border: 1rpx solid #E0DDDD;
  84. display: flex;
  85. justify-content: space-between;
  86. align-items: stretch;
  87. margin-bottom: 30rpx;
  88. >view {
  89. flex-shrink: 0;
  90. padding: 20rpx;
  91. }
  92. .matter-label {
  93. width: 30%;
  94. background-color: #fff;
  95. display: flex;
  96. justify-content: center;
  97. align-items: center;
  98. }
  99. .matter-val {
  100. // display: flex;
  101. // justify-content: center;
  102. // align-items: center;
  103. // flex-wrap: wrap;
  104. border-left: 1rpx solid #E0DDDD;
  105. width: 70%;
  106. background-color: #F4FAFF;
  107. white-space: pre-wrap;
  108. overflow-wrap: break-word;
  109. }
  110. }
  111. }
  112. ::v-deep img,
  113. ::v-deep video,
  114. ::v-deep audio {
  115. max-width: 100%;
  116. }
  117. .distance-btn {
  118. margin: 50rpx auto 0;
  119. width: 150rpx;
  120. height: 60rpx;
  121. border-radius: 10rpx;
  122. background-color: #61A8FF;
  123. display: flex;
  124. justify-content: center;
  125. align-items: center;
  126. font-size: 22rpx;
  127. font-weight: 700;
  128. color: #ffffff;
  129. }
  130. </style>