home.vue
3.1 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<template>
<view class="homeContainer">
<view class="header_bg">
<Header :bottomBtn="true"></Header>
<!-- 搜索框头部 -->
<view class="header_content flex alignC">
<!-- 定位 -->
<view class="dingwei flex alignC">
<view class="dingwei_img flex">
<image src="../../static/home/ic_dingwei.png" mode="widthFix"></image>
</view>
<text style="font-size: 28rpx; color: #FFFFFF; margin-right: 4rpx;">深圳</text>
</view>
<!-- 搜索框 -->
<view class="searchInput flex alignC" @click="searchDetail">
<view class="search_icon flex">
<image src="../../static/home/ic_search.png" mode="widthFix"></image>
</view>
<text class="input_text" style="margin-left: 13rpx; color: #FFFFFF;">请输入您要搜索的内容</text>
</view>
<!-- 签到 -->
<view class="qiandao flex">
<image src="../../static/home/ic_qiandoa.png" mode="widthFix"></image>
</view>
</view>
<!-- 导航栏 -->
<view class="navBox flex justifyBetween alignC">
<view class="navItem flex flexColumn alignC" v-for="(item,index) in navList">
<view class="navItem_icon flex">
<image :src="item.icon" mode="widthFix"></image>
</view>
<text class="navItem_name">{{item.name}}</text>
</view>
</view>
<!-- 主要内容 -->
<view class="main_homeContainer">
<!-- 海报 -->
<view class="banner">
<image src="../../static/home/ic_banner.png" mode="widthFix"></image>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
navList: [{
id: 0,
icon: '../../static/home/ic_icon1.png',
name: '附近职位'
}, {
id: 1,
icon: '../../static/home/ic_icon2.png',
name: '急招职位'
}, {
id: 2,
icon: '../../static/home/ic_icon3.png',
name: '校园招聘'
}, {
id: 3,
icon: '../../static/home/ic_icon4.png',
name: '智能求职'
}, {
id: 4,
icon: '../../static/home/ic_icon5.png',
name: '全部职位'
}]
}
},
methods: {
}
}
</script>
<style>
page {
background-color: #f6f8fa;
}
.header_bg {
width: 750rpx;
height: 572rpx;
opacity: 1;
background: linear-gradient(138deg, rgba(252, 222, 146, 1) 0%, rgba(255, 132, 12, 1) 100%);
}
.header_content {
margin-top: 64rpx;
padding: 0 18rpx 0 32rpx;
}
.searchInput {
width: 508rpx;
height: 66rpx;
background: rgba(255, 255, 255, 0.3);
border-radius: 102rpx;
opacity: 1;
margin-left: 24rpx;
}
.dingwei_img {
width: 36rpx;
height: 36rpx;
}
.search_icon {
width: 24rpx;
height: 24rpx;
margin-left: 24rpx;
}
.qiandao {
width: 60rpx;
height: 78rpx;
margin-top: -10rpx;
margin-left: 12rpx;
}
.navBox {
margin-top: 62rpx;
padding: 0 34rpx 0;
}
.navItem_icon {
width: 68rpx;
height: 68rpx;
}
.navItem_name {
height: 36rpx;
font-size: 26rpx;
margin-top: 16rpx;
color: #FFFFFF;
}
.main_homeContainer {
margin-top: 40rpx;
padding: 32rpx;
width: 750rpx;
height: 886rpx;
border-radius: 32rpx 32rpx 0 0;
opacity: 1;
background: rgba(255,255,255,1);
}
.banner {
width: 688rpx;
height: 288rpx;
}
</style>