Commit 2c19e149 by 杨青杰

update

parent a2c0d4f3
<template> <template>
<div class="student"> <div class="student">
<img src='../../static/images/classStudent/1.png' /> <img class="img1" src='../../static/images/classStudent/1.png' />
<img class="img2" @click="change" src="../../static/images/class3/back.png" />
</div> </div>
</template> </template>
<script> <script>
export default { export default {
methods: {
change () {
this.$router.back(-1)
}
}
} }
</script> </script>
<style> <style lang="less" scoped>
.student{ .student{
width: 1920px; width: 1920px;
height: 1080px; height: 1080px;
position: relative;
.img1{
position: absolute;
width: 100%;
height: 100%;
}
.img2{
position: absolute;
top:50px;
right:25px;
width: 83px;
height: 35px;
cursor: pointer;
}
} }
</style> </style>
\ No newline at end of file
...@@ -147,7 +147,10 @@ export default { ...@@ -147,7 +147,10 @@ export default {
* @method Search 查询更多 * @method Search 查询更多
*/ */
Search () { Search () {
this.$router.push({path: '/student'}) if (this.studentName === '小王') {
this.$router.push({path: '/student'})
}
console.log(123)
} }
} }
...@@ -205,18 +208,19 @@ export default { ...@@ -205,18 +208,19 @@ export default {
width: 830px; width: 830px;
height: 70px; height: 70px;
display: flex; display: flex;
padding:16px 0px 0px 19px;
background: url('@{imagePath}kuang.png') no-repeat center; background: url('@{imagePath}kuang.png') no-repeat center;
background-size: 100% 100%; background-size: 100% 100%;
border: springgreen 1px solid; border: springgreen 1px solid;
.select-item { .select-item {
position: relative; position: relative;
width: 140px; width: 130px;
height: 32px; height: 32px;
margin-right: 16px; margin-right: 13px;
&.student-name { &.student-name {
width: 162px; width: 222px;
padding: 2px 10px 5px; padding: 2px 10px 5px;
background: rgba(7, 32, 65, 0.3); background: rgba(7, 32, 65, 0.3);
border: 1px solid rgba(73, 133, 217, 0.6); border: 1px solid rgba(73, 133, 217, 0.6);
...@@ -238,7 +242,7 @@ export default { ...@@ -238,7 +242,7 @@ export default {
} }
.search { .search {
width: 73px; width: 125px;
height: 32px; height: 32px;
background-color: rgba(7, 32, 65, 0.3); background-color: rgba(7, 32, 65, 0.3);
border: 1px solid rgba(73, 133, 217, .6); border: 1px solid rgba(73, 133, 217, .6);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment