You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

412 rivejä
19 KiB

  1. <template>
  2. <div>
  3. <el-carousel trigger="click" height="400px">
  4. <el-carousel-item v-for="(item,index) in lunBoList" :key="index">
  5. <img :src="item.aboutImgUrl" />
  6. </el-carousel-item>
  7. </el-carousel>
  8. <el-main style="width: 1200px;margin: 0 auto">
  9. <el-row class="card_style1">
  10. <el-col :span="6"><div class="grid-content bg-purple"></div>
  11. <el-card class="box-card" shadow="never" :body-style="{ padding: '0px 20px' }">
  12. <div slot="header">
  13. <span><el-divider direction="vertical"></el-divider>重要信息</span>
  14. <!-- <el-button style="float: right; padding: 3px 0;color: #fff;font-size: 12px" type="text">更多&gt;&gt;</el-button> -->
  15. </div>
  16. <div v-for="(o, index) in importList" :key="index" class="text item">
  17. <router-link :to='"/detail?id="+o.id'>{{index+1}}、{{o.title}}</router-link>
  18. </div>
  19. </el-card>
  20. </el-col>
  21. <el-col :span="12"><div class="grid-content bg-purple-light"></div>
  22. <el-card class="box-card" shadow="never" style="margin: 0 10px; position: relative;" :body-style="{ padding: '0px',height:'418px' }">
  23. <img :src="imgObj.aboutImgUrl" />
  24. <div class="img_info">
  25. <span class="img_text">{{imgObj.title}}</span>
  26. </div>
  27. </el-card>
  28. </el-col>
  29. <el-col :span="6"><div class="grid-content bg-purple"></div>
  30. <el-card class="box-card" shadow="never" :body-style="{ padding: '0px 20px' }">
  31. <div slot="header">
  32. <span><el-divider direction="vertical"></el-divider>新闻资讯</span>
  33. <router-link to="/news" style="float: right; padding: 3px 0;color: #fff;font-size: 12px" type="text">更多&gt;&gt;</router-link>
  34. </div>
  35. <div v-for="(item, index) in newsList" :key="index" class="text item">
  36. <router-link :to='"/detail?id="+item.id'>{{index+1}}、{{item.title}}</router-link>
  37. </div>
  38. </el-card>
  39. </el-col>
  40. </el-row>
  41. <el-card class="box-card" shadow="never" :body-style="{ padding: '0px' }" style="margin-top: 10px">
  42. <el-row class="card_style2">
  43. <el-col :span="12">
  44. <el-card class="box-card" shadow="never" :body-style="{ padding: '0px 20px' }">
  45. <div slot="header">
  46. <span><el-divider direction="vertical"></el-divider>行业动态</span>
  47. <router-link to="/trode" style="float: right; padding: 3px 0;color: #999999;font-size: 12px" type="text">更多&gt;&gt;</router-link>
  48. </div>
  49. <h2>
  50. <router-link :to='"/detail?id="+hangDamic.id'>{{hangDamic.title}}</router-link>
  51. </h2>
  52. <p v-html="hangDamic.content" class="max2"></p>
  53. <img :src="hangDamic.aboutImgUrl" style="border-radius: 10px;margin: 10px 0" width="100%"/>
  54. </el-card>
  55. </el-col>
  56. <el-col :span="12">
  57. <el-card class="box-card" shadow="never" :body-style="{ padding: '0px 20px' }">
  58. <div slot="header">
  59. <span><el-divider direction="vertical"></el-divider>产业政策</span>
  60. <router-link to="/policy" style="float: right; padding: 3px 0;color: #999999;font-size: 12px" type="text">更多&gt;&gt;</router-link>
  61. </div>
  62. <div class="list" v-for="(item, index) in chanList" :key="index">
  63. <h2 style="display: flex; flex-direction: row;
  64. width: 100%; align-items: center;">
  65. <router-link :to='"/detail?id="+item.id'><span class="max2">{{item.title}}</span></router-link>
  66. <span style="flex: 1"></span>
  67. <span class="time">{{item.publishTime}}</span>
  68. </h2>
  69. <p v-html="item.content" class="max2"></p>
  70. </div>
  71. </el-card>
  72. </el-col>
  73. </el-row>
  74. </el-card>
  75. <el-card class="box-card" shadow="never" :body-style="{ padding: '0px' }" style="margin-top: 10px">
  76. <el-row class="card_style2">
  77. <el-col :span="8">
  78. <el-card class="box-card" shadow="never" :body-style="{ padding: '0px 20px' }">
  79. <div slot="header">
  80. <span><el-divider direction="vertical"></el-divider>合作交流</span>
  81. <router-link to="/exchange" style="float: right; padding: 3px 0;color: #999999;font-size: 12px" type="text">更多&gt;&gt;</router-link>
  82. </div>
  83. </el-card>
  84. <el-card class="box-card" shadow="never" v-for="(item, index) in hezuoList" :key="index"
  85. :body-style="{ padding: '0px 20px' }">
  86. <h2>
  87. <router-link :to='"/detail?id="+item.id'>
  88. <span style="flex: 1">{{item.title}}</span>
  89. </router-link>
  90. </h2>
  91. <p v-html="item.content" class="max2"></p>
  92. <img :src="item.aboutImgUrl"
  93. style="border-radius: 10px;margin: 10px 0" width="100%"/>
  94. </el-card>
  95. </el-col>
  96. <el-col :span="8">
  97. <el-card class="box-card" shadow="never" :body-style="{ padding: '0px 20px' }">
  98. <div slot="header">
  99. <span><el-divider direction="vertical"></el-divider>知识产权</span>
  100. <router-link to="/km" style="float: right; padding: 3px 0;color: #999999;font-size: 12px" type="text">更多&gt;&gt;</router-link>
  101. </div>
  102. <!-- <h2>半导体产业的分工,芯片设计服务公司大有可为</h2>
  103. <p>回顾历史,半导体产业模式在不断随着市场需求而变化。像一个帝国模式的演变,以1980年作为分界线,往前则是IDM(Integra</p>
  104. <img src="../assets/img/ps33zrxsxe75je6fyz0ieqako59448zdwo2b864170-7f1e-4bcb-9a87-f19996c6d605.png" style="border-radius: 10px;margin: 10px 0" width="100%"/> -->
  105. </el-card>
  106. <el-card class="box-card" shadow="never" v-for="(item, index) in zhishiList" :key="index"
  107. :body-style="{ padding: '0px 20px' }">
  108. <h2>
  109. <router-link :to='"/detail?id="+item.id'>{{item.title}}</router-link>
  110. </h2>
  111. <p v-html="item.content" class="max2"></p>
  112. <img :src="item.aboutImgUrl" style="border-radius: 10px;margin: 10px 0" width="100%"/>
  113. </el-card>
  114. </el-col>
  115. <el-col :span="8">
  116. <el-card class="box-card" shadow="never" :body-style="{ padding: '0px 20px' }">
  117. <div slot="header">
  118. <span><el-divider direction="vertical"></el-divider>会员产品</span>
  119. <router-link to="/member" style="float: right; padding: 3px 0;color: #999999;font-size: 12px" type="text">更多&gt;&gt;</router-link>
  120. </div>
  121. <!-- <h2>半导体产业的分工,芯片设计服务公司大有可为</h2>
  122. <p>回顾历史,半导体产业模式在不断随着市场需求而变化。像一个帝国模式的演变,以1980年作为分界线,往前则是IDM(Integra</p>
  123. <img src="../assets/img/ps33zrxsxe75je6fyz0ieqako59448zdwo2b864170-7f1e-4bcb-9a87-f19996c6d605.png" style="border-radius: 10px;margin: 10px 0" width="100%"/> -->
  124. </el-card>
  125. <el-card class="box-card" shadow="never" v-for="(item, index) in huiyuanList" :key="index"
  126. :body-style="{ padding: '0px 20px' }">
  127. <h2><router-link :to='"/detail?id="+item.id'>{{item.title}}</router-link>
  128. </h2>
  129. <p v-html="item.content" class="max2"></p>
  130. <img :src="item.aboutImgUrl" style="border-radius: 10px;margin: 10px 0" width="100%"/>
  131. </el-card>
  132. </el-col>
  133. </el-row>
  134. </el-card>
  135. <el-card class="box-card" shadow="never" :body-style="{ padding: '0px' }" style="margin-top: 10px">
  136. <el-row class="card_style2">
  137. <el-col :span="12" style="position: relative">
  138. <el-card class="box-card" shadow="never" :body-style="{ padding: '0px 20px' }">
  139. <div slot="header">
  140. <span><el-divider direction="vertical"></el-divider>合作交流</span>
  141. <router-link to="/exchange" style="float: right; padding: 3px 0;color: #999999;font-size: 12px" type="text">更多&gt;&gt;</router-link>
  142. </div>
  143. <div class="list" v-for="(item, index) in hezuoList" :key="index">
  144. <h2 style="display: flex; flex-direction: row;
  145. width: 100%; align-items: center;">
  146. <router-link :to='"/detail?id="+item.id'>
  147. <span >{{item.title}}</span>
  148. </router-link>
  149. <span style="flex: 1"></span>
  150. <span class="time">{{item.publishTime}}</span>
  151. </h2>
  152. <p v-html="item.content" class="max2"></p>
  153. </div>
  154. </el-card>
  155. <div style="border-right: 1px solid #eee;width:1px;height: 320px;position: absolute;top:15px;right: 0"></div>
  156. </el-col>
  157. <el-col :span="12">
  158. <el-card class="box-card" shadow="never" :body-style="{ padding: '0px 20px' }">
  159. <div slot="header">
  160. <span><el-divider direction="vertical"></el-divider>企业认定</span>
  161. <router-link to="/company" style="float: right; padding: 3px 0;color: #999999;font-size: 12px" type="text">更多&gt;&gt;</router-link>
  162. </div>
  163. <div class="list" v-for="(item, index) in qiyeList" :key="index">
  164. <h2 style="display: flex; flex-direction: row;width: 100%; align-items: center;">
  165. <router-link :to='"/detail?id="+item.id'>
  166. <span style="flex: 1">{{item.title}}</span>
  167. </router-link>
  168. <span style="flex: 1"></span>
  169. <span class="time">{{item.publishTime}}</span>
  170. </h2>
  171. <p v-html="item.content" class="max2"></p>
  172. </div>
  173. </el-card>
  174. </el-col>
  175. </el-row>
  176. </el-card>
  177. <el-card class="box-card" shadow="never" :body-style="{ padding: '0px' }" style="margin-top: 10px">
  178. <el-row class="card_style2">
  179. <el-col :span="12">
  180. <el-card class="box-card" shadow="never" :body-style="{ padding: '0px 20px' }">
  181. <div slot="header">
  182. <span><el-divider direction="vertical"></el-divider>行业管理</span>
  183. <router-link to="/trode" style="float: right; padding: 3px 0;color: #999999;font-size: 12px" type="text">更多&gt;&gt;</router-link>
  184. </div>
  185. <div class="list" v-for="(item, index) in hangyeList" :key="index">
  186. <h2 style="display: flex; flex-direction: row">
  187. <router-link :to='"/detail?id="+item.id'>
  188. <span style="flex: 1">{{item.title}}</span>
  189. </router-link>
  190. <span style="flex: 1"></span>
  191. <span class="time">{{item.publishTime}}</span>
  192. </h2>
  193. <p v-html="item.content" class="max2"></p>
  194. <img :src="item.aboutImgUrl" style="border-radius: 10px;margin: 10px 0" width="100%"/>
  195. </div>
  196. </el-card>
  197. </el-col>
  198. <el-col :span="12">
  199. <el-card class="box-card" shadow="never" :body-style="{ padding: '0px 20px' }">
  200. <div slot="header">
  201. <span><el-divider direction="vertical"></el-divider>人力资源</span>
  202. <router-link to="/people" style="float: right; padding: 3px 0;color: #999999;font-size: 12px" type="text">更多&gt;&gt;</router-link>
  203. </div>
  204. <div class="list" v-for="(item, index) in renliList" :key="index">
  205. <h2 style="display: flex; flex-direction: row">
  206. <router-link :to='"/detail?id="+item.id'>
  207. <span style="flex: 1">{{item.title}}</span>
  208. </router-link>
  209. <span class="time">{{item.publishTime}}</span>
  210. </h2>
  211. <p v-html="item.content" class="max2"></p>
  212. <img :src="item.aboutImgUrl" style="border-radius: 10px;margin: 10px 0" width="100%"/>
  213. </div>
  214. </el-card>
  215. </el-col>
  216. </el-row>
  217. </el-card>
  218. <el-card class="box-card" shadow="never" :body-style="{ padding: '0px' }" style="margin-top: 10px">
  219. <el-row class="card_style2">
  220. <el-col :span="24">
  221. <el-card class="box-card" shadow="never" :body-style="{ padding: '0px 20px' }">
  222. <div slot="header">
  223. <span><el-divider direction="vertical"></el-divider>会员企业</span>
  224. </div>
  225. <div v-for="(item, index) in huiyuanQiList" :key="index"
  226. style="display: inline-table;width: 135px;height: 62px;border: 1px solid #eee;margin: 10px 20px;text-align: center">
  227. <img :src="item.aboutImgUrl"/>
  228. </div>
  229. </el-card>
  230. <el-card class="box-card" shadow="never" :body-style="{ padding: '0px 20px' }">
  231. <div slot="header">
  232. <span><el-divider direction="vertical"></el-divider>友情链接</span>
  233. </div>
  234. <div >
  235. <el-button type="text" style="color: #255089">
  236. <a href="" v-for="(item, index) in youqingList" :key="index" >
  237. {{item.title}}
  238. </a>
  239. <!-- 国家发改委 | 国家工信部 | 国家财政部 | 国家税务机关 | 中国海关 -->
  240. </el-button>
  241. </div>
  242. </el-card>
  243. </el-col>
  244. </el-row>
  245. </el-card>
  246. </el-main>
  247. </div>
  248. </template>
  249. <script>
  250. import {getChannelInformationsRequest, getChannelsRequest,
  251. getDetailRequest, getPositionRequest} from "../api/data";
  252. export default {
  253. data () {
  254. return {
  255. importList: [],
  256. newsList: [],
  257. hangDamic: {},
  258. chanList: [],
  259. hezuoList: [],
  260. zhishiList: [],
  261. huiyuanList: [],
  262. qiyeList: [],
  263. hangyeList: [],
  264. renliList: [],
  265. huiyuanQiList: [],
  266. youqingList: [],
  267. lunBoList: [],
  268. imgObj: {}
  269. }
  270. },
  271. methods: {
  272. async getPositionRequest(){
  273. let res = await getPositionRequest()
  274. if(res.code == 200){
  275. res.data.map((item) => {
  276. this.getChannelInformationsRequest(item.zhanshilanmu, item.weizhi)
  277. })
  278. }
  279. },
  280. async getChannelInformationsRequest(id, weizhi){
  281. let res = await getChannelInformationsRequest({channelId: id});
  282. if(res.code == 200){
  283. if(weizhi){
  284. res.data.records.map((ite) => {
  285. ite.publishTime = this.$moment(Number(ite.publishTime)).format("MM-DD")
  286. })
  287. if(weizhi == "A"){
  288. // 重要信息
  289. this.importList = res.data.records.slice(0, 10)
  290. }else if(weizhi == "O"){
  291. let img = res.data.records.slice(0, 1)
  292. if(img){
  293. this.imgObj = img[0]
  294. }
  295. }else if(weizhi == "B"){
  296. // 新闻资讯
  297. this.newsList = res.data.records.slice(0, 10)
  298. }else if(weizhi == "C"){
  299. // 行业动态
  300. let damic = res.data.records.slice(0, 1)
  301. if(damic){
  302. this.hangDamic = damic[0]
  303. }
  304. }else if(weizhi == "D"){
  305. // 产业政策
  306. this.chanList = res.data.records.slice(0, 4)
  307. // this.chanList.map((ite) => {
  308. // ite.publishTime = this.$moment(Number(ite.publishTime)).format("MM-DD")
  309. // })
  310. }else if(weizhi == "E"){
  311. // 合作交流
  312. this.hezuoList = res.data.records.slice(0, 4)
  313. // this.hezuoList.map((ite) => {
  314. // ite.publishTime = this.$moment(Number(ite.publishTime)).format("MM-DD")
  315. // })
  316. }else if(weizhi == "F"){
  317. // 知识产权
  318. this.zhishiList = res.data.records.slice(0, 2)
  319. }else if(weizhi == "G"){
  320. // 会员产品
  321. this.huiyuanList = res.data.records.slice(0, 2)
  322. }else if(weizhi == "H"){
  323. }else if(weizhi == "I"){
  324. // 企业认定
  325. this.qiyeList = res.data.records.slice(0, 4)
  326. // this.qiyeList.map((ite) => {
  327. // ite.publishTime = this.$moment(Number(ite.publishTime)).format("MM-DD")
  328. // })
  329. }else if(weizhi == "J"){
  330. // 行业管理
  331. this.hangyeList = res.data.records.slice(0, 1)
  332. }else if(weizhi == "K"){
  333. // 人力资源
  334. this.renliList = res.data.records.slice(0, 1)
  335. }else if(weizhi == "L"){
  336. // 会员企业
  337. this.huiyuanQiList = res.data.records
  338. }else if(weizhi == "M"){
  339. // 友情链接
  340. this.youqingList = res.data.records
  341. }else if(weizhi == "N"){
  342. // 轮播
  343. this.lunBoList = res.data.records
  344. }
  345. }
  346. }
  347. },
  348. async getData(){
  349. getChannelsRequest({current:1,size:15}).then(res=>{
  350. console.log(JSON.stringify(res))
  351. getChannelInformationsRequest({channelId:res.data.records[0].id}).then(res=>{
  352. console.log(JSON.stringify(res))
  353. getDetailRequest('1498921672646979585').then(res=>{
  354. console.log(JSON.stringify(res))
  355. })
  356. })
  357. })
  358. }
  359. },
  360. mounted() {
  361. // this.getData()
  362. this.getPositionRequest()
  363. }
  364. }
  365. </script>
  366. <style>
  367. .item{
  368. padding: 10px 0;
  369. font-weight: bold;
  370. overflow: hidden;
  371. white-space: nowrap;
  372. text-overflow: ellipsis;
  373. }
  374. .time{
  375. color: #475D7B;
  376. font-size: 16px;
  377. }
  378. .img_info{
  379. position: absolute;
  380. bottom: 0px;
  381. left: 0px;
  382. background-color: rgba(0, 0, 0, 0.6);
  383. height: 40px;
  384. width: 100%;
  385. display: flex;
  386. flex-direction: row;
  387. align-items: center;
  388. padding-left: 20px;
  389. }
  390. .img_text{
  391. color: #FFFFFF;
  392. font-size: 11px;
  393. }
  394. </style>