diff --git a/src/App.vue b/src/App.vue index 29c84fa..785c555 100644 --- a/src/App.vue +++ b/src/App.vue @@ -18,6 +18,7 @@ import { mapState, mapActions, mapMutations } from 'vuex'; import zh_CN from 'ant-design-vue/lib/locale-provider/zh_CN'; import HeadNav from './components/HeadNav/HeadNav.vue'; import FooterPage from './components/FooterPage/FooterPage.vue'; +import { visitorAdd } from 'config/api'; export default { name: 'App', @@ -30,7 +31,7 @@ export default { updated() { window.scroll(0, 0); }, - created() { + async created() { const userId = '1218763410024566784'; const params = { userId }; this.getUserId(params); @@ -40,9 +41,24 @@ export default { window.addEventListener('beforeunload', () => { sessionStorage.setItem('store', JSON.stringify(this.$store.state)); }); + await this.getvisitor(); + }, + methods: { + ...mapActions('user', ['getUserId']), + async getvisitor() { + try { + const res = await visitorAdd(); + const { code, msg, data } = res.data; + if (code === 200) { + console.log(data); + } else { + this.$message.error(msg); + } + } catch (error) { + this.$message.error(error); + } + }, }, - - methods: { ...mapActions('user', ['getUserId']) }, }; diff --git a/src/assets/logo.png b/src/assets/logo.png index d0e6a06..692cfa7 100644 Binary files a/src/assets/logo.png and b/src/assets/logo.png differ diff --git a/src/common/portrait.styl b/src/common/portrait.styl index d85447f..5065985 100644 --- a/src/common/portrait.styl +++ b/src/common/portrait.styl @@ -617,11 +617,11 @@ h2{ } .textColor{ - color: rgba(0,0,0,.65) + color: rgba(0,0,0,.85) } .secondary{ - color: rgba(0,0,0,.45) + color: rgba(0,0,0,.65) } // line-height @@ -632,3 +632,22 @@ h2{ .line-height-36{ line-height: 36px } + +.ant-form-item-label { + color: rgba(0,0,0,0.85) !important; + font-size: 16px !important; + // text-align: center !important; +} +.ant-modal-header { + text-align: center; + // font-size: 16px; +} + +.red-title { + font-size: 18px; + color: rgba(0,0,0,0.85) +} + +.ant-form-item { + margin-bottom: 18px; +} diff --git a/src/components/FooterPage/FooterPage.vue b/src/components/FooterPage/FooterPage.vue index cfd3835..c0bd1d4 100644 --- a/src/components/FooterPage/FooterPage.vue +++ b/src/components/FooterPage/FooterPage.vue @@ -28,6 +28,7 @@
公司为更好为创客和企业提供服务,提供需求平台,支持发布企业的各类需求,让孵化器和外部资源为您排忧解难。
+