1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<template>
<div class="floor-header">
<span class="back" @click="handleClose">
<img src= "@/assets/images/applets/back.png" >
</span>
<span>{{ title }}</span>
</div>
</template>
<script>
export default {
props: {
title: {
type: String,
default: ''
}
},
data() {
return {
}
},
methods: {
handleClose() {
this.$router.back(-1)
}
}
}
</script>
<style lang="scss" scoped>
.floor-header {
height: 44px;
line-height: 44px;
width: 100%;
background: #A4151D;
box-shadow: 0 2px 4px 0 rgba(0,0,0,0.06);
font-size: 18px;
font-weight: 700;
color: #fff;
text-align: center;
position: fixed;
top: 0;
left: 0;
z-index: 999;
.back {
position: absolute;
left: 12px;
width: 20px;
height: 20px;
top: 5px;
img {
width: 100%;
height: 100%;
}
}
}
</style>