From cc38e2eef3031ed43aaf512a0a6620314622affd Mon Sep 17 00:00:00 2001 From: guzhenfu <867124018@mslife.com> Date: Sun, 27 Mar 2022 16:09:47 +0800 Subject: [PATCH] update code --- src/App.vue | 41 +++++++++++++++++++++++++++ src/view/detail.vue | 43 ++++++++++++---------------- src/view/news.vue | 34 ++++++++++++++++++---- src/view/overview.vue | 66 +++++++++++++++++++++++++------------------ 4 files changed, 126 insertions(+), 58 deletions(-) diff --git a/src/App.vue b/src/App.vue index 53d4250..de6f0b7 100755 --- a/src/App.vue +++ b/src/App.vue @@ -25,4 +25,45 @@ html,body{ #app { .size; } + +img{ + width: 100%; height: 100%; max-width: 100%; +} + +.max1{ + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; + word-break: break-all; +} + +.max2{ + text-overflow: -o-ellipsis-lastline; + overflow: hidden; + text-overflow: ellipsis; + display: -webkit-box; + -webkit-line-clamp: 2; + line-clamp: 2; + -webkit-box-orient: vertical; +} + +.title{ + color: #333; +} +.article .title,.article .info{ + text-align: center; + margin: 10px; +} +.article .info{ + color: #999; +} +.article .content p{ + text-indent: 2em; + margin-bottom: 20px; + line-height: 1.5rem; +} +.article .content span{ + line-height: 1.5rem; +} + diff --git a/src/view/detail.vue b/src/view/detail.vue index 88b6b8e..192d7e1 100755 --- a/src/view/detail.vue +++ b/src/view/detail.vue @@ -3,45 +3,38 @@ 您的位置: 首页 - 关于我们 - 协会简介 + 详情 -

上海市集成电路行业协会简介

-
作者:SICA       发布日期:2011年12月28日 星期三
-
-

- 上海市集成电路行业协会SHANGHAI INTEGRATED CIRCUIT INDUSTRY ASSOCIATION (缩写:SICA),成立于2001年4月,为本市从事集成电路设计、制造、封装、测试、智能卡及其设备材料和其它直接相关的企事业单位自愿参加并组织起来的,不以营利为目的行业性社会团体法人。 -

-

- 协会现有各种所有制会员单位485家。总投资为298.6亿美元,注册资金为137.6亿美元。从业人员总数达155473人,其中技术人员为64952人。根据所有制情况分类,中外合资、合作60家,外商独资204家,内资109家,民营112家。其中从事设计205家,晶圆制造13家,封装测试38家,设备材料98家,分立器件3家,智能卡22家,科研院所及其配套106家。485家会员中,理事单位147家。其中常务理事46家,包括会长单位1家,副会长单位25家。 -

-

- 协会下设设计、制造、封装测试、设备材料、智能卡五个专业委员会。协会有独立的网站、《集成电路应用》杂志会刊(月刊),以及每月一期的简报,及时发布行业信息。协会为企业进行政策服务和政策协调,积极帮助打通产业链,进行行业统计和分析工作,开展各种交流合作研讨活动和行业标准制定及知识产权保护等工作。 -

- - 会长单位:上海华虹(集团)有限公司
- 会 长:张素心
法定代表人:雷海波
- 秘书长:徐  伟
- 协会地址:上海市浦东新区 张江 碧波路500号209室,邮政编码:201203
- 电 话:021-50805257
- 传 真:021-50805259
- 电子邮件:contact@sica.org.cn -
+

{{detail.title}}

+
作者:{{detail.author}}       发布日期:{{detail.publishTime}} 
+
- diff --git a/src/view/news.vue b/src/view/news.vue index 37cae45..10dc4a1 100755 --- a/src/view/news.vue +++ b/src/view/news.vue @@ -3,7 +3,8 @@ 您的位置: 首页 - 新闻资讯 + 新闻资讯 + 详情 @@ -17,11 +18,14 @@ {{item.channelName}}
- - + +
    -
  • {{ index+1 }}、{{item.title}}{{item.publishTime}}
  • +
  • + + {{ index+1 }}、{{item.title}} + {{item.publishTime}}
+ + + +

上海市集成电路行业协会简介

+
作者:SICA       发布日期:2011年12月28日 星期三
+
+
+
@@ -44,10 +56,20 @@ export default { titleList: [], activeIndex: 0, dataList: [], - total: 0 + total: 0, + isShow: false, + activeItem: {} } }, methods: { + goToList(){ + this.isShow = false + this.$forceUpdate() + }, + goToDetail(item){ + this.isShow = true + this.activeItem = {...item} + }, async getChannelsRequest(){ let res = await getChannelsRequest({current:1,size:100}) if(res.code == 200){ diff --git a/src/view/overview.vue b/src/view/overview.vue index 53d6fb3..c7e2141 100755 --- a/src/view/overview.vue +++ b/src/view/overview.vue @@ -2,7 +2,7 @@
- + @@ -20,7 +20,7 @@
- +
{{imgObj.title}}
@@ -49,7 +49,7 @@

{{hangDamic.title}}

-

+

@@ -60,11 +60,13 @@ 更多>>
-

- {{item.title}} +

+ {{item.title}} + {{item.publishTime}}

-

+

@@ -82,10 +84,13 @@

- {{item.title}} + + {{item.title}} +

-

- +

+
@@ -103,7 +108,7 @@

{{item.title}}

-

+

@@ -121,7 +126,7 @@ :body-style="{ padding: '0px 20px' }">

{{item.title}}

-

+

@@ -136,14 +141,16 @@ 更多>>
-

+

- {{item.title}} + {{item.title}} + {{item.publishTime}}

-

+

@@ -155,14 +162,15 @@ 更多>>
-

+

{{item.title}} + {{item.publishTime}}

-

+

@@ -183,10 +191,11 @@ {{item.title}} + {{item.publishTime}} -

+

@@ -205,7 +214,7 @@ {{item.publishTime}} -

+

@@ -282,6 +291,9 @@ export default { let res = await getChannelInformationsRequest({channelId: id}); if(res.code == 200){ if(weizhi){ + res.data.records.map((ite) => { + ite.publishTime = this.$moment(Number(ite.publishTime)).format("MM-DD") + }) if(weizhi == "A"){ // 重要信息 this.importList = res.data.records.slice(0, 10) @@ -302,15 +314,15 @@ export default { }else if(weizhi == "D"){ // 产业政策 this.chanList = res.data.records.slice(0, 4) - this.chanList.map((ite) => { - ite.publishTime = this.$moment(Number(ite.publishTime)).format("MM-DD") - }) + // this.chanList.map((ite) => { + // ite.publishTime = this.$moment(Number(ite.publishTime)).format("MM-DD") + // }) }else if(weizhi == "E"){ // 合作交流 this.hezuoList = res.data.records.slice(0, 4) - this.hezuoList.map((ite) => { - ite.publishTime = this.$moment(Number(ite.publishTime)).format("MM-DD") - }) + // this.hezuoList.map((ite) => { + // ite.publishTime = this.$moment(Number(ite.publishTime)).format("MM-DD") + // }) }else if(weizhi == "F"){ // 知识产权 this.zhishiList = res.data.records.slice(0, 2) @@ -322,9 +334,9 @@ export default { }else if(weizhi == "I"){ // 企业认定 this.qiyeList = res.data.records.slice(0, 4) - this.qiyeList.map((ite) => { - ite.publishTime = this.$moment(Number(ite.publishTime)).format("MM-DD") - }) + // this.qiyeList.map((ite) => { + // ite.publishTime = this.$moment(Number(ite.publishTime)).format("MM-DD") + // }) }else if(weizhi == "J"){ // 行业管理 this.hangyeList = res.data.records.slice(0, 1)