mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/student-h5.git
synced 2025-12-09 02:46:47 +08:00
feat:新增调研页面
style:修改作业页面input框
This commit is contained in:
@@ -72,11 +72,74 @@
|
||||
</div>
|
||||
|
||||
<div class="contentfor clearfix">
|
||||
<textarea type="text" class="inputbox" />
|
||||
<el-input
|
||||
v-model="textarea1"
|
||||
:autosize="{ minRows: 12.5, maxRows: 12.5 }"
|
||||
resize="none"
|
||||
type="textarea"
|
||||
@input="textareaInput"
|
||||
class="input"
|
||||
/>
|
||||
|
||||
<div
|
||||
class="uploadDetail"
|
||||
:style="{ display: uploadfile ? 'block' : 'none' }"
|
||||
>
|
||||
<div class="square clearfix">
|
||||
<div class="squarecontent1">
|
||||
<div class="rar"></div>
|
||||
<div class="rarDetail">
|
||||
<span class="detail1" style="margin-right: 42px">
|
||||
文件名称1.rar
|
||||
</span>
|
||||
<span class="detail2" style="margin-right: 10px">48%</span>
|
||||
<span class="detail1">正在上传</span>
|
||||
<div class="progress">
|
||||
<div class="progressinner"></div>
|
||||
</div>
|
||||
</div>
|
||||
<button class="btn btndetail">暂停</button>
|
||||
<button class="btn">取消</button>
|
||||
</div>
|
||||
|
||||
<div class="squarecontent2">
|
||||
<div class="rar"></div>
|
||||
<div class="rarDetail">
|
||||
<span class="detail1" style="margin-right: 42px">
|
||||
文件名称2.rar
|
||||
</span>
|
||||
<span class="detail2" style="margin-right: 10px">80%</span>
|
||||
<span class="detail1">上传失败</span>
|
||||
<div class="progress">
|
||||
<div class="progressinner"></div>
|
||||
</div>
|
||||
</div>
|
||||
<button class="btn btndetail">重传</button>
|
||||
<button class="btn">取消</button>
|
||||
</div>
|
||||
|
||||
<div class="squarecontent3">
|
||||
<div class="rar"></div>
|
||||
<div class="rarDetail">
|
||||
<span class="detail1" style="margin-right: 34px">
|
||||
文件名称3.rar
|
||||
</span>
|
||||
<span class="detail2" style="margin-right: 10px">100%</span>
|
||||
<span class="detail1">上传成功</span>
|
||||
<div class="progress">
|
||||
<div class="progressinner"></div>
|
||||
</div>
|
||||
</div>
|
||||
<button class="btn btndetail">删除</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="triangle"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="btnbox">
|
||||
<div class="btnn">
|
||||
<button class="btns btno">上传</button>
|
||||
<button class="btns btno" @click="uploadFile">上传</button>
|
||||
<button class="btns btnt">提交</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -112,14 +175,31 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
// import { reactive, toRefs } from "vue";
|
||||
import { reactive, toRefs } from "vue";
|
||||
import TitleHead from "@/components/TitleHead.vue";
|
||||
export default {
|
||||
name: "HomeworkPage",
|
||||
components: {
|
||||
TitleHead,
|
||||
},
|
||||
setup() {},
|
||||
setup() {
|
||||
const state = reactive({
|
||||
uploadfile: false,
|
||||
textarea1: " ",
|
||||
});
|
||||
const uploadFile = () => {
|
||||
state.uploadfile = !state.uploadfile;
|
||||
};
|
||||
const textareaInput = (e) => {
|
||||
// console.log("eee", e);
|
||||
state.textarea1 = e;
|
||||
};
|
||||
return {
|
||||
...toRefs(state),
|
||||
uploadFile,
|
||||
textareaInput,
|
||||
};
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
@@ -320,34 +400,216 @@ export default {
|
||||
margin-bottom: 34px;
|
||||
height: 200px;
|
||||
// background-color: red;
|
||||
.inputbox {
|
||||
width: 100%;
|
||||
position: relative;
|
||||
// .input {
|
||||
// background-color: #f5f6f7;
|
||||
// }
|
||||
.el-textarea__inner {
|
||||
background-color: #f5f6f7;
|
||||
border: 0;
|
||||
height: 256px;
|
||||
border-radius: 4px;
|
||||
// border-color: blue;
|
||||
}
|
||||
.inputbox:focus {
|
||||
outline: none !important;
|
||||
border-color: #719ece;
|
||||
box-shadow: 0 0 10px #719ece;
|
||||
.uploadDetail {
|
||||
position: absolute;
|
||||
// top: 110px;
|
||||
top: 120px;
|
||||
right: 0px;
|
||||
z-index: 999;
|
||||
.triangle {
|
||||
top: 156px;
|
||||
left: 110px;
|
||||
width: 0;
|
||||
height: 0;
|
||||
position: absolute;
|
||||
border-right: 5px solid transparent;
|
||||
border-left: 5px solid transparent;
|
||||
border-top: 5px solid #fff;
|
||||
// box-shadow: 0px 1px 24px 0px rgba(0, 0, 0, 0.11);
|
||||
}
|
||||
|
||||
.square {
|
||||
// width: 475px;
|
||||
width: 100%;
|
||||
height: 156px;
|
||||
background: #ffffff;
|
||||
box-shadow: 0px 1px 24px 0px rgba(0, 0, 0, 0.11);
|
||||
border-radius: 8px;
|
||||
.squarecontent1 {
|
||||
// padding-top: 18px;
|
||||
margin-top: 10px;
|
||||
display: flex;
|
||||
.rar {
|
||||
margin: 12px 15px 0 27px;
|
||||
width: 19px;
|
||||
height: 22px;
|
||||
background-size: 100% 100%;
|
||||
background-image: url("../../assets/image/homeworkpage/rar.png");
|
||||
}
|
||||
.rarDetail {
|
||||
.detail1 {
|
||||
// height: 14px;
|
||||
font-size: 12px;
|
||||
line-height: 30px;
|
||||
font-weight: 500;
|
||||
color: #677d86;
|
||||
}
|
||||
.detail2 {
|
||||
// height: 11px;
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
color: #277aff;
|
||||
}
|
||||
.progress {
|
||||
width: 202px;
|
||||
height: 8px;
|
||||
background: #e8f1fe;
|
||||
border-radius: 4px;
|
||||
.progressinner {
|
||||
width: 48%;
|
||||
height: 8px;
|
||||
background: linear-gradient(
|
||||
0deg,
|
||||
#2478ff 0%,
|
||||
#5093ff 100%
|
||||
);
|
||||
border-radius: 4px;
|
||||
}
|
||||
}
|
||||
}
|
||||
.btn {
|
||||
border: 0;
|
||||
background-color: #fff;
|
||||
color: #277aff;
|
||||
margin-top: 8px;
|
||||
cursor: pointer;
|
||||
width: 40px;
|
||||
}
|
||||
}
|
||||
|
||||
.squarecontent2 {
|
||||
margin-top: 5px;
|
||||
display: flex;
|
||||
.rar {
|
||||
margin: 12px 15px 0 27px;
|
||||
width: 19px;
|
||||
height: 22px;
|
||||
background-size: 100% 100%;
|
||||
background-image: url("../../assets/image/homeworkpage/rar.png");
|
||||
}
|
||||
.rarDetail {
|
||||
.detail1 {
|
||||
// height: 14px;
|
||||
font-size: 12px;
|
||||
line-height: 30px;
|
||||
font-weight: 500;
|
||||
color: #677d86;
|
||||
}
|
||||
.detail2 {
|
||||
// height: 11px;
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
color: #277aff;
|
||||
}
|
||||
.progress {
|
||||
width: 202px;
|
||||
height: 8px;
|
||||
background: #e8f1fe;
|
||||
border-radius: 4px;
|
||||
.progressinner {
|
||||
width: 80%;
|
||||
height: 8px;
|
||||
background: linear-gradient(
|
||||
0deg,
|
||||
#ee625e 0%,
|
||||
#eea4a1 100%
|
||||
);
|
||||
border-radius: 4px;
|
||||
}
|
||||
}
|
||||
}
|
||||
.btn {
|
||||
border: 0;
|
||||
background-color: #fff;
|
||||
color: #277aff;
|
||||
margin-top: 8px;
|
||||
cursor: pointer;
|
||||
width: 40px;
|
||||
}
|
||||
.btndetail {
|
||||
// margin-left: 25px;
|
||||
}
|
||||
}
|
||||
|
||||
.squarecontent3 {
|
||||
margin-top: 5px;
|
||||
display: flex;
|
||||
.rar {
|
||||
margin: 12px 15px 0 27px;
|
||||
width: 19px;
|
||||
height: 22px;
|
||||
background-size: 100% 100%;
|
||||
background-image: url("../../assets/image/homeworkpage/rar.png");
|
||||
}
|
||||
.rarDetail {
|
||||
.detail1 {
|
||||
// height: 14px;
|
||||
font-size: 12px;
|
||||
line-height: 30px;
|
||||
font-weight: 500;
|
||||
color: #677d86;
|
||||
}
|
||||
.detail2 {
|
||||
// height: 11px;
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
color: #277aff;
|
||||
}
|
||||
.progress {
|
||||
width: 202px;
|
||||
height: 8px;
|
||||
background: #e8f1fe;
|
||||
border-radius: 4px;
|
||||
.progressinner {
|
||||
width: 100%;
|
||||
height: 8px;
|
||||
background: linear-gradient(
|
||||
0deg,
|
||||
#36d1ae 0%,
|
||||
#3be5bf 100%
|
||||
);
|
||||
border-radius: 4px;
|
||||
}
|
||||
}
|
||||
}
|
||||
.btn {
|
||||
border: 0;
|
||||
background-color: #fff;
|
||||
color: #277aff;
|
||||
margin-top: 8px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.btndetail {
|
||||
margin-left: 25px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.btnbox {
|
||||
margin-top: 80px;
|
||||
margin-top: 90px;
|
||||
// height: 20px;
|
||||
width: 100%;
|
||||
// background-color: red;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
margin-bottom: 20px;
|
||||
|
||||
.btnn {
|
||||
color: #fff;
|
||||
width: 60%;
|
||||
font-size: 14px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
|
||||
.btns {
|
||||
color: #fff;
|
||||
width: 83px;
|
||||
|
||||
Reference in New Issue
Block a user