From 36f12a401842490a3d6f6e660a723630e0b0129e Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 26 Mar 2021 18:38:29 +0800 Subject: [PATCH] =?UTF-8?q?0326=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 8 +- src/common/portrait.styl | 9 + src/components/FooterPage/FooterPage.vue | 4 +- src/components/HeadNav/HeadNav.vue | 9 +- src/components/Introduce/ContactUs.vue | 14 +- src/components/Introduce/DeriveEnterprise.vue | 13 +- src/components/Introduce/IntentionModel.vue | 6 +- src/components/Introduce/PartnerShip.styl | 6 +- src/router/index.js | 14 +- src/store/modules/home/mutations.js | 18 ++ src/store/modules/home/state.js | 2 + src/views/About/Children/Organ.vue | 2 +- src/views/Activity/ActDetails.vue | 6 +- src/views/Activity/Activity.vue | 27 ++- .../Business/{ => Children}/Business.vue | 2 +- src/views/Business/Children/Tutor.vue | 184 ++++++++++++++++++ src/views/Business/Index.vue | 16 ++ .../Challenge/Children/components/Publish.vue | 2 +- .../Children/components/SearchBox.vue | 2 +- .../ServiceMarket/Children/Institute.vue | 10 +- 20 files changed, 312 insertions(+), 42 deletions(-) rename src/views/Business/{ => Children}/Business.vue (98%) create mode 100644 src/views/Business/Children/Tutor.vue create mode 100644 src/views/Business/Index.vue diff --git a/src/App.vue b/src/App.vue index 785c555..d5670ad 100644 --- a/src/App.vue +++ b/src/App.vue @@ -32,9 +32,9 @@ export default { window.scroll(0, 0); }, async created() { - const userId = '1218763410024566784'; - const params = { userId }; - this.getUserId(params); + // const userId = '1218763410024566784'; + // const params = { userId }; + // this.getUserId(params); if (sessionStorage.getItem('store')) { this.$store.replaceState(Object.assign({}, this.$store.state, JSON.parse(sessionStorage.getItem('store')))); } @@ -45,12 +45,14 @@ export default { }, methods: { ...mapActions('user', ['getUserId']), + ...mapMutations('home', ['setVisitNum']), async getvisitor() { try { const res = await visitorAdd(); const { code, msg, data } = res.data; if (code === 200) { console.log(data); + this.setVisitNum(data); } else { this.$message.error(msg); } diff --git a/src/common/portrait.styl b/src/common/portrait.styl index 5065985..2911518 100644 --- a/src/common/portrait.styl +++ b/src/common/portrait.styl @@ -404,6 +404,11 @@ flex: 1; } +.flex-2{ + display: flex; + flex: 2; +} + .flex-3{ display: flex; flex: 3; @@ -651,3 +656,7 @@ h2{ .ant-form-item { margin-bottom: 18px; } + +.ant-checkbox-wrapper { + margin-left: 0 !important; +} diff --git a/src/components/FooterPage/FooterPage.vue b/src/components/FooterPage/FooterPage.vue index 2522e64..b5278a5 100644 --- a/src/components/FooterPage/FooterPage.vue +++ b/src/components/FooterPage/FooterPage.vue @@ -28,7 +28,7 @@
-
当前访问量:5000
+
当前访问量:{{ visitNum }}
@@ -40,6 +40,7 @@ diff --git a/src/components/HeadNav/HeadNav.vue b/src/components/HeadNav/HeadNav.vue index be3ac00..88545a2 100644 --- a/src/components/HeadNav/HeadNav.vue +++ b/src/components/HeadNav/HeadNav.vue @@ -149,7 +149,7 @@ export default { }, { title: '活动报到', - url: '/Activity', + url: '/Activity?type=1', }, ], }, @@ -181,7 +181,7 @@ export default { }, { title: '创业导师', - url: '/Hatch/Tutor', + url: '/Business/Tutor', }, ], }, @@ -257,7 +257,7 @@ export default { }, }, methods: { - ...mapMutations('home', ['setPolicyStatus']), + ...mapMutations('home', ['setPolicyStatus', 'setInformReport']), jumUrl(url, index) { if (this.$route.path !== url) { this.$router.push(url); @@ -265,8 +265,10 @@ export default { if (index) { if (index === 1) { this.pStatus.bw = 1; + this.setInformReport(0); } else if (index === 2) { this.pStatus.sx = 1; + this.setInformReport(1); } else if (index === 3) { this.pStatus.ty = 1; } else if (index === 4) { @@ -279,6 +281,7 @@ export default { this.pStatus.ty = 0; this.pStatus.zg = 0; this.setPolicyStatus(this.pStatus); + this.setInformReport(0); } }, diff --git a/src/components/Introduce/ContactUs.vue b/src/components/Introduce/ContactUs.vue index 3dc2383..f1051d1 100644 --- a/src/components/Introduce/ContactUs.vue +++ b/src/components/Introduce/ContactUs.vue @@ -1,28 +1,28 @@