diff --git a/src/api/home/home.js b/src/api/home/home.js index 741b66a..575ed0a 100644 --- a/src/api/home/home.js +++ b/src/api/home/home.js @@ -43,6 +43,20 @@ export function getInformation2(params) { params }); } +// 获取科技创新 +export function getScienceInnovate(params) { + return request({ + url: '/mobile/getScienceInnovate', + params + }); +} +// 获取科技创新数据回显 +export function getInfo(params) { + return request({ + url: '/mobile/getInfo', + params + }); +} // 获取关于我们 export function getAboutUs(params) { return request({ diff --git a/src/assets/image/icon_cx.png b/src/assets/image/icon_cx.png new file mode 100644 index 0000000..6a61f8b Binary files /dev/null and b/src/assets/image/icon_cx.png differ diff --git a/src/assets/image/icon_cx2.png b/src/assets/image/icon_cx2.png new file mode 100644 index 0000000..86d94bd Binary files /dev/null and b/src/assets/image/icon_cx2.png differ diff --git a/src/views/about.vue b/src/views/about.vue index f66a027..6166e3f 100644 --- a/src/views/about.vue +++ b/src/views/about.vue @@ -6,30 +6,18 @@
+
+ {{ innovateInfo.title }} +
-
+
+
-
{ + this.innovateInfo = res.data; + }); + } else { + getAboutUs().then(res => { + this.aboutInfo = res.data; + }); + } getPolicyList({ pageNum: 1, pageSize: 5 }).then(({ data }) => { this.noticeList = data.list; }); - getAboutUs().then(res => { - this.aboutInfo = res.data; - }); } }; diff --git a/src/views/home/home.vue b/src/views/home/home.vue index b464221..0da474c 100644 --- a/src/views/home/home.vue +++ b/src/views/home/home.vue @@ -228,8 +228,7 @@

@@ -398,6 +397,30 @@
+
+

+ + +

+ +
@@ -470,7 +493,8 @@ import { getPolicyRead, getInformation, getAboutUs, - getPartner + getPartner, + getScienceInnovate } from '@/api/home/home'; import vueSeamlessScroll from 'vue-seamless-scroll'; export default { @@ -481,6 +505,7 @@ export default { return { listData: [], listData2: [], + innovateList: [], // 创新服务列表 classOption: { step: 1, limitMoveNum: 8, @@ -546,6 +571,9 @@ export default { getInformation(this.queryParams3).then(({ data }) => { this.list3 = data.list; }); + getScienceInnovate().then(({ data }) => { + this.innovateList = data; + }); getAboutUs().then(res => { this.aboutInfo = res.data; }); @@ -786,6 +814,56 @@ export default { } } } +.advert { + display: flex; + flex-wrap: wrap; + justify-content: space-between; + .item { + width: 24%; + margin-top: 12px; + position: relative; + &:nth-child(n + 5) { + margin-bottom: 0; + } + img { + width: 100%; + max-height: 165px; + } + .card { + padding: 0 15px; + width: 80%; + height: 70px; + text-align: center; + position: absolute; + bottom: 15px; + right: 10%; + // background: linear-gradient(to right, #8d9cff 0%, #7679ff 100%); + background-color: #3394ff; + opacity: 0.9; + font-size: 15px; + color: #fff; + cursor: pointer; + transition: bottom 0.5s; + &:hover { + bottom: 30px; + transition: bottom 0.5s; + } + .title { + width: 100%; + margin: 10px 0; + } + /deep/.text > p { + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + width: 100%; + margin: 0; + font-size: 12px; + color: #fff; + } + } + } +} .city_list { margin-top: 10px; padding: 10px 0;