|
@@ -0,0 +1,77 @@
|
|
|
|
+<template>
|
|
|
|
+ <div id="index">
|
|
|
|
+ <el-row>
|
|
|
|
+ <el-col :span="24" class="style">
|
|
|
|
+ <el-col :span="24" class="top">
|
|
|
|
+ <NavBar v-show="navShow" :title="title" :isleftarrow="isleftarrow"> </NavBar>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="24" class="main">
|
|
|
|
+ 登录
|
|
|
|
+ <el-link :underline="false" href="/home/index">首页</el-link>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ </div>
|
|
|
|
+</template>
|
|
|
|
+
|
|
|
|
+<script>
|
|
|
|
+import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
|
+import NavBar from '@/layout/common/topInfo.vue';
|
|
|
|
+const { mapActions: wxchattest } = createNamespacedHelpers('wxchattest');
|
|
|
|
+export default {
|
|
|
|
+ name: 'index',
|
|
|
|
+ props: {},
|
|
|
|
+ components: {
|
|
|
|
+ NavBar,
|
|
|
|
+ },
|
|
|
|
+ data: function() {
|
|
|
|
+ return {
|
|
|
|
+ // 头部标题
|
|
|
|
+ title: '',
|
|
|
|
+ // meta为true
|
|
|
|
+ isleftarrow: '',
|
|
|
|
+ // 返回
|
|
|
|
+ navShow: true,
|
|
|
|
+ };
|
|
|
|
+ },
|
|
|
|
+ created() {
|
|
|
|
+ this.toLogin();
|
|
|
|
+ },
|
|
|
|
+ methods: {
|
|
|
|
+ ...wxchattest(['login']),
|
|
|
|
+ async toLogin() {
|
|
|
|
+ let res = await this.login({ redirect_uri: 'http://localhost:8002/login', type: '0', openid: '00' });
|
|
|
|
+ console.log(res);
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ computed: {
|
|
|
|
+ // ...mapState(['user']),
|
|
|
|
+ },
|
|
|
|
+ mounted() {
|
|
|
|
+ this.title = this.$route.meta.title;
|
|
|
|
+ this.isleftarrow = this.$route.meta.isleftarrow;
|
|
|
|
+ },
|
|
|
|
+};
|
|
|
|
+</script>
|
|
|
|
+
|
|
|
|
+<style lang="less" scoped>
|
|
|
|
+.style {
|
|
|
|
+ width: 100%;
|
|
|
|
+ min-height: 667px;
|
|
|
|
+ position: relative;
|
|
|
|
+ background-color: #f9fafc;
|
|
|
|
+}
|
|
|
|
+.top {
|
|
|
|
+ height: 46px;
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ position: relative;
|
|
|
|
+ z-index: 999;
|
|
|
|
+}
|
|
|
|
+.main {
|
|
|
|
+ min-height: 570px;
|
|
|
|
+}
|
|
|
|
+.foot {
|
|
|
|
+ position: absolute;
|
|
|
|
+ bottom: 0;
|
|
|
|
+}
|
|
|
|
+</style>
|