index.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421
  1. <template>
  2. <div id="technical">
  3. <el-col :span="24" class="main">
  4. <el-col :span="12" class="left">
  5. <el-col :span="24" class="downLeftTop">
  6. <el-image :src="downLeftTopImage"></el-image>
  7. <span class="topText">
  8. <span>专家问诊</span>
  9. <span
  10. ><p>E</p>
  11. <p>xpert</p></span
  12. >
  13. <span @click="turnToList('专家问诊')">更多</span>
  14. </span>
  15. </el-col>
  16. <el-col :span="24" class="infoLeft">
  17. <el-col :span="24" class="infoLeft">
  18. <el-col class="infoLeftList" :span="24" v-for="(item, index) in zhuanjiaList" :key="index">
  19. <p>{{ item.publish_time }}</p>
  20. <p></p>
  21. <p>
  22. <span class="textOver" @click="$router.push({ path: '/technical/list', query: { id: item.id, display: 3, column_name: '专家问诊' } })">{{
  23. item.title
  24. }}</span>
  25. <span>{{ item.titlejj }}</span>
  26. </p>
  27. </el-col>
  28. </el-col>
  29. </el-col>
  30. </el-col>
  31. <el-col :span="12" class="right">
  32. <el-col :span="24" class="downLeftTop">
  33. <el-image :src="downLeftTopImage"></el-image>
  34. <span class="topText">
  35. <span>行业研究</span>
  36. <span
  37. ><p>I</p>
  38. <p>ndustry</p></span
  39. >
  40. <span @click="turnToList('行业研究')">更多</span>
  41. </span>
  42. </el-col>
  43. <el-col :span="23" class="infoRight">
  44. <el-col class="infoRightList" :span="24" v-for="(item, index) in hangyeList" :key="index">
  45. <p>
  46. <span class="textOver" @click="$router.push({ path: '/technical/list', query: { id: item.id, display: 3, column_name: '行业研究' } })">{{
  47. item.title
  48. }}</span
  49. ><span class="textOver">{{ item.publish_time }}</span>
  50. </p>
  51. </el-col>
  52. </el-col>
  53. </el-col>
  54. <el-col :span="24">
  55. <el-image :src="jishuImage" class="jishuImage"></el-image>
  56. </el-col>
  57. <el-col :span="12" class="left">
  58. <el-col :span="24" class="downLeftTop">
  59. <el-image :src="downLeftTopImage"></el-image>
  60. <span class="topText">
  61. <span>嘉宾访谈</span>
  62. <span
  63. ><p>G</p>
  64. <p>uidance</p></span
  65. >
  66. <span @click="turnToList('嘉宾访谈')">更多</span>
  67. </span>
  68. </el-col>
  69. <el-col :span="24" class="infoLeft">
  70. <el-col class="infoRightList" :span="24" v-for="(item, index) in zhidaolist" :key="index">
  71. <p>
  72. <span class="textOver" @click="$router.push({ path: '/technical/list', query: { id: item.id, display: 4, column_name: '嘉宾访谈' } })">{{
  73. item.title
  74. }}</span
  75. ><span class="textOver">{{ item.publish_time }}</span>
  76. </p>
  77. </el-col>
  78. </el-col>
  79. </el-col>
  80. <el-col :span="12" class="right">
  81. <el-col :span="24" class="downLeftTop">
  82. <el-image :src="downLeftTopImage"></el-image>
  83. <span class="topText">
  84. <span>项目路演</span>
  85. <span
  86. ><p>R</p>
  87. <p>oadshow</p></span
  88. >
  89. <span @click="turnToList('项目路演')">更多</span>
  90. </span>
  91. </el-col>
  92. <el-col :span="23" class="infoRight">
  93. <el-col class="infoLeftList" :span="24" v-for="(item, index) in luyanlist" :key="index">
  94. <p>{{ item.publish_time }}</p>
  95. <p>
  96. <span class="textOver" @click="$router.push({ path: '/technical/list', query: { id: item.id, display: 3, column_name: '项目路演' } })">{{
  97. item.title
  98. }}</span>
  99. <span>{{ item.titlejj }}</span>
  100. </p>
  101. </el-col>
  102. </el-col>
  103. </el-col>
  104. </el-col>
  105. </div>
  106. </template>
  107. <script>
  108. import _ from 'lodash';
  109. import { mapState, createNamespacedHelpers } from 'vuex';
  110. const { mapActions: column } = createNamespacedHelpers('column');
  111. const { mapActions: news } = createNamespacedHelpers('news');
  112. const { mapActions: newsguidance } = createNamespacedHelpers('newsguidance');
  113. const { mapActions: newsroadshow } = createNamespacedHelpers('newsroadshow');
  114. export default {
  115. name: 'technical',
  116. props: {},
  117. components: {},
  118. data: () => ({
  119. downLeftTopImage: require('@/assets/live/square_big.png'),
  120. jishuImage: require('@/assets/live/main3.png'),
  121. zhuanjiaList: [],
  122. hangyeList: [],
  123. zhidaolist: [],
  124. luyanlist: [],
  125. }),
  126. created() {
  127. this.searchInfo();
  128. },
  129. computed: {
  130. pageTitle() {
  131. return `${this.$route.meta.title}`;
  132. },
  133. },
  134. metaInfo() {
  135. return { title: this.$route.meta.title };
  136. },
  137. methods: {
  138. ...column({ columnList: 'query', columnInfo: 'fetch' }),
  139. ...news({ newsList: 'query' }),
  140. ...newsguidance({ danceQuery: 'query' }),
  141. ...newsroadshow({ adshowQuery: 'query' }),
  142. async searchInfo({ ...info } = {}) {
  143. const res = await this.columnList({ ...info });
  144. for (const val of res.data) {
  145. this.tpxwSearch({ column_id: val.id, column_name: val.name, site: val.site });
  146. }
  147. const zhidao = await this.danceQuery({ skip: 0, limit: 8 });
  148. if (this.$checkRes(zhidao)) this.$set(this, `zhidaolist`, zhidao.data);
  149. const luyan = await this.adshowQuery({ skip: 0, limit: 5 });
  150. if (this.$checkRes(luyan)) this.$set(this, `luyanlist`, luyan.data);
  151. },
  152. async tpxwSearch({ column_id, column_name, site } = {}) {
  153. if (column_name == '专家问诊') {
  154. const res = await this.newsList({ skip: 0, limit: 8, column_id: column_id });
  155. if (this.$checkRes(res)) this.$set(this, `zhuanjiaList`, res.data);
  156. } else if (column_name == '行业研究') {
  157. const res = await this.newsList({ skip: 0, limit: 8, column_id: column_id });
  158. if (this.$checkRes(res)) this.$set(this, `hangyeList`, res.data);
  159. }
  160. },
  161. turnToList(column_name) {
  162. this.$router.push({ path: '/technical/list', query: { column_name: column_name, display: 1 } });
  163. },
  164. },
  165. };
  166. </script>
  167. <style lang="less" scoped>
  168. .jishuImage {
  169. width: 100%;
  170. height: 160px;
  171. }
  172. .main {
  173. width: 80%;
  174. margin: 0 auto;
  175. float: none;
  176. }
  177. .left {
  178. float: left;
  179. height: 500px;
  180. margin: 30px 0 30px 0;
  181. overflow: hidden;
  182. border-right: 1px dashed #044b79;
  183. width: 49.5%;
  184. }
  185. .leftTitle {
  186. text-align: center;
  187. position: relative;
  188. }
  189. .leftTitle p:first-child {
  190. font-size: 18px;
  191. color: #044b79;
  192. font-weight: bold;
  193. }
  194. .leftTitle p:last-child {
  195. float: left;
  196. width: 2px;
  197. height: 402px;
  198. background-color: #044b79;
  199. margin: 0 5px;
  200. position: absolute;
  201. left: 9px;
  202. }
  203. .infoLeft {
  204. height: 480px;
  205. padding: 0 10px;
  206. }
  207. .infoLeftList {
  208. float: left;
  209. width: 95%;
  210. border-bottom: 1px dashed #ccc;
  211. padding: 8px 0 8px 0;
  212. height: 90px;
  213. margin: 0 0 0 5px;
  214. }
  215. .infoLeftList:nth-child(5) {
  216. float: left;
  217. width: 95%;
  218. border-bottom: none;
  219. padding: 8px 0 8px 0;
  220. height: 90px;
  221. margin: 0 0 15px 5px;
  222. }
  223. .infoLeftList:hover p:last-child span:first-child {
  224. -webkit-transform: translateY(-3px);
  225. -ms-transform: translateY(-3px);
  226. transform: translateY(-3px);
  227. -webkit-box-shadow: 0 0 6px #999;
  228. box-shadow: 0 0 6px #999;
  229. -webkit-transition: all 0.5s ease-out;
  230. transition: all 0.5s ease-out;
  231. color: #005293;
  232. cursor: pointer;
  233. }
  234. .infoLeftList p:first-child {
  235. float: left;
  236. width: 20%;
  237. font-size: 15px;
  238. background: #044b79;
  239. text-align: center;
  240. color: #fff;
  241. font-weight: bold;
  242. padding: 4px 0px;
  243. margin: 0 0 0 5px;
  244. }
  245. .infoLeftList p:last-child {
  246. float: right;
  247. width: 70%;
  248. padding: 0 0 0 10px;
  249. }
  250. .infoLeftList p:last-child span:first-child {
  251. float: left;
  252. width: 90%;
  253. font-size: 18px;
  254. }
  255. .infoLeftList p:last-child span:last-child {
  256. float: left;
  257. width: 90%;
  258. font-size: 16px;
  259. overflow: hidden;
  260. text-overflow: ellipsis;
  261. -webkit-line-clamp: 2;
  262. word-break: break-all;
  263. display: -webkit-box;
  264. -webkit-box-orient: vertical;
  265. margin: 5px 0 0 0;
  266. color: #666;
  267. }
  268. .leftListDown {
  269. position: relative;
  270. }
  271. .leftListDown span:first-child {
  272. display: inline-block;
  273. width: 80%;
  274. height: 3px;
  275. background: rgba(4, 75, 121, 0.37);
  276. margin: 0 10px 0 0;
  277. position: absolute;
  278. left: -10px;
  279. top: 10px;
  280. }
  281. .leftListDown span:last-child {
  282. font-size: 16px;
  283. float: right;
  284. padding: 0 15px 0 0;
  285. color: #044b79;
  286. font-weight: 700;
  287. cursor: pointer;
  288. }
  289. .right {
  290. float: right;
  291. height: 500px;
  292. overflow: hidden;
  293. margin: 30px 0 30px 0;
  294. width: 49.5%;
  295. }
  296. .rightListTop {
  297. position: relative;
  298. }
  299. .rightListTop span:first-child {
  300. font-size: 16px;
  301. float: left;
  302. padding: 0 0 0 15px;
  303. color: #044b79;
  304. font-weight: 700;
  305. cursor: pointer;
  306. }
  307. .rightListTop span:last-child {
  308. display: inline-block;
  309. width: 80%;
  310. height: 3px;
  311. background: rgba(4, 75, 121, 0.37);
  312. margin: 0 10px 0 0;
  313. position: absolute;
  314. right: -10px;
  315. top: 10px;
  316. }
  317. .infoRight {
  318. height: 480px;
  319. padding: 0 10px;
  320. }
  321. .infoRightList {
  322. float: left;
  323. width: 95%;
  324. padding: 11px 0;
  325. height: 55px;
  326. }
  327. .infoRightList:nth-child(4) {
  328. border-bottom: 1px solid #ccc;
  329. padding: 0 0 17px 0;
  330. }
  331. .infoRightList:nth-child(5) {
  332. padding: 11px 0 0 0;
  333. }
  334. .infoRightList:hover p span:first-child {
  335. -webkit-transform: translateY(-3px);
  336. -ms-transform: translateY(-3px);
  337. transform: translateY(-3px);
  338. -webkit-box-shadow: 0 0 6px #999;
  339. box-shadow: 0 0 6px #999;
  340. -webkit-transition: all 0.5s ease-out;
  341. transition: all 0.5s ease-out;
  342. color: #005293;
  343. cursor: pointer;
  344. }
  345. .infoRightList p {
  346. font-size: 18px;
  347. }
  348. .infoRightList p span:first-child {
  349. display: inline-block;
  350. width: 70%;
  351. margin: 0 20px 0 10px;
  352. }
  353. .infoRightList p span:last-child {
  354. display: inline-block;
  355. width: 21%;
  356. text-align: center;
  357. font-size: 16px;
  358. }
  359. .rightTitle {
  360. text-align: center;
  361. }
  362. .rightTitle p:first-child {
  363. width: 2px;
  364. height: 370px;
  365. background: #044b79;
  366. position: relative;
  367. left: 10px;
  368. top: -20px;
  369. }
  370. .rightTitle p:last-child {
  371. font-size: 18px;
  372. font-weight: bold;
  373. color: #044b79;
  374. }
  375. .downLeftTop .el-image {
  376. width: 40px;
  377. }
  378. .topText {
  379. width: 89%;
  380. border-bottom: 2.5px solid #044b79;
  381. display: inline-block;
  382. position: relative;
  383. top: -10px;
  384. margin: 0 0 0 5px;
  385. }
  386. .topText span:first-child {
  387. font-size: 24px;
  388. font-weight: 700;
  389. color: #000000;
  390. padding: 0 10px;
  391. top: 4px;
  392. }
  393. .topText span p:first-child {
  394. font-weight: 800;
  395. font-size: 34px;
  396. color: #92959a;
  397. top: 11px;
  398. display: inline-block;
  399. }
  400. .topText span p:last-child {
  401. display: inline-block;
  402. font-weight: 700;
  403. font-size: 18px;
  404. color: #92959a;
  405. }
  406. .topText span:last-child {
  407. float: right;
  408. font-size: 16px;
  409. font-weight: 700;
  410. color: #044b79;
  411. position: relative;
  412. top: 20px;
  413. cursor: pointer;
  414. }
  415. </style>