|
@@ -1,15 +1,31 @@
|
|
|
<template>
|
|
|
- <div id="index">
|
|
|
+ <div id="index" class="container">
|
|
|
<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 :span="24" class="title">
|
|
|
+ <span>叁多健康管理平台</span>
|
|
|
</el-col>
|
|
|
<el-col :span="24" class="main">
|
|
|
- 无用页面
|
|
|
+ <el-col class="guide-box">
|
|
|
+ <el-col class="single-box" @click.native="$router.push({ path: '/live/roomlist' })">
|
|
|
+ <el-image class="icon" :src="require('@/assets/multiroom.png')"> </el-image>
|
|
|
+ <span class="label">直播入口</span>
|
|
|
+ <span class="desc"></span>
|
|
|
+ </el-col>
|
|
|
+ <el-col class="single-box" @click.native="$router.push({ path: '/live/roomrecord' })">
|
|
|
+ <el-image class="icon" :src="require('@/assets/voice.png')"> </el-image>
|
|
|
+ <span class="label">往期讲堂</span>
|
|
|
+ <span class="desc"></span>
|
|
|
+ </el-col>
|
|
|
+ <el-col class="single-box" @click.native="$router.push({ path: '/user/index' })">
|
|
|
+ <el-image class="icon" :src="require('@/assets/export.png')"> </el-image>
|
|
|
+ <span class="label">个人中心</span>
|
|
|
+ <span class="desc"></span>
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
</el-col>
|
|
|
<el-col :span="24" class="foot">
|
|
|
- <footInfo></footInfo>
|
|
|
+ <span>潍坊恒源科技有限公司</span>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -17,15 +33,12 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import NavBar from '@/layout/common/topInfo.vue';
|
|
|
-import footInfo from '@/layout/common/footInfo.vue';
|
|
|
+import { mapState, mapMutations, createNamespacedHelpers } from 'vuex';
|
|
|
+const jwt = require('jsonwebtoken');
|
|
|
export default {
|
|
|
name: 'index',
|
|
|
props: {},
|
|
|
- components: {
|
|
|
- NavBar,
|
|
|
- footInfo,
|
|
|
- },
|
|
|
+ components: {},
|
|
|
data: () => ({
|
|
|
// 头部标题
|
|
|
title: '',
|
|
@@ -33,53 +46,110 @@ export default {
|
|
|
isleftarrow: '',
|
|
|
// 返回
|
|
|
navShow: true,
|
|
|
- img_path: require('@/assets/logo.png'),
|
|
|
}),
|
|
|
- created() {},
|
|
|
- computed: {},
|
|
|
+ created() {
|
|
|
+ if (this.token) {
|
|
|
+ this.sesstoken();
|
|
|
+ }
|
|
|
+ },
|
|
|
methods: {
|
|
|
- uploadSuccess({ type, data }) {
|
|
|
- console.log(type, data);
|
|
|
- // if (type !== 'img_path') {
|
|
|
- // let arr = _.get(this.uploads, type);
|
|
|
- // if (arr !== undefined) {
|
|
|
- // this.uploads[type].push({ name: data.name, uri: data.uri });
|
|
|
- // } else {
|
|
|
- // let newArr = [{ name: data.name, uri: data.uri }];
|
|
|
- // this.$set(this.uploads, `${type}`, newArr);
|
|
|
- // }
|
|
|
- // } else {
|
|
|
- // this.picLoading = false;
|
|
|
- // this.$set(this.info, `${type}`, data.uri);
|
|
|
- // this.$nextTick(() => {
|
|
|
- // this.picLoading = true;
|
|
|
- // });
|
|
|
- // }
|
|
|
+ ...mapMutations(['setUser']),
|
|
|
+ sesstoken() {
|
|
|
+ sessionStorage.setItem('token', this.token);
|
|
|
+ let user = jwt.decode(this.token);
|
|
|
+ this.setUser(user);
|
|
|
+ },
|
|
|
+ handleEntry(data) {
|
|
|
+ if (data === 1) {
|
|
|
+ } else if (data === 2) {
|
|
|
+ } else if (data === 3) {
|
|
|
+ }
|
|
|
},
|
|
|
},
|
|
|
- mounted() {
|
|
|
- this.title = this.$route.meta.title;
|
|
|
- this.isleftarrow = this.$route.meta.isleftarrow;
|
|
|
+ computed: {
|
|
|
+ ...mapState(['user']),
|
|
|
+ token() {
|
|
|
+ return this.$route.query.token;
|
|
|
+ },
|
|
|
},
|
|
|
+ mounted() {},
|
|
|
};
|
|
|
</script>
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
.style {
|
|
|
- width: 100%;
|
|
|
- min-height: 667px;
|
|
|
- position: relative;
|
|
|
- background-color: #f9fafc;
|
|
|
-}
|
|
|
-.top {
|
|
|
- height: 46px;
|
|
|
- overflow: hidden;
|
|
|
+ background-image: url(https://mc.qcloudimg.com/static/img/7da57e0050d308e2e1b1e31afbc42929/bg.png);
|
|
|
+ background-color: #333;
|
|
|
+ background-repeat: no-repeat;
|
|
|
+ background-size: cover;
|
|
|
+ width: 100vw;
|
|
|
+ height: 100vh;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ align-items: center;
|
|
|
+ box-sizing: border-box;
|
|
|
}
|
|
|
+
|
|
|
.main {
|
|
|
min-height: 570px;
|
|
|
}
|
|
|
.foot {
|
|
|
position: absolute;
|
|
|
- bottom: 0;
|
|
|
+ bottom: 20px;
|
|
|
+ text-align: center;
|
|
|
+ font-size: 16px;
|
|
|
+}
|
|
|
+
|
|
|
+.title {
|
|
|
+ color: #ffffff;
|
|
|
+ padding-top: 30px;
|
|
|
+ padding-bottom: 40px;
|
|
|
+ line-height: 60rpx;
|
|
|
+ height: 46px;
|
|
|
+ overflow: hidden;
|
|
|
+ position: relative;
|
|
|
+ z-index: 999;
|
|
|
+ text-align: center;
|
|
|
+ font-size: 18px;
|
|
|
+}
|
|
|
+.tips {
|
|
|
+ color: #ffffff;
|
|
|
+ font-size: 12px;
|
|
|
+ text-align: center;
|
|
|
+}
|
|
|
+.guide-box {
|
|
|
+ display: flex;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ text-align: center;
|
|
|
+ padding: 20px 5vw;
|
|
|
+}
|
|
|
+.single-box {
|
|
|
+ width: 35vw;
|
|
|
+ height: 33vw;
|
|
|
+ background-color: rgba(0, 0, 0, 0.55);
|
|
|
+ text-align: center;
|
|
|
+ vertical-align: top;
|
|
|
+ margin: 5vw;
|
|
|
+ margin-bottom: 30px;
|
|
|
+}
|
|
|
+.icon {
|
|
|
+ display: block;
|
|
|
+ width: 50px;
|
|
|
+ height: 50px;
|
|
|
+ padding-top: 10px;
|
|
|
+ margin: 0 auto 0;
|
|
|
+}
|
|
|
+.label {
|
|
|
+ display: block;
|
|
|
+ padding-top: 12px;
|
|
|
+ color: #cfe4ff;
|
|
|
+ font-size: 16px;
|
|
|
+}
|
|
|
+.desc {
|
|
|
+ display: block;
|
|
|
+ margin-top: 2px;
|
|
|
+ color: #cfe4ff;
|
|
|
+ font-size: 16px;
|
|
|
+ white-space: nowrap;
|
|
|
}
|
|
|
</style>
|