zxDetail.vue 4.3 KB

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