课程辅助
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

246 lines
5.5 KiB

<template>
<div style="width: 100%;height: 100%;">
<img style="width: 100%;height: 100%;position: absolute;z-index:-1;" src="../assets/img/twbg.png">
<headInfo></headInfo>
<div class="content">
<div class="leftContent">
<div class="leftBox1">
<div style="width: 50%;margin: 0 auto;">
<p style="font-size: 1vw;">Hi,{{ userName }}~</p>
<p style="font-size: 0.7vw;">欢迎使用课程辅助系统</p>
</div>
</div>
<div class="leftBox2">
<div class="muluBox">
<div class="muluList">
<div v-for="item in mulu" :key="item">
<div class="oneMuluXuan" v-if="item.name === '图文资源'">
<img src="../assets/img/twCircle.png"
style="width: 0.9vw;height:0.9vw;object-fit: contain;float: right;margin-top: 7%;">
<div style="width: 55%;text-align: center;">
{{ item.name }}</div>
<img src="../assets/img/jiantouchoose.png"
style="width: 0.9vw;height:0.9vw;object-fit: contain;float: right;margin-top: 7%;">
<img src="../assets/img/muluchoose.png"
style="width: 19vw;height: 6vw;position: absolute;bottom: -3vw;left: -3.5vw;z-index: -1;"/>
</div>
<div class="oneMulu" v-else @click="goInfo(item.info)">
<div style="width: 80%;text-align: center;">{{ item.name }}</div>
<img src="../assets/img/jiantou.png"
style="width: 0.9vw;height:0.9vw;object-fit: contain;float: right;margin-top: 13%;">
</div>
</div>
</div>
</div>
</div>
</div>
<div class="rightContent">
<div class="contentInfo">
<div class="contentTitle">
<!-- <div class="back-button" @click="goBack">-->
<!-- <img src="../assets/img/jiantouchoose.png" alt="返回">-->
<!-- </div>-->
{{contentInfo.title}}</div>
<div class="contentText" v-html="contentInfo.content"></div>
</div>
</div>
</div>
<div style="width: 100%;height: 3%;position: fixed;bottom: 0px;z-index: 100">
<foot></foot>
</div>
</div>
</template>
<script>
import headInfo from "@/components/Head.vue";
import Foot from "@/components/Foot.vue";
import {getInfo} from "@/api/kcInfo";
export default {
// eslint-disable-next-line vue/multi-word-component-names
name: 'TWInfoXq',
components: {Foot, headInfo},
data() {
return{
docId:undefined,
level:0,
url:"",
userName:"",
mulu: [
{id: 0, name: "图文资源", info: "TwInfo"},
{id: 1, name: "视频资源", info: "SpInfo"},
{id: 2, name: "动画显示", info: "DhInfo"},
{id: 3, name: "计算模块", info: "JsInfo"},
{id: 4, name: "知识图谱", info: "Graph"},
{id: 4, name: "帮助文档", info: "Help"}
],
contentInfo:{
title:"",
content:""
},
}
},
methods:{
goInfo(info) {
console.log(info)
this.$router.push('/' + info)
},
getInfo(){
var data = {
id:this.docId
}
getInfo(data).then((res)=>{
this.contentInfo.title = res.data.data.name
this.contentInfo.content = res.data.data.contentInfo
})
}
},
mounted() {
this.docId = this.$route.query.id;
this.userType = localStorage.getItem("type");
this.userName = localStorage.getItem("name");
this.getInfo();
}
}
</script>
<style scoped>
.content {
width: 100%;
height: 86%;
}
.leftContent {
width: 14%;
height: 100%;
float: left;
}
.leftBox1 {
width: 100%;
height: 10%;
margin-top: 5%;
color: #7cdeff;
}
.leftBox2 {
width: 100%;
height: 90%;
}
.muluBox {
margin: 0 14%;
height: 92%;
width: 72%;
position: relative;
}
.muluList {
width: 100%;
height: 90%;
//background-color: #7cdeff;
display: flex;
flex-direction: column;
position: absolute;
z-index: 2;
margin-top: 20%;
}
.oneMulu {
width: 80%;
height: 2.5vw;
line-height: 2.5vw;
font-size: 0.9vw;
border-bottom: 1px solid rgba(112, 192, 227, 0.47);
margin-left: 10%;
color: #d1d3d7;
display: flex;
flex-direction: row;
}
.oneMuluXuan {
width: 90%;
height: 2.5vw;
line-height: 2.1vw;
font-size: 0.9vw;
color: #13ffff;
display: flex;
flex-direction: row;
padding-left: 10%;
position: relative;
}
.rightContent {
width: 84%;
height: 100%;
float: left;
position: relative;
}
.contentInfo{
width: 100%;
height: 96%;
position: absolute;
z-index: 101;
margin-top: 2%;
border-radius: 1vw;
}
.contentTitle{
width: 100%;
height: 5%;
margin-top: 0.5%;
font-size: 1.5vw;
color: #03f7f7;
text-align: center;
letter-spacing: 5px;
line-height: 3vw;
display: flex;
align-items: center;
justify-content: center;
position: relative;
}
.contentText{
width: 86%;
height: 86%;
font-size: 1.2vw;
text-indent: 2em;
font-weight: lighter;
letter-spacing: 0.15vw;
line-height: 2.25;
margin: 2% 0 2% 0;
padding: 0 5% 0 8%;
overflow-y: scroll;
color: #ffffff;
}
.contentText::-webkit-scrollbar {
width: 6px;
height: 6px;
}
.contentText::-webkit-scrollbar-thumb {
background-color: #03f7f7;
border-radius: 10px;
}
.contentText::-webkit-scrollbar-track {
background: transparent;
}
.contentText::-webkit-scrollbar-button {
display: none;
}
</style>