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 @@