mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/student-h5.git
synced 2025-12-10 11:26:48 +08:00
feat:新增上传作业页面
This commit is contained in:
BIN
src/assets/image/homeworkpage/delete.png
Normal file
BIN
src/assets/image/homeworkpage/delete.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 676 B |
BIN
src/assets/image/homeworkpage/link.png
Normal file
BIN
src/assets/image/homeworkpage/link.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 922 B |
BIN
src/assets/image/homeworkpage/next.png
Normal file
BIN
src/assets/image/homeworkpage/next.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 655 B |
BIN
src/assets/image/homeworkpage/pre.png
Normal file
BIN
src/assets/image/homeworkpage/pre.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 656 B |
102
src/views/homeworkpage/UploadWork.vue
Normal file
102
src/views/homeworkpage/UploadWork.vue
Normal file
@@ -0,0 +1,102 @@
|
|||||||
|
<template>
|
||||||
|
<div class="uploadworkpage">
|
||||||
|
<div class="inputcontainer">
|
||||||
|
<div class="inputt">
|
||||||
|
<el-input
|
||||||
|
type="textarea"
|
||||||
|
placeholder="请输入正文"
|
||||||
|
v-model="textarea"
|
||||||
|
rows="35"
|
||||||
|
></el-input>
|
||||||
|
</div>
|
||||||
|
<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" />
|
||||||
|
<img src="../../assets/image/homeworkpage/next.png" />
|
||||||
|
<img src="../../assets/image/homeworkpage/delete.png" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { reactive, toRefs } from "vue";
|
||||||
|
export default {
|
||||||
|
name: "UploadWork",
|
||||||
|
components: {},
|
||||||
|
setup() {
|
||||||
|
const state = reactive({
|
||||||
|
text: "",
|
||||||
|
textarea: "",
|
||||||
|
});
|
||||||
|
return {
|
||||||
|
...toRefs(state),
|
||||||
|
};
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="scss" >
|
||||||
|
.clearfix:before,
|
||||||
|
clearfix:after {
|
||||||
|
content: " ";
|
||||||
|
display: table;
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
|
.uploadworkpage {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
.inputcontainer {
|
||||||
|
margin-top: 20px;
|
||||||
|
background-color: #fff;
|
||||||
|
width: 100%;
|
||||||
|
// height: 100px;
|
||||||
|
// display: flex;
|
||||||
|
// justify-content: center;
|
||||||
|
height: 80%;
|
||||||
|
.inputt {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
::v-deep .el-textarea__inner {
|
||||||
|
resize: none;
|
||||||
|
border-color: transparent;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
::v-deep .el-textarea:focus {
|
||||||
|
border-color: transparent;
|
||||||
|
}
|
||||||
|
::v-deep .el-textarea {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
.linecon {
|
||||||
|
margin-top: 10px;
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
.line {
|
||||||
|
width: 90%;
|
||||||
|
height: 0;
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
Reference in New Issue
Block a user