infoDetail.vue 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  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" @click="listclick(item)">
  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. if (res.data) {
  88. this.dataObj = res.data
  89. uni.hideLoading()
  90. }
  91. } else {
  92. uni.hideLoading()
  93. uni.showToast({
  94. title: res.message,
  95. icon: 'none',
  96. duration: 2000
  97. })
  98. }
  99. })
  100. .catch(res => {
  101. uni.showToast({
  102. title: res.message,
  103. icon: 'none',
  104. duration: 2000
  105. })
  106. });
  107. this.$request.baseRequest('get', '/hyPublicConsultation/selectHyPublicConsultation', {
  108. currentPage: this.currentPage,
  109. pageSize: this.pageSize,
  110. searchKeyWord: '',
  111. searchType: this.navTitle
  112. }).then(res => {
  113. console.log("res", res)
  114. if (res.code == 200) {
  115. this.tableData = res.data.records
  116. this.total = res.data.total
  117. uni.hideLoading()
  118. } else {
  119. uni.hideLoading()
  120. uni.showToast({
  121. title: res.message,
  122. icon: 'none',
  123. duration: 2000
  124. })
  125. }
  126. })
  127. .catch(res => {
  128. uni.showToast({
  129. title: res.message,
  130. icon: 'none',
  131. duration: 2000
  132. })
  133. });
  134. },
  135. moreClick(type) {
  136. uni.navigateTo({
  137. url: "/pages/index/info?type=" + this.type
  138. })
  139. },
  140. listclick(row) {
  141. this.$request.baseRequest('get', '/hyPublicConsultation/getHyPublicConsultation', {
  142. id: row.id,
  143. }).then(res => {
  144. this.dataObj = res.data
  145. })
  146. },
  147. }
  148. }
  149. </script>
  150. <style scoped lang="scss">
  151. .content1 {
  152. width: 80%;
  153. // background: white;
  154. margin: 80rpx auto;
  155. padding: 40rpx 0;
  156. box-sizing: border-box;
  157. display: flex;
  158. justify-content: space-between;
  159. .left {
  160. width: 65%;
  161. background: white;
  162. padding: 40rpx 80rpx;
  163. }
  164. .right {
  165. margin-left: 40rpx;
  166. width: 30%;
  167. background: white;
  168. }
  169. .nav-title {
  170. font-size: 28rpx;
  171. color: #66686C;
  172. line-height: 20px;
  173. }
  174. .content-title {
  175. display: flex;
  176. justify-content: center;
  177. font-size: 68rpx;
  178. font-weight: 500;
  179. color: #0B0B0B;
  180. line-height: 48px;
  181. margin: 40rpx 0;
  182. }
  183. .ej-title {
  184. display: flex;
  185. .ly {
  186. margin-left: 40rpx;
  187. display: flex;
  188. font-size: 28rpx;
  189. color: #A7A7A7;
  190. line-height: 40rpx;
  191. .ly-name {
  192. color: #0B0B0B
  193. }
  194. }
  195. .fb-time {
  196. font-size: 28rpx;
  197. color: #A7A7A7;
  198. line-height: 40rpx;
  199. }
  200. }
  201. .right {
  202. .right-title {
  203. background: #e9dcdc;
  204. display: flex;
  205. justify-content: space-between;
  206. padding: 10px;
  207. }
  208. .more {
  209. color: #2F54EF;
  210. }
  211. .item {
  212. border-bottom: 1px solid #F5F5F5;
  213. }
  214. .content-text {
  215. padding: 40rpx;
  216. box-sizing: border-box;
  217. .row1 {
  218. font-size: 36rpx;
  219. color: #333333;
  220. }
  221. .date {
  222. font-size: 36rpx;
  223. color: #90969B;
  224. margin-top: 10rpx;
  225. }
  226. }
  227. .item:nth-of-type(5) {
  228. border: 0;
  229. }
  230. }
  231. }
  232. </style>