index.vue
1.52 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<template>
<div>
<nafm-header :leftArrow="false">
<div class="head-custom-container">
<div class="search-input-box" @click="handleSearch">
<div src="" alt="" class="search-icon" />
<span class="search-placeholder">请输入您想搜索的内容</span>
</div>
<div class="head-message-box">
</div>
</div>
</nafm-header>
<span @click="jumpLogin">跳转登录页面</span>
<FooterBottom />
</div>
</template>
<script>
export default {
name: "Home",
components: {},
data() {
return {};
},
methods: {
jumpLogin() {
this.$router.push({
name: "Login",
});
},
handleSearch() {},
},
};
</script>
<style lang="less" scoped>
@PaddingSize: 15px;
@HeadHeight: 33px;
.head-custom-container {
width: 100%;
height: @HeadHeight;
padding: 0 @PaddingSize;
display: flex;
align-items: center;
.search-input-box {
width: 100%;
height: 100%;
border-radius: calc(@HeadHeight / 2);
background-color: rgba(255, 255, 255, 0.2);
padding: 0 @PaddingSize;
display: flex;
align-items: center;
@SearchIconSize: 12px;
.search-icon {
background: white;
width: @SearchIconSize;
height: @SearchIconSize;
}
.search-placeholder {
color: white;
font-size: 12px;
padding-left: 22px;
}
}
@MessageBoxSize: 23px;
.head-message-box {
width: @MessageBoxSize;
height: @MessageBoxSize;
margin-left: @PaddingSize;
background: white;
}
}
</style>