|
@@ -6,13 +6,7 @@
|
|
<NavBar v-show="navShow" :title="title" :isleftarrow="isleftarrow"> </NavBar>
|
|
<NavBar v-show="navShow" :title="title" :isleftarrow="isleftarrow"> </NavBar>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="24" class="main">
|
|
<el-col :span="24" class="main">
|
|
- <el-col :span="24" class="one">
|
|
|
|
- <el-image :src="imgUrl"></el-image>
|
|
|
|
- <p>{{ user.name }}</p>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="24" class="two">
|
|
|
|
- <clickBtn></clickBtn>
|
|
|
|
- </el-col>
|
|
|
|
|
|
+ 个人中心
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="24" class="foot">
|
|
<el-col :span="24" class="foot">
|
|
<footInfo></footInfo>
|
|
<footInfo></footInfo>
|
|
@@ -23,18 +17,15 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
|
import NavBar from '@/layout/common/topInfo.vue';
|
|
import NavBar from '@/layout/common/topInfo.vue';
|
|
import footInfo from '@/layout/common/footInfo.vue';
|
|
import footInfo from '@/layout/common/footInfo.vue';
|
|
-import clickBtn from './parts/clickBtn.vue';
|
|
|
|
-
|
|
|
|
|
|
+import { mapState, createNamespacedHelpers } from 'vuex';
|
|
export default {
|
|
export default {
|
|
name: 'index',
|
|
name: 'index',
|
|
props: {},
|
|
props: {},
|
|
components: {
|
|
components: {
|
|
NavBar,
|
|
NavBar,
|
|
footInfo,
|
|
footInfo,
|
|
- clickBtn,
|
|
|
|
},
|
|
},
|
|
data: function() {
|
|
data: function() {
|
|
return {
|
|
return {
|
|
@@ -44,12 +35,9 @@ export default {
|
|
isleftarrow: '',
|
|
isleftarrow: '',
|
|
// 返回
|
|
// 返回
|
|
navShow: true,
|
|
navShow: true,
|
|
- imgUrl: require('@/assets/test.jpg'),
|
|
|
|
};
|
|
};
|
|
},
|
|
},
|
|
- created() {
|
|
|
|
- console.log(this.user.uid);
|
|
|
|
- },
|
|
|
|
|
|
+ created() {},
|
|
methods: {},
|
|
methods: {},
|
|
computed: {
|
|
computed: {
|
|
...mapState(['user']),
|
|
...mapState(['user']),
|
|
@@ -58,6 +46,9 @@ export default {
|
|
this.title = this.$route.meta.title;
|
|
this.title = this.$route.meta.title;
|
|
this.isleftarrow = this.$route.meta.isleftarrow;
|
|
this.isleftarrow = this.$route.meta.isleftarrow;
|
|
},
|
|
},
|
|
|
|
+ metaInfo() {
|
|
|
|
+ return { title: this.$route.meta.title };
|
|
|
|
+ },
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
|
|
|
|
@@ -71,26 +62,9 @@ export default {
|
|
.top {
|
|
.top {
|
|
height: 46px;
|
|
height: 46px;
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
- position: relative;
|
|
|
|
- z-index: 999;
|
|
|
|
}
|
|
}
|
|
.main {
|
|
.main {
|
|
min-height: 570px;
|
|
min-height: 570px;
|
|
- .one {
|
|
|
|
- text-align: center;
|
|
|
|
- background-color: #fff;
|
|
|
|
- padding: 15px 0;
|
|
|
|
- margin: 0 0 1px 0;
|
|
|
|
- .el-image {
|
|
|
|
- width: 80px;
|
|
|
|
- height: 80px;
|
|
|
|
- border-radius: 90px;
|
|
|
|
- }
|
|
|
|
- p {
|
|
|
|
- font-size: 18px;
|
|
|
|
- padding: 15px 0;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
.foot {
|
|
.foot {
|
|
position: absolute;
|
|
position: absolute;
|