From e90380f111593371a036be71dfedea461036cd55 Mon Sep 17 00:00:00 2001 From: lucky Date: Fri, 8 Jan 2021 17:19:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 6 +-- src/components/PlatformList/PlatformList.vue | 2 +- src/config/api.js | 1 + src/store/modules/home/mutations.js | 9 ++++ src/store/modules/home/state.js | 1 + .../IncubationPlatform/Children/Services.vue | 30 ++++++++++-- src/views/Industry/Children/Serve.vue | 17 ++++--- src/views/NewPlatform/Children/Platform.vue | 7 +-- src/views/NewPlatform/Children/Service.vue | 46 +++++++++++++------ src/views/NewPlatform/Children/ServiceDet.vue | 30 +++++++++--- .../Children/ShareChild/Institute.vue | 23 +++++++--- 11 files changed, 127 insertions(+), 45 deletions(-) diff --git a/src/App.vue b/src/App.vue index 8609bf8..d754181 100644 --- a/src/App.vue +++ b/src/App.vue @@ -88,9 +88,9 @@ body::-webkit-scrollbar { right: 70px; } #components-back-top-demo-custom .ant-back-top-inner { - height: 40px; - width: 40px; - line-height: 40px; + height: 60px; + width: 60px; + line-height: 60px; background: url('assets/t-top.png') center no-repeat; background-size: contain; } diff --git a/src/components/PlatformList/PlatformList.vue b/src/components/PlatformList/PlatformList.vue index ee08fd7..2a8d351 100644 --- a/src/components/PlatformList/PlatformList.vue +++ b/src/components/PlatformList/PlatformList.vue @@ -4,7 +4,7 @@
diff --git a/src/config/api.js b/src/config/api.js index 410d599..517ae8e 100644 --- a/src/config/api.js +++ b/src/config/api.js @@ -84,6 +84,7 @@ export const selResMes = params => axios.post(`${achInstr}/selResMes`, params); // 服务列表查询 export const selService = params => axios.post(`${greenvalley}/serviceProject/selService`, params); + // 服务详情查询 export const selContent = params => axios.post(`${greenvalley}/serviceProject/selContent`, params); diff --git a/src/store/modules/home/mutations.js b/src/store/modules/home/mutations.js index 0473552..514288c 100644 --- a/src/store/modules/home/mutations.js +++ b/src/store/modules/home/mutations.js @@ -278,6 +278,15 @@ const mutations = { setProductId(state, num) { state.productId = num; }, + + /** + * 存储服务详情导航 + * @param {object} state + * @param {object} data + */ + setServiceArr(state, data) { + state.serviceArr = data; + }, }; export default mutations; diff --git a/src/store/modules/home/state.js b/src/store/modules/home/state.js index fd3dee5..91245d7 100644 --- a/src/store/modules/home/state.js +++ b/src/store/modules/home/state.js @@ -55,6 +55,7 @@ const state = { isBtn: 0, }, productId: 0, // 当前产品详情Id + serviceArr: [], // 服务详情导航 }; export default state; diff --git a/src/views/IncubationPlatform/Children/Services.vue b/src/views/IncubationPlatform/Children/Services.vue index 4e3e07f..9c9d685 100644 --- a/src/views/IncubationPlatform/Children/Services.vue +++ b/src/views/IncubationPlatform/Children/Services.vue @@ -21,10 +21,10 @@
- +

{{ item.name }}