infoDetail.vue 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. <template>
  2. <view class="container">
  3. <top></top>
  4. <view class="content1">
  5. <view class="left">
  6. <view class="nav-title">
  7. 首页>平台{{navTitle}}>{{navTitle}}详情
  8. </view>
  9. <view class="content-title">
  10. {{dataObj.title}}
  11. </view>
  12. <view class="ej-title">
  13. <view class="fb-time">
  14. {{dataObj.issuingDate}}
  15. </view>
  16. <view class="ly">
  17. <view class="ly-text">
  18. 来源:
  19. </view>
  20. <view class="ly-name">
  21. {{dataObj.issuingAgency}}
  22. </view>
  23. </view>
  24. </view>
  25. <u-line color="#F5F5F5" style='margin:44px 0'></u-line>
  26. <view class="" v-html="dataObj.releaseContent"></view>
  27. </view>
  28. <view class="right">
  29. <view class="right-title">
  30. <view class="">
  31. 平台{{navTitle}}
  32. </view>
  33. <view class="more" @click="moreClick">
  34. 更多 >
  35. </view>
  36. </view>
  37. <view class="list">
  38. <view class="item" v-for="item in tableData">
  39. <view class="point">
  40. </view>
  41. <view class="content-text">
  42. <view class="row1">
  43. {{item.title}}
  44. </view>
  45. <view class="date">
  46. {{item.issuingDate}}
  47. </view>
  48. </view>
  49. </view>
  50. </view>
  51. </view>
  52. </view>
  53. <bottom></bottom>
  54. </view>
  55. </template>
  56. <script>
  57. import top from '@/components/top.vue'
  58. import bottom from '@/components/bottom.vue'
  59. export default {
  60. components: {
  61. top,
  62. bottom
  63. },
  64. data() {
  65. return {
  66. navTitle: '',
  67. type: "",
  68. dataObj: {},
  69. tableData: [],
  70. pageSize: 10,
  71. // 当前页
  72. currentPage: 1,
  73. }
  74. },
  75. onLoad(options) {
  76. this.navTitle = options.type
  77. this.id = options.id
  78. this.init()
  79. },
  80. methods: {
  81. init() {
  82. this.$request.baseRequest('get', '/hyPublicConsultation/getHyPublicConsultation', {
  83. id: this.id,
  84. }).then(res => {
  85. console.log("res", res)
  86. if (res.code == 200) {
  87. debugger
  88. this.dataObj = res.data
  89. uni.hideLoading()
  90. } else {
  91. uni.hideLoading()
  92. uni.showToast({
  93. title: res.message,
  94. icon: 'none',
  95. duration: 2000
  96. })
  97. }
  98. })
  99. .catch(res => {
  100. uni.showToast({
  101. title: res.message,
  102. icon: 'none',
  103. duration: 2000
  104. })
  105. });
  106. this.$request.baseRequest('get', '/hyPublicConsultation/selectHyPublicConsultation', {
  107. currentPage: this.currentPage,
  108. pageSize: this.pageSize,
  109. searchKeyWord: '',
  110. searchType: this.navTitle
  111. }).then(res => {
  112. console.log("res", res)
  113. if (res.code == 200) {
  114. this.tableData = res.data.records
  115. this.total = res.data.total
  116. uni.hideLoading()
  117. } else {
  118. uni.hideLoading()
  119. uni.showToast({
  120. title: res.message,
  121. icon: 'none',
  122. duration: 2000
  123. })
  124. }
  125. })
  126. .catch(res => {
  127. uni.showToast({
  128. title: res.message,
  129. icon: 'none',
  130. duration: 2000
  131. })
  132. });
  133. },
  134. moreClick(type) {
  135. uni.navigateTo({
  136. url: "/pages/index/info?type=" + this.type
  137. })
  138. },
  139. }
  140. }
  141. </script>
  142. <style scoped lang="scss">
  143. .content1 {
  144. width: 80%;
  145. // background: white;
  146. margin: 80rpx auto;
  147. padding: 40rpx 0;
  148. box-sizing: border-box;
  149. display: flex;
  150. justify-content: space-between;
  151. .left {
  152. width: 65%;
  153. background: white;
  154. padding: 40rpx 80rpx;
  155. }
  156. .right {
  157. margin-left: 40rpx;
  158. width: 30%;
  159. background: white;
  160. }
  161. .nav-title {
  162. font-size: 28rpx;
  163. color: #66686C;
  164. line-height: 20px;
  165. }
  166. .content-title {
  167. display: flex;
  168. justify-content: center;
  169. font-size: 68rpx;
  170. font-weight: 500;
  171. color: #0B0B0B;
  172. line-height: 48px;
  173. margin: 40rpx 0;
  174. }
  175. .ej-title {
  176. display: flex;
  177. .ly {
  178. margin-left: 40rpx;
  179. display: flex;
  180. font-size: 28rpx;
  181. color: #A7A7A7;
  182. line-height: 40rpx;
  183. .ly-name {
  184. color: #0B0B0B
  185. }
  186. }
  187. .fb-time {
  188. font-size: 28rpx;
  189. color: #A7A7A7;
  190. line-height: 40rpx;
  191. }
  192. }
  193. .right {
  194. .right-title {
  195. background: #e9dcdc;
  196. display: flex;
  197. justify-content: space-between;
  198. padding: 10px;
  199. }
  200. .more {
  201. color: #2F54EF;
  202. }
  203. .item {
  204. border-bottom: 1px solid #F5F5F5;
  205. }
  206. .content-text {
  207. padding: 40rpx;
  208. box-sizing: border-box;
  209. .row1 {
  210. font-size: 36rpx;
  211. color: #333333;
  212. }
  213. .date {
  214. font-size: 36rpx;
  215. color: #90969B;
  216. margin-top: 10rpx;
  217. }
  218. }
  219. .item:nth-of-type(5) {
  220. border: 0;
  221. }
  222. }
  223. }
  224. </style>