style:修改上传作业和讨论法表页面

This commit is contained in:
李晓鸽
2022-10-08 16:25:10 +08:00
parent d78ade940c
commit 6424a4857b
6 changed files with 1047 additions and 979 deletions

View File

@@ -1,6 +1,6 @@
<template>
<div id="container">
<div id="nav">
<!-- <div id="nav">
<router-link
v-for="item in routes"
:key="item.path"
@@ -12,7 +12,7 @@
>
{{ item.name }}
</router-link>
</div>
</div> -->
<main>
<router-view />
</main>

View File

@@ -70,6 +70,7 @@ export default {
<style lang="scss">
.activities {
width: 100%;
.main {
width: 100%;
display: flex;
@@ -153,6 +154,7 @@ export default {
flex-direction: column;
align-items: center;
background-color: rgba(255, 255, 255, 1);
padding-bottom: 20px;
.details_title {
width: 90%;
display: flex;

View File

@@ -1,20 +1,29 @@
<template>
<div class="uploadworkpage">
<div
class="discussupload"
:style="{
height: screenHeight - 73.5 + 'px',
}"
>
<div class="inputcontainer">
<div class="inputt">
<div class="i_title">
<input type="text" id="input_title" placeholder="请输入标题"></div>
<input type="text" id="input_title" placeholder="请输入标题" />
</div>
<div class="discusscontent">
<el-input
type="textarea"
placeholder="请输入正文"
v-model="textarea"
rows="35"
autosize
></el-input>
</div>
</div>
<div class="imgcon">
<div class="linecon">
<div class="line"></div>
</div>
<div class="imgcon">
<div class="allimg">
<img src="../../assets/image/discuss/images.png" />
<img src="../../assets/image/discuss/pre.png" />
@@ -35,6 +44,7 @@
const state = reactive({
text: "",
textarea: "",
screenHeight: document.body.clientHeight, // 屏幕高度
});
return {
...toRefs(state),
@@ -43,16 +53,18 @@
};
</script>
<style scoped lang="scss" >
<style lang="scss">
.clearfix:before,
clearfix:after {
content: " ";
display: table;
clear: both;
}
.uploadworkpage {
.discussupload {
width: 100%;
height: 100%;
// height: 100%;
background-color: #fff;
// margin-top: 73.5px;
.inputcontainer {
margin-top: 20px;
background-color: #fff;
@@ -60,10 +72,20 @@
// height: 100px;
// display: flex;
// justify-content: center;
height: 80%;
// height: 80%;
height: 100%;
.inputt {
width: 100%;
height: calc(100% - 79px);
// height: 100px;
// padding-bottom: 79px;
.discusscontent {
height: calc(100% - 79px);
overflow-y: scroll;
}
}
.i_title {
margin-left: 16.5px;
width: 90%;
@@ -72,11 +94,11 @@
::-webkit-input-placeholder {
font-size: 16px;
font-weight: 500;
color: #04243C;
color: #04243c;
}
:-ms-input-placeholder {
font-size: 16px;
color: #04243C;
color: #04243c;
}
#input_title {
width: 100%;
@@ -97,6 +119,30 @@
::v-deep .el-textarea {
height: 100%;
}
.el-textarea__inner {
border: 0 !important;
resize: none !important; /* 这个是去掉 textarea 下面拉伸的那个标志,如下图 */
box-shadow: none !important;
padding: 16px 18px;
}
.el-textarea__inner:hover {
box-shadow: none !important;
border: 0 !important;
}
.el-textarea__inner:focus {
border: none;
border: 0 !important;
}
.imgcon {
// margin-top: 24.5px;
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
position: fixed;
bottom: 0;
background-color: #fff;
.linecon {
margin-top: 10px;
width: 100%;
@@ -108,17 +154,12 @@
border-top: 1px solid #f1f2f3;
}
}
.imgcon {
margin-top: 24.5px;
width: 100%;
display: flex;
justify-content: center;
.allimg {
width: 70%;
display: flex;
justify-content: space-between;
margin-bottom: 24.5px;
margin-top: 24.5px;
img {
width: 20px;
height: 19px;

View File

@@ -1,18 +1,24 @@
<template>
<div class="uploadworkpage">
<div
class="uploadworkpage"
:style="{
height: screenHeight - 73.5 + 'px',
}"
>
<div class="inputcontainer">
<div class="inputt">
<el-input
type="textarea"
placeholder="请输入正文"
v-model="textarea"
rows="35"
autosize
></el-input>
</div>
<div class="imgcon">
<div class="linecon">
<div class="line"></div>
</div>
<div class="imgcon">
<div class="allimg">
<img src="../../assets/image/homeworkpage/link.png" />
<img src="../../assets/image/homeworkpage/pre.png" />
@@ -33,6 +39,7 @@ export default {
const state = reactive({
text: "",
textarea: "",
screenHeight: document.body.clientHeight, // 屏幕高度
});
return {
...toRefs(state),
@@ -50,7 +57,8 @@ clearfix:after {
}
.uploadworkpage {
width: 100%;
height: 100%;
background-color: #fff;
// margin-top: 73.5px;
.inputcontainer {
margin-top: 20px;
background-color: #fff;
@@ -58,9 +66,14 @@ clearfix:after {
// height: 100px;
// display: flex;
// justify-content: center;
height: 80%;
// height: 80%;
height: 100%;
.inputt {
width: 100%;
height: calc(100% - 79px);
// height: 100px;
// padding-bottom: 79px;
overflow-y: scroll;
}
::v-deep .el-textarea__inner {
resize: none;
@@ -87,6 +100,16 @@ clearfix:after {
border: none;
border: 0 !important;
}
.imgcon {
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
position: fixed;
bottom: 0;
background-color: #fff;
.linecon {
margin-top: 10px;
width: 100%;
@@ -98,13 +121,8 @@ clearfix:after {
border-top: 1px solid #f1f2f3;
}
}
.imgcon {
margin-top: 24.5px;
width: 100%;
display: flex;
justify-content: center;
.allimg {
margin-top: 24.5px;
width: 70%;
display: flex;
justify-content: space-between;

View File

@@ -3,11 +3,16 @@
<div class="main">
<div class="up">
<div class="notice">
<span class="text">请各位选课的同学提前阅读本课程的教学大纲与计划请各位选课的同学提前阅读本课程的教学大纲与计划</span> <span class="close"></span>
<span class="text"
>请各位选课的同学提前阅读本课程的教学大纲与计划请各位选课的同学提前阅读本课程的教学大纲与计划</span
>
<span class="close"></span>
</div>
<div class="content">
<div class="title">中级产品经理</div>
<div class="text2">课程简介课程简介课程简介课程简介课程简介课程简介课程简介课程简介课程简介课程简介课程简介课程简介课程简介简介课程简介</div>
<div class="text2">
课程简介课程简介课程简介课程简介课程简介课程简介课程简介课程简介课程简介课程简介课程简介课程简介课程简介简介课程简介
</div>
</div>
</div>
<div class="down">
@@ -55,7 +60,9 @@
</div>
<div class="secondcontent">
<div class="question">
<div class="issue">趣味课前小测 - MBTI测试你适合做哪个方向</div>
<div class="issue">
趣味课前小测 - MBTI测试你适合做哪个方向
</div>
<div class="tag1">选修</div>
<div class="tag2">测评</div>
</div>
@@ -73,13 +80,10 @@
</div>
</div>
</div>
</div>
</template>
<script>
</script>
<script></script>
<style lang="scss">
.pathmap {
@@ -105,8 +109,8 @@
width: 100%;
height: 25px;
display: flex;
jusyift-content: center;
//position: relative;
justify-content: center;
position: relative;
.text {
//display: flex;
height: 25px;
@@ -165,7 +169,7 @@
//justify-content: center;
background-color: rgba(255, 255, 255, 1);
.project_title {
width:100%;
width: calc(100% - 36.5px);
display: flex;
font-size: 16px;
font-weight: 500;
@@ -253,7 +257,7 @@
display: flex;
width: 74px;
height: 43px;
background-image: url(../../assets/image/pathmap/firstclass.png)
background-image: url(../../assets/image/pathmap/firstclass.png);
}
.firstprogress {
display: flex;
@@ -307,7 +311,7 @@
.secondclass {
width: 74px;
height: 43px;
background-image: url(../../assets/image/pathmap/secondclass.png)
background-image: url(../../assets/image/pathmap/secondclass.png);
}
.secondprogress {
display: flex;

View File

@@ -3,11 +3,16 @@
<div class="main">
<div class="up">
<div class="notice">
<span class="text">请各位选课的同学提前阅读本课程的教学大纲与计划请各位选课的同学提前阅读本课程的教学大纲与计划</span> <span class="close"></span>
<span class="text"
>请各位选课的同学提前阅读本课程的教学大纲与计划请各位选课的同学提前阅读本课程的教学大纲与计划</span
>
<span class="close"></span>
</div>
<div class="content">
<div class="title">中级产品经理</div>
<div class="text2">课程简介课程简介课程简介课程简介课程简介课程简介课程简介课程简介课程简介课程简介课程简介课程简介课程简介简介课程简介</div>
<div class="text2">
课程简介课程简介课程简介课程简介课程简介课程简介课程简介课程简介课程简介课程简介课程简介课程简介课程简介简介课程简介
</div>
</div>
</div>
<div class="down">
@@ -55,7 +60,9 @@
</div>
<div class="secondcontent">
<div class="question">
<div class="issue">趣味课前小测 - MBTI测试你适合做哪个方向</div>
<div class="issue">
趣味课前小测 - MBTI测试你适合做哪个方向
</div>
<div class="tag1">选修</div>
<div class="tag2">测评</div>
</div>
@@ -85,13 +92,10 @@
</div>
</div>
</div>
</div>
</template>
<script>
</script>
<script></script>
<style lang="scss">
.projectdetails {
@@ -117,8 +121,8 @@
width: 100%;
height: 25px;
display: flex;
jusyift-content: center;
//position: relative;
justify-content: center;
position: relative;
.text {
//display: flex;
height: 25px;
@@ -177,7 +181,7 @@
//justify-content: center;
background-color: rgba(255, 255, 255, 1);
.project_title {
width:100%;
width: calc(100% - 36.5px);
display: flex;
font-size: 16px;
font-weight: 500;
@@ -265,7 +269,7 @@
display: flex;
width: 74px;
height: 43px;
background-image: url(../../assets/image/pathmap/firstclass.png)
background-image: url(../../assets/image/pathmap/firstclass.png);
}
.firstprogress {
display: flex;
@@ -319,7 +323,7 @@
.secondclass {
width: 74px;
height: 43px;
background-image: url(../../assets/image/pathmap/secondclass.png)
background-image: url(../../assets/image/pathmap/secondclass.png);
}
.secondprogress {
display: flex;
@@ -502,7 +506,7 @@
align-items: center;
background-color: rgba(255, 255, 255, 1);
.project_title {
width:100%;
width: calc(100% - 36.5px);
display: flex;
font-size: 16px;
font-weight: 500;
@@ -546,8 +550,7 @@
font-size: 21px;
font-weight: bold;
line-height: 24px;
color: rgba(0, 96, 255, 1)
color: rgba(0, 96, 255, 1);
}
.describe_part {
display: flex;