正在显示
37 个修改的文件
包含
975 行增加
和
1009 行删除
@@ -25,10 +25,9 @@ | @@ -25,10 +25,9 @@ | ||
25 | "pages/myMessage2/myMessage2", | 25 | "pages/myMessage2/myMessage2", |
26 | "pages/myMessage/myMessage", | 26 | "pages/myMessage/myMessage", |
27 | "pages/index/select/select", | 27 | "pages/index/select/select", |
28 | - "pages/index/search_5/search_5", | ||
29 | "pages/index/search_4/search_4", | 28 | "pages/index/search_4/search_4", |
30 | "pages/index/search_2/search_2", | 29 | "pages/index/search_2/search_2", |
31 | - "pages/index/search_3/search_3", | 30 | + |
32 | "pages/index/url/url", | 31 | "pages/index/url/url", |
33 | "pages/index/index", | 32 | "pages/index/index", |
34 | 33 |
@@ -16,9 +16,10 @@ Page({ | @@ -16,9 +16,10 @@ Page({ | ||
16 | * 生命周期函数--监听页面加载 | 16 | * 生命周期函数--监听页面加载 |
17 | */ | 17 | */ |
18 | // 跳转岗位信息 | 18 | // 跳转岗位信息 |
19 | - toPosition() { | 19 | + toPosition(e) { |
20 | + let id = e.currentTarget.dataset.id | ||
20 | wx.navigateTo({ | 21 | wx.navigateTo({ |
21 | - url: '/pages/positionDetails/positionDetails', | 22 | + url: '/pages/positionDetails/positionDetails?id='+id, |
22 | }) | 23 | }) |
23 | }, | 24 | }, |
24 | // 跳转招聘者信息 | 25 | // 跳转招聘者信息 |
@@ -33,7 +33,7 @@ | @@ -33,7 +33,7 @@ | ||
33 | 相关岗位 | 33 | 相关岗位 |
34 | </view> | 34 | </view> |
35 | 35 | ||
36 | - <view class='item' bindtap='toPosition' wx:for='{{employerJ}}' wx:key=''> | 36 | + <view class='item' bindtap='toPosition' wx:for='{{employerJ}}' wx:key='' data-id='{{item.id}}'> |
37 | <!-- 头部 --> | 37 | <!-- 头部 --> |
38 | <view class='item_top'> | 38 | <view class='item_top'> |
39 | <view class='item_top_left'> | 39 | <view class='item_top_left'> |
@@ -42,7 +42,7 @@ | @@ -42,7 +42,7 @@ | ||
42 | </view> | 42 | </view> |
43 | <view class='item_top_left_text'> | 43 | <view class='item_top_left_text'> |
44 | <view class='text_top'>{{item.station_name}}</view> | 44 | <view class='text_top'>{{item.station_name}}</view> |
45 | - <view class='text_bottom'>{{item.min_money}}-{{item.max_money}}{{item.unit_id}}</view> | 45 | + <view class='text_bottom'>{{item.min_money}}-{{item.max_money}}{{item.unit_name}}</view> |
46 | </view> | 46 | </view> |
47 | </view> | 47 | </view> |
48 | 48 |
@@ -18,8 +18,10 @@ Page({ | @@ -18,8 +18,10 @@ Page({ | ||
18 | station_1: '', | 18 | station_1: '', |
19 | education_1: '', | 19 | education_1: '', |
20 | salary_1: '', | 20 | salary_1: '', |
21 | - categories_id:'', | 21 | + categories_id: 5, |
22 | categories_name:'', | 22 | categories_name:'', |
23 | + user_id: '', | ||
24 | + | ||
23 | 25 | ||
24 | district:'', | 26 | district:'', |
25 | // 获取经纬度 | 27 | // 获取经纬度 |
@@ -45,16 +47,25 @@ Page({ | @@ -45,16 +47,25 @@ Page({ | ||
45 | indicatorActiveColor: "rgba(255,255,255,1)", //当前选中的指示点颜色 | 47 | indicatorActiveColor: "rgba(255,255,255,1)", //当前选中的指示点颜色 |
46 | // 导航选择 | 48 | // 导航选择 |
47 | navbar: [{ | 49 | navbar: [{ |
48 | - name: '地区' | 50 | + name: '地区', |
51 | + img:'../../img/aicon_11@2x.png', | ||
52 | + img1: "../../img/aicon_59@2x.png" | ||
49 | }, | 53 | }, |
50 | { | 54 | { |
51 | - name: '岗位' | 55 | + name: '岗位', |
56 | + img: '../../img/aicon_11@2x.png', | ||
57 | + img1: "../../img/aicon_59@2x.png" | ||
52 | }, | 58 | }, |
53 | { | 59 | { |
54 | - name: '推荐排序' | 60 | + name: '推荐排序', |
61 | + img: '../../img/aicon_11@2x.png', | ||
62 | + img1: "../../img/aicon_59@2x.png" | ||
55 | }, | 63 | }, |
56 | { | 64 | { |
57 | - name: '筛选' | 65 | + name: '筛选', |
66 | + img: '../../img/aicon_12@2x.png', | ||
67 | + img1: '../../img/aicon_12@2x.png', | ||
68 | + | ||
58 | } | 69 | } |
59 | ], | 70 | ], |
60 | currentTab: 0, | 71 | currentTab: 0, |
@@ -198,16 +209,28 @@ Page({ | @@ -198,16 +209,28 @@ Page({ | ||
198 | mask: true | 209 | mask: true |
199 | }) | 210 | }) |
200 | }, | 211 | }, |
212 | + mask_close() { | ||
213 | + this.setData({ | ||
214 | + mask: false | ||
215 | + }) | ||
216 | + console.log(222242424) | ||
217 | + }, | ||
201 | // 点击确定后关闭筛选遮罩层 | 218 | // 点击确定后关闭筛选遮罩层 |
202 | toConfirm(){ | 219 | toConfirm(){ |
203 | this.setData({ | 220 | this.setData({ |
204 | mask: false | 221 | mask: false |
205 | }) | 222 | }) |
223 | + | ||
206 | }, | 224 | }, |
207 | // 跳转岗位信息 | 225 | // 跳转岗位信息 |
208 | - toPosition(){ | 226 | + toPosition(e) { |
227 | + console.log(e) | ||
228 | + // 绑定id跳转至工作详情 | ||
229 | + | ||
230 | + let that = this; | ||
231 | + let id = e.currentTarget.dataset.id; | ||
209 | wx.navigateTo({ | 232 | wx.navigateTo({ |
210 | - url: '/pages/positionDetails/positionDetails', | 233 | + url: '/pages/positionDetails/positionDetails?id=' + id, |
211 | }) | 234 | }) |
212 | }, | 235 | }, |
213 | // 跳转招聘者信息 | 236 | // 跳转招聘者信息 |
@@ -216,6 +239,16 @@ Page({ | @@ -216,6 +239,16 @@ Page({ | ||
216 | url: '/pages/employerDetails/employerDetails', | 239 | url: '/pages/employerDetails/employerDetails', |
217 | }) | 240 | }) |
218 | }, | 241 | }, |
242 | + // 跳转至搜索页面 | ||
243 | + toSearch(){ | ||
244 | + wx.navigateTo({ | ||
245 | + url: '/pages/index/search_2/search_2', | ||
246 | + }) | ||
247 | + }, | ||
248 | + | ||
249 | + | ||
250 | + | ||
251 | + // ----- 更新简历 ----- | ||
219 | /** | 252 | /** |
220 | * 生命周期函数--监听页面加载 | 253 | * 生命周期函数--监听页面加载 |
221 | */ | 254 | */ |
@@ -231,10 +264,13 @@ Page({ | @@ -231,10 +264,13 @@ Page({ | ||
231 | this.getJobs() | 264 | this.getJobs() |
232 | }, | 265 | }, |
233 | 266 | ||
267 | + | ||
268 | + | ||
234 | getJobs() { | 269 | getJobs() { |
235 | let that = this; | 270 | let that = this; |
236 | let url = 'index/job/jobs'; | 271 | let url = 'index/job/jobs'; |
237 | let params = { | 272 | let params = { |
273 | + categories_id: that.data.categories_id, | ||
238 | } | 274 | } |
239 | let header = { | 275 | let header = { |
240 | "XX-Token": wx.getStorageSync('token'), | 276 | "XX-Token": wx.getStorageSync('token'), |
@@ -245,9 +281,11 @@ Page({ | @@ -245,9 +281,11 @@ Page({ | ||
245 | // 获取值 | 281 | // 获取值 |
246 | that.setData({ | 282 | that.setData({ |
247 | // personal: res.data | 283 | // personal: res.data |
248 | - jobs: res.data | 284 | + jobs: res.data, |
285 | + industry_id:res.data[0].industry_id | ||
249 | }) | 286 | }) |
250 | 287 | ||
288 | + | ||
251 | }).catch((err) => { | 289 | }).catch((err) => { |
252 | 290 | ||
253 | }) | 291 | }) |
@@ -308,8 +346,10 @@ Page({ | @@ -308,8 +346,10 @@ Page({ | ||
308 | job_Tap: function(e) { | 346 | job_Tap: function(e) { |
309 | console.log(88) | 347 | console.log(88) |
310 | let that = this; | 348 | let that = this; |
349 | + let industry_id = e.currentTarget.dataset.industry_id | ||
311 | this.setData({ | 350 | this.setData({ |
312 | jobTab: e.currentTarget.dataset.idjob, | 351 | jobTab: e.currentTarget.dataset.idjob, |
352 | + industry_id: industry_id | ||
313 | }) | 353 | }) |
314 | }, | 354 | }, |
315 | // 行业选择 | 355 | // 行业选择 |
@@ -345,15 +385,43 @@ Page({ | @@ -345,15 +385,43 @@ Page({ | ||
345 | }) | 385 | }) |
346 | }, | 386 | }, |
347 | 387 | ||
348 | - // 报名成功 | ||
349 | - regSuccess(){ | ||
350 | - wx.navigateTo({ | ||
351 | - url: '/pages/regSuccess/regSuccess', | 388 | + // 去报名 |
389 | + toApply() { | ||
390 | + | ||
391 | + let that = this; | ||
392 | + let url = 'index/job/job_apply'; | ||
393 | + | ||
394 | + // 通过parmas传值给后端 | ||
395 | + let params = { | ||
396 | + city: that.data.city, | ||
397 | + } | ||
398 | + let header = { | ||
399 | + "XX-Token": wx.getStorageSync('token'), | ||
400 | + "XX-Device-Type": 'wxapp' | ||
401 | + } | ||
402 | + app.post(url, params, header).then((res) => { | ||
403 | + | ||
404 | + console.log(res); | ||
405 | + that.setData({ | ||
406 | + city_1: res.data | ||
407 | + }) | ||
408 | + | ||
409 | + }).catch((err) => { | ||
410 | + | ||
352 | }) | 411 | }) |
353 | }, | 412 | }, |
354 | 413 | ||
355 | 414 | ||
356 | 415 | ||
416 | + // 报名成功 | ||
417 | + // regSuccess(){ | ||
418 | + // wx.navigateTo({ | ||
419 | + // url: '/pages/regSuccess/regSuccess', | ||
420 | + // }) | ||
421 | + // }, | ||
422 | + | ||
423 | + | ||
424 | + | ||
357 | /** | 425 | /** |
358 | * 生命周期函数--监听页面初次渲染完成 | 426 | * 生命周期函数--监听页面初次渲染完成 |
359 | */ | 427 | */ |
@@ -10,11 +10,11 @@ | @@ -10,11 +10,11 @@ | ||
10 | </view> | 10 | </view> |
11 | </view> | 11 | </view> |
12 | <!-- 右边搜索框 --> | 12 | <!-- 右边搜索框 --> |
13 | - <view class='top_right'> | 13 | + <view class='top_right' bindtap='toSearch'> |
14 | <view class='top_right_pic'> | 14 | <view class='top_right_pic'> |
15 | <image src='/img/aicon_02@2x.png'></image> | 15 | <image src='/img/aicon_02@2x.png'></image> |
16 | </view> | 16 | </view> |
17 | - <input placeholder='搜索岗位/招聘者'></input> | 17 | + <view class='top_right_text'>搜索岗位/招聘者</view> |
18 | </view> | 18 | </view> |
19 | </view> | 19 | </view> |
20 | <!-- 中部选择 --> | 20 | <!-- 中部选择 --> |
@@ -127,7 +127,7 @@ | @@ -127,7 +127,7 @@ | ||
127 | </view> | 127 | </view> |
128 | <!-- 条目 --> | 128 | <!-- 条目 --> |
129 | <view class='items'> | 129 | <view class='items'> |
130 | - <view class='item' bindtap='toPosition' > | 130 | + <view class='item' bindtap='toPosition' wx:for='{{jobs}}' wx:key='' data-id="{{item.id}}"> |
131 | <!-- 头部 --> | 131 | <!-- 头部 --> |
132 | <view class='item_top'> | 132 | <view class='item_top'> |
133 | <view class='item_top_left'> | 133 | <view class='item_top_left'> |
@@ -135,12 +135,12 @@ | @@ -135,12 +135,12 @@ | ||
135 | <image src='/img/aicon_08@2x.png'></image> | 135 | <image src='/img/aicon_08@2x.png'></image> |
136 | </view> | 136 | </view> |
137 | <view class='item_top_left_text'> | 137 | <view class='item_top_left_text'> |
138 | - <view class='text_top'>酒店服务员</view> | ||
139 | - <view class='text_bottom'>4000-5000元/月</view> | 138 | + <view class='text_top'>{{item.station_name}}</view> |
139 | + <view class='text_bottom'>{{item.min_money}}-{{item.max_money}}{{item.unit_name}}</view> | ||
140 | </view> | 140 | </view> |
141 | </view> | 141 | </view> |
142 | 142 | ||
143 | - <view class='item_top_right' bindtap='regSuccess'> | 143 | + <view class='item_top_right' bindtap='toApply'> |
144 | 报名 | 144 | 报名 |
145 | </view> | 145 | </view> |
146 | </view> | 146 | </view> |
@@ -151,7 +151,7 @@ | @@ -151,7 +151,7 @@ | ||
151 | <image src='/img/aicon_10@2x.png'></image> | 151 | <image src='/img/aicon_10@2x.png'></image> |
152 | </view> | 152 | </view> |
153 | <!-- 名字 --> | 153 | <!-- 名字 --> |
154 | - <view>王思迪</view> | 154 | + <view>{{item.describe}}</view> |
155 | </view> | 155 | </view> |
156 | 156 | ||
157 | <view class='item_bottom_right'> | 157 | <view class='item_bottom_right'> |
@@ -162,127 +162,27 @@ | @@ -162,127 +162,27 @@ | ||
162 | </view> | 162 | </view> |
163 | </view> | 163 | </view> |
164 | </view> | 164 | </view> |
165 | - <view class='item' bindtap='toPosition'> | ||
166 | - <!-- 头部 --> | ||
167 | - <view class='item_top'> | ||
168 | - <view class='item_top_left'> | ||
169 | - <view class='item_top_left_pic'> | ||
170 | - <image src='/img/aicon_08@2x.png'></image> | ||
171 | - </view> | ||
172 | - <view class='item_top_left_text'> | ||
173 | - <view class='text_top'>酒店服务员</view> | ||
174 | - <view class='text_bottom'>4000-5000元/月</view> | ||
175 | - </view> | ||
176 | - </view> | ||
177 | 165 | ||
178 | - <view class='item_top_right' bindtap='regSuccess'> | ||
179 | - 报名 | ||
180 | - </view> | ||
181 | - </view> | ||
182 | - <!-- 底部 --> | ||
183 | - <view class='item_bottom'> | ||
184 | - <view class='item_bottom_left'> | ||
185 | - <view class='item_bottom_left_pic'> | ||
186 | - <image src='/img/aicon_10@2x.png'></image> | ||
187 | - </view> | ||
188 | - <!-- 名字 --> | ||
189 | - <view>王思迪</view> | ||
190 | - </view> | ||
191 | 166 | ||
192 | - <view class='item_bottom_right'> | ||
193 | - <view class='item_bottom_left_pic'> | ||
194 | - <image src='/img/aicon_09@2x.png'></image> | ||
195 | - </view> | ||
196 | - <view>南开区 3.2km</view> | ||
197 | - </view> | ||
198 | - </view> | ||
199 | - </view> | ||
200 | - <view class='item' bindtap='toPosition'> | ||
201 | - <!-- 头部 --> | ||
202 | - <view class='item_top'> | ||
203 | - <view class='item_top_left'> | ||
204 | - <view class='item_top_left_pic'> | ||
205 | - <image src='/img/aicon_08@2x.png'></image> | ||
206 | - </view> | ||
207 | - <view class='item_top_left_text'> | ||
208 | - <view class='text_top'>酒店服务员</view> | ||
209 | - <view class='text_bottom'>4000-5000元/月</view> | ||
210 | - </view> | ||
211 | - </view> | ||
212 | - | ||
213 | - <view class='item_top_right' bindtap='regSuccess'> | ||
214 | - 报名 | ||
215 | - </view> | ||
216 | - </view> | ||
217 | - <!-- 底部 --> | ||
218 | - <view class='item_bottom'> | ||
219 | - <view class='item_bottom_left'> | ||
220 | - <view class='item_bottom_left_pic'> | ||
221 | - <image src='/img/aicon_10@2x.png'></image> | ||
222 | - </view> | ||
223 | - <!-- 名字 --> | ||
224 | - <view>王思迪</view> | ||
225 | - </view> | ||
226 | - | ||
227 | - <view class='item_bottom_right'> | ||
228 | - <view class='item_bottom_left_pic'> | ||
229 | - <image src='/img/aicon_09@2x.png'></image> | ||
230 | - </view> | ||
231 | - <view>南开区 3.2km</view> | ||
232 | - </view> | ||
233 | - </view> | ||
234 | - </view> | ||
235 | - <view class='item' bindtap='toPosition'> | ||
236 | - <!-- 头部 --> | ||
237 | - <view class='item_top'> | ||
238 | - <view class='item_top_left'> | ||
239 | - <view class='item_top_left_pic'> | ||
240 | - <image src='/img/aicon_08@2x.png'></image> | ||
241 | - </view> | ||
242 | - <view class='item_top_left_text'> | ||
243 | - <view class='text_top'>酒店服务员</view> | ||
244 | - <view class='text_bottom'>4000-5000元/月</view> | ||
245 | - </view> | ||
246 | - </view> | ||
247 | - | ||
248 | - <view class='item_top_right' bindtap='regSuccess'> | ||
249 | - 报名 | ||
250 | - </view> | ||
251 | - </view> | ||
252 | - <!-- 底部 --> | ||
253 | - <view class='item_bottom'> | ||
254 | - <view class='item_bottom_left'> | ||
255 | - <view class='item_bottom_left_pic'> | ||
256 | - <image src='/img/aicon_10@2x.png'></image> | ||
257 | - </view> | ||
258 | - <!-- 名字 --> | ||
259 | - <view>王思迪</view> | ||
260 | - </view> | ||
261 | - | ||
262 | - <view class='item_bottom_right'> | ||
263 | - <view class='item_bottom_left_pic'> | ||
264 | - <image src='/img/aicon_09@2x.png'></image> | ||
265 | - </view> | ||
266 | - <view>南开区 3.2km</view> | ||
267 | - </view> | ||
268 | - </view> | ||
269 | - </view> | ||
270 | 167 | ||
271 | </view> | 168 | </view> |
272 | 169 | ||
273 | <!------- 筛选弹层-------> | 170 | <!------- 筛选弹层-------> |
274 | - <view class='mask' wx:if='{{mask}}'> | 171 | + <view class='mask' wx:if='{{mask}}' bindtap='mask_close'> |
275 | 172 | ||
276 | <view class="select mask_select"> | 173 | <view class="select mask_select"> |
277 | -<view wx:for="{{navbar}}" data-idx="{{index}}" class="select_list {{currentTab==index ? 'active' : ''}}" wx:key="unique" bindtap="navbarTap" data-categoryid="{{item.id}}">{{item.name}} | ||
278 | - | 174 | +<view wx:for="{{navbar}}" data-idx="{{index}}" class="select_list {{currentTab==index ? 'active' : ''}}" wx:key="unique" catchtap="navbarTap" data-categoryid="{{item.id}}">{{item.name}} |
175 | + <view class='select_pic'> | ||
176 | + <image src="{{currentTab==index?item.img1:item.img}}"></image> | ||
177 | + <!-- <image src='../../img/aicon_11@2x.png'></image> --> | ||
178 | + </view> | ||
279 | </view> | 179 | </view> |
280 | </view> | 180 | </view> |
281 | 181 | ||
282 | <!-- 地区内容 --> | 182 | <!-- 地区内容 --> |
283 | <view class='area' wx:if="{{currentTab==0}}"> | 183 | <view class='area' wx:if="{{currentTab==0}}"> |
284 | <view class="area_item"> | 184 | <view class="area_item"> |
285 | -<view wx:for="{{city_1}}" data-idarea="{{index}}" class="area_item_name {{areaTab==index ? 'active' : ''}}" wx:key="unique" bindtap="area_Tap" data-categoryid="{{item.id}}">{{item.name}} | 185 | +<view wx:for="{{city_1}}" data-idarea="{{index}}" class="area_item_name {{areaTab==index ? 'active' : ''}}" wx:key="unique" catchtap="area_Tap" data-categoryid="{{item.id}}">{{item.name}} |
286 | 186 | ||
287 | </view> | 187 | </view> |
288 | </view> | 188 | </view> |
@@ -311,8 +211,7 @@ | @@ -311,8 +211,7 @@ | ||
311 | <!-- 岗位内容 --> | 211 | <!-- 岗位内容 --> |
312 | <view class='job' wx:if="{{currentTab==1}}"> | 212 | <view class='job' wx:if="{{currentTab==1}}"> |
313 | <view class="job_left"> | 213 | <view class="job_left"> |
314 | - <view wx:for="{{industry_1}}" data-idjob="{{index}}" class="job_left_item {{jobTab==index ? 'pitch_on' : ''}}" wx:key="unique" bindtap="job_Tap" data-categoryid="{{item.id}}">{{item.industry_name}} | ||
315 | - | 214 | + <view wx:for="{{industry_1}}" data-idjob="{{index}}" class="job_left_item {{jobTab==index ? 'pitch_on' : ''}}" wx:key="unique" catchtap="job_Tap" data-industry_id='{{item.industry_id}}' data-categoryid="{{item.id}}">{{item.industry_name}} |
316 | </view> | 215 | </view> |
317 | </view> | 216 | </view> |
318 | 217 | ||
@@ -332,7 +231,7 @@ | @@ -332,7 +231,7 @@ | ||
332 | 231 | ||
333 | <view class='job_right'> | 232 | <view class='job_right'> |
334 | <view class='job_right_items' wx:if='{{jobTab==0}}'> | 233 | <view class='job_right_items' wx:if='{{jobTab==0}}'> |
335 | - <view wx:for="{{probar}}" data-idpro="{{index}}" class="job_right_item {{proTab==index ? 'yellow_color' : ''}}" wx:key="unique" bindtap="pro_Tap" data-categoryid="{{item.id}}">{{item.pro}} | 234 | + <view wx:for="{{probar}}" data-idpro="{{index}}" class="job_right_item {{proTab==index ? 'yellow_color' : ''}}" wx:key="unique" catchtap="pro_Tap" data-categoryid="{{item.id}}">{{item.pro}} |
336 | 235 | ||
337 | </view> | 236 | </view> |
338 | 237 | ||
@@ -363,7 +262,7 @@ | @@ -363,7 +262,7 @@ | ||
363 | 262 | ||
364 | <!-- 推荐排序 --> | 263 | <!-- 推荐排序 --> |
365 | <view class='sort' wx:if="{{currentTab==2}}"> | 264 | <view class='sort' wx:if="{{currentTab==2}}"> |
366 | - <view wx:for="{{sortbar}}" data-idsort="{{index}}" class="sort_item {{sortTab==index ? 'color_y' : ''}}" wx:key="unique" bindtap="sort_Tap" data-categoryid="{{item.id}}">{{item.sort}} | 265 | + <view wx:for="{{sortbar}}" data-idsort="{{index}}" class="sort_item {{sortTab==index ? 'color_y' : ''}}" wx:key="unique" catchtap="sort_Tap" data-categoryid="{{item.id}}">{{item.sort}} |
367 | 266 | ||
368 | </view> | 267 | </view> |
369 | 268 | ||
@@ -381,7 +280,7 @@ | @@ -381,7 +280,7 @@ | ||
381 | <view class='screen_item'> | 280 | <view class='screen_item'> |
382 | <view class='screen_item_top'> 学历要求 | 281 | <view class='screen_item_top'> 学历要求 |
383 | <view class="screen_item_bottom"> | 282 | <view class="screen_item_bottom"> |
384 | - <view wx:for="{{education_1}}" data-idscreen="{{index}}" class="screen_item_bottom_i {{screenTab==index ? 'yellow_color' : ''}}" wx:key="unique" bindtap="screen_Tap" data-categoryid="{{item.id}}">{{item.education_name}} | 283 | + <view wx:for="{{education_1}}" data-idscreen="{{index}}" class="screen_item_bottom_i {{screenTab==index ? 'yellow_color' : ''}}" wx:key="unique" catchtap="screen_Tap" data-categoryid="{{item.id}}">{{item.education_name}} |
385 | 284 | ||
386 | </view> | 285 | </view> |
387 | </view> | 286 | </view> |
@@ -441,7 +340,7 @@ | @@ -441,7 +340,7 @@ | ||
441 | </view> | 340 | </view> |
442 | 341 | ||
443 | <!-- 简历遮盖层 --> | 342 | <!-- 简历遮盖层 --> |
444 | - <view class='mask2' style='display:none'> | 343 | + <view class='mask2' style='display:flex'> |
445 | <view class='mask2_mid'> | 344 | <view class='mask2_mid'> |
446 | <!-- 关闭 --> | 345 | <!-- 关闭 --> |
447 | <view class='mask2_close'> | 346 | <view class='mask2_close'> |
@@ -37,6 +37,22 @@ page{ | @@ -37,6 +37,22 @@ page{ | ||
37 | width: 100%; | 37 | width: 100%; |
38 | height: 100%; | 38 | height: 100%; |
39 | } | 39 | } |
40 | +.select_pic{ | ||
41 | + margin-left: 8rpx; | ||
42 | + width:12rpx; | ||
43 | + height:8rpx; | ||
44 | + display: flex; | ||
45 | +} | ||
46 | +.select_pic image{ | ||
47 | + width: 100%; | ||
48 | + height: 100%; | ||
49 | +} | ||
50 | +.select_list:last-child .select_pic{ | ||
51 | + width: 18rpx; | ||
52 | + height: 18rpx; | ||
53 | + display: flex | ||
54 | +} | ||
55 | + | ||
40 | .top_right{ | 56 | .top_right{ |
41 | /* margin-left: 30rpx; */ | 57 | /* margin-left: 30rpx; */ |
42 | display: flex; | 58 | display: flex; |
@@ -58,6 +74,14 @@ page{ | @@ -58,6 +74,14 @@ page{ | ||
58 | width: 100%; | 74 | width: 100%; |
59 | height: 100%; | 75 | height: 100%; |
60 | } | 76 | } |
77 | +.top_right_text{ | ||
78 | + margin-left: 25rpx; | ||
79 | + font-size:26rpx; | ||
80 | + font-family:PingFang-SC-Medium; | ||
81 | + font-weight:500; | ||
82 | + color:rgba(153,153,153,1); | ||
83 | + /* line-height:24px; */ | ||
84 | +} | ||
61 | .top_right input{ | 85 | .top_right input{ |
62 | margin-left: 25rpx; | 86 | margin-left: 25rpx; |
63 | width: 100%; | 87 | width: 100%; |
@@ -337,6 +361,7 @@ page{ | @@ -337,6 +361,7 @@ page{ | ||
337 | background:rgba(255,255,255,1); | 361 | background:rgba(255,255,255,1); |
338 | border-radius:5rpx; | 362 | border-radius:5rpx; |
339 | font-size: 26rpx; | 363 | font-size: 26rpx; |
364 | + /* border: 1px solid transparent; */ | ||
340 | } | 365 | } |
341 | .sort{ | 366 | .sort{ |
342 | display: flex; | 367 | display: flex; |
1 | // pages/index/search_2/search_2.js | 1 | // pages/index/search_2/search_2.js |
2 | +const app = getApp(); | ||
2 | Page({ | 3 | Page({ |
3 | 4 | ||
4 | /** | 5 | /** |
5 | * 页面的初始数据 | 6 | * 页面的初始数据 |
6 | */ | 7 | */ |
7 | data: { | 8 | data: { |
9 | + history_keyword: '', | ||
10 | + hot_station: '', | ||
11 | + hot_boss: '', | ||
12 | + }, | ||
13 | + // 搜索框传值至search_4 | ||
14 | + inputText(e) { | ||
15 | + console.log(e) | ||
16 | + let inputValue = e.detail.value | ||
17 | + wx.navigateTo({ | ||
18 | + url: '/pages/index/search_4/search_4?inputValue=' + inputValue, | ||
19 | + }) | ||
20 | + | ||
21 | + }, | ||
22 | + | ||
23 | + // 点击搜索历史跳转 | ||
24 | + toSearch(e) { | ||
25 | + console.log(e) | ||
26 | + let keyWord = e.currentTarget.dataset.keyword | ||
27 | + // let station_name = e.currentTarget.dataset.station_name | ||
28 | + // let resume_name = e.currentTarget.dataset.resume_name | ||
29 | + wx.navigateTo({ | ||
30 | + url: '/pages/index/search_4/search_4?inputValue=' + keyWord | ||
31 | + }) | ||
32 | + // console.log(resume_name) | ||
8 | 33 | ||
9 | }, | 34 | }, |
10 | 35 | ||
36 | + | ||
11 | /** | 37 | /** |
12 | * 生命周期函数--监听页面加载 | 38 | * 生命周期函数--监听页面加载 |
13 | */ | 39 | */ |
14 | onLoad: function (options) { | 40 | onLoad: function (options) { |
41 | + console.log(options) | ||
42 | + }, | ||
43 | + | ||
44 | + // 获取搜索历史记录 | ||
45 | + history() { | ||
46 | + let that = this; | ||
47 | + let url = 'index/category/history_keyword'; | ||
48 | + let params = { | ||
49 | + | ||
50 | + } | ||
51 | + let header = { | ||
52 | + "XX-Token": wx.getStorageSync('token'), | ||
53 | + "XX-Device-Type": 'wxapp' | ||
54 | + } | ||
55 | + app.post(url, params, header).then((res) => { | ||
56 | + console.log(res); | ||
57 | + // 获取值 | ||
58 | + that.setData({ | ||
59 | + | ||
60 | + history_keyword: res.data | ||
61 | + }) | ||
62 | + | ||
63 | + }).catch((err) => { | ||
15 | 64 | ||
65 | + }) | ||
16 | }, | 66 | }, |
67 | + // 清空历史记录 | ||
68 | + clear_history() { | ||
69 | + let that = this; | ||
70 | + let url = 'index/category/history_del'; | ||
71 | + let params = { | ||
72 | + | ||
73 | + } | ||
74 | + let header = { | ||
75 | + "XX-Token": wx.getStorageSync('token'), | ||
76 | + "XX-Device-Type": 'wxapp' | ||
77 | + } | ||
78 | + app.post(url, params, header).then((res) => { | ||
79 | + console.log(res); | ||
80 | + // 提示功能 | ||
81 | + wx.showToast({ | ||
82 | + title: '删除成功', | ||
83 | + icon: 'none', | ||
84 | + duration: 1500 | ||
85 | + }) | ||
86 | + setTimeout(function(){ | ||
87 | + // wx.navigateTo({ | ||
88 | + // url: '/pages/index/search_2/search_2', | ||
89 | + // }) | ||
90 | + that.history() | ||
91 | + },1000) | ||
92 | + }).catch((err) => { | ||
93 | + | ||
94 | + }) | ||
95 | + }, | ||
96 | + | ||
97 | + // 获取热门搜索 | ||
98 | + hot_search() { | ||
99 | + let that = this; | ||
100 | + let url = 'index/category/hot_search'; | ||
101 | + let params = { | ||
102 | + | ||
103 | + } | ||
104 | + let header = { | ||
105 | + "XX-Token": wx.getStorageSync('token'), | ||
106 | + "XX-Device-Type": 'wxapp' | ||
107 | + } | ||
108 | + app.post(url, params, header).then((res) => { | ||
109 | + console.log(res); | ||
110 | + that.setData({ | ||
111 | + hot_station: res.data.hot_station, | ||
112 | + hot_boss: res.data.hot_boss, | ||
113 | + }) | ||
114 | + console.log(res.data.hot_boss) | ||
115 | + | ||
116 | + }).catch((err) => { | ||
117 | + | ||
118 | + }) | ||
119 | + // console.log(that.hot_station) | ||
120 | + }, | ||
121 | + | ||
17 | 122 | ||
18 | /** | 123 | /** |
19 | * 生命周期函数--监听页面初次渲染完成 | 124 | * 生命周期函数--监听页面初次渲染完成 |
@@ -25,8 +130,10 @@ Page({ | @@ -25,8 +130,10 @@ Page({ | ||
25 | /** | 130 | /** |
26 | * 生命周期函数--监听页面显示 | 131 | * 生命周期函数--监听页面显示 |
27 | */ | 132 | */ |
133 | + // 一进页面就执行此函数 | ||
28 | onShow: function () { | 134 | onShow: function () { |
29 | - | 135 | + this.history() |
136 | + this.hot_search() | ||
30 | }, | 137 | }, |
31 | 138 | ||
32 | /** | 139 | /** |
@@ -6,7 +6,7 @@ | @@ -6,7 +6,7 @@ | ||
6 | <view class='top_pic'> | 6 | <view class='top_pic'> |
7 | <image src='../../../img/aicon_02@2x.png'></image> | 7 | <image src='../../../img/aicon_02@2x.png'></image> |
8 | </view> | 8 | </view> |
9 | - <input placeholder='搜索岗位/招聘者'></input> | 9 | + <input placeholder='搜索岗位/招聘者' bindblur='inputText'></input> |
10 | </view> | 10 | </view> |
11 | </view> | 11 | </view> |
12 | 12 | ||
@@ -14,13 +14,15 @@ | @@ -14,13 +14,15 @@ | ||
14 | <view class='item'> | 14 | <view class='item'> |
15 | <view class='item_top'> | 15 | <view class='item_top'> |
16 | <view class='item_top_left'>搜索历史</view> | 16 | <view class='item_top_left'>搜索历史</view> |
17 | - <view class='item_top_right'> | 17 | + <view class='item_top_right' bindtap='clear_history'> |
18 | <image src='../../../img/aicon_17@2x.png'></image> | 18 | <image src='../../../img/aicon_17@2x.png'></image> |
19 | </view> | 19 | </view> |
20 | </view> | 20 | </view> |
21 | - <!-- 底部 --> | ||
22 | - <view class='item_bottom'> | ||
23 | - <view class='item_bottom_content'>泥瓦工</view> | 21 | + <!-- 底部 循环搜索历史--> |
22 | + <view class='item_bottom' > | ||
23 | + <view class='item_bottom_content' wx:for='{{history_keyword}}' wx:key='' | ||
24 | + bindtap='toSearch' data-keyword='{{item.keyword}}'> | ||
25 | + {{item.keyword}}</view> | ||
24 | </view> | 26 | </view> |
25 | </view> | 27 | </view> |
26 | 28 | ||
@@ -30,15 +32,11 @@ | @@ -30,15 +32,11 @@ | ||
30 | 32 | ||
31 | </view> | 33 | </view> |
32 | <!-- 底部 --> | 34 | <!-- 底部 --> |
33 | - <view class='item_bottom'> | ||
34 | - <view class='item_bottom_content'>服务员</view> | ||
35 | - <view class='item_bottom_content'>司机</view> | ||
36 | - <view class='item_bottom_content'>前台</view> | ||
37 | - <view class='item_bottom_content'>快递员</view> | ||
38 | - <view class='item_bottom_content'>服务员</view> | ||
39 | - <view class='item_bottom_content'>司机</view> | ||
40 | - <view class='item_bottom_content'>前台</view> | ||
41 | - <view class='item_bottom_content'>快递员</view> | 35 | + <view class='item_bottom' wx:for='{{hot_station}}' wx:key='' bindtap='toSearch' data-keyword='{{item.station_name}}'> |
36 | + <view class='item_bottom_content'>{{item.station_name}}</view> | ||
37 | + <!-- <view class='item_bottom_content'>司机</view> | ||
38 | + <view class='item_bottom_content'>前台</view> --> | ||
39 | + | ||
42 | </view> | 40 | </view> |
43 | </view> | 41 | </view> |
44 | 42 | ||
@@ -48,9 +46,9 @@ | @@ -48,9 +46,9 @@ | ||
48 | 46 | ||
49 | </view> | 47 | </view> |
50 | <!-- 底部 --> | 48 | <!-- 底部 --> |
51 | - <view class='item_bottom'> | ||
52 | - <view class='item_bottom_content'>服务员</view> | ||
53 | - <view class='item_bottom_content'>天津银河百荣科技有限公司</view> | 49 | + <view class='item_bottom' > |
50 | + <view class='item_bottom_content' wx:for='{{hot_boss}}' wx:key='' bindtap='toSearch' data-keyword='{{item.resume_name}}'>{{item.resume_name}}</view> | ||
51 | + <!-- <view class='item_bottom_content'>天津银河百荣科技有限公司</view> --> | ||
54 | 52 | ||
55 | </view> | 53 | </view> |
56 | </view> | 54 | </view> |
pages/index/search_3/search_3.js
已删除
100644 → 0
1 | -// pages/index/search_3/search_3.js | ||
2 | -Page({ | ||
3 | - | ||
4 | - /** | ||
5 | - * 页面的初始数据 | ||
6 | - */ | ||
7 | - data: { | ||
8 | - | ||
9 | - }, | ||
10 | - | ||
11 | - /** | ||
12 | - * 生命周期函数--监听页面加载 | ||
13 | - */ | ||
14 | - onLoad: function (options) { | ||
15 | - | ||
16 | - }, | ||
17 | - | ||
18 | - /** | ||
19 | - * 生命周期函数--监听页面初次渲染完成 | ||
20 | - */ | ||
21 | - onReady: function () { | ||
22 | - | ||
23 | - }, | ||
24 | - | ||
25 | - /** | ||
26 | - * 生命周期函数--监听页面显示 | ||
27 | - */ | ||
28 | - onShow: function () { | ||
29 | - | ||
30 | - }, | ||
31 | - | ||
32 | - /** | ||
33 | - * 生命周期函数--监听页面隐藏 | ||
34 | - */ | ||
35 | - onHide: function () { | ||
36 | - | ||
37 | - }, | ||
38 | - | ||
39 | - /** | ||
40 | - * 生命周期函数--监听页面卸载 | ||
41 | - */ | ||
42 | - onUnload: function () { | ||
43 | - | ||
44 | - }, | ||
45 | - | ||
46 | - /** | ||
47 | - * 页面相关事件处理函数--监听用户下拉动作 | ||
48 | - */ | ||
49 | - onPullDownRefresh: function () { | ||
50 | - | ||
51 | - }, | ||
52 | - | ||
53 | - /** | ||
54 | - * 页面上拉触底事件的处理函数 | ||
55 | - */ | ||
56 | - onReachBottom: function () { | ||
57 | - | ||
58 | - }, | ||
59 | - | ||
60 | - /** | ||
61 | - * 用户点击右上角分享 | ||
62 | - */ | ||
63 | - onShareAppMessage: function () { | ||
64 | - | ||
65 | - } | ||
66 | -}) |
pages/index/search_3/search_3.json
已删除
100644 → 0
pages/index/search_3/search_3.wxml
已删除
100644 → 0
1 | - | ||
2 | - | ||
3 | -<view class='container'> | ||
4 | - <view class='top'> | ||
5 | - <view class='top_box'> | ||
6 | - <view class='top_pic'> | ||
7 | - <image src='../../../img/aicon_02@2x.png'></image> | ||
8 | - </view> | ||
9 | - <input placeholder='搜索岗位/招聘者'></input> | ||
10 | - </view> | ||
11 | - </view> | ||
12 | - | ||
13 | - <!-- 相关岗位 --> | ||
14 | - <view class='about'> | ||
15 | - 相关岗位 | ||
16 | - </view> | ||
17 | - | ||
18 | - <!-- 条目 --> | ||
19 | - <view class='items'> | ||
20 | - <view class='item'> | ||
21 | - <!-- 头部 --> | ||
22 | - <view class='item_top'> | ||
23 | - <view class='item_top_left'> | ||
24 | - <view class='item_top_left_pic'> | ||
25 | - <image src='/img/aicon_08@2x.png'></image> | ||
26 | - </view> | ||
27 | - <view class='item_top_left_text'> | ||
28 | - <view class='text_top'>酒店服务员</view> | ||
29 | - <view class='text_bottom'>4000-5000元/月</view> | ||
30 | - </view> | ||
31 | - </view> | ||
32 | - | ||
33 | - <view class='item_top_right'> | ||
34 | - 报名 | ||
35 | - </view> | ||
36 | - </view> | ||
37 | - <!-- 底部 --> | ||
38 | - <view class='item_bottom'> | ||
39 | - <view class='item_bottom_left'> | ||
40 | - <view class='item_bottom_left_pic'> | ||
41 | - <image src='/img/aicon_10@2x.png'></image> | ||
42 | - </view> | ||
43 | - <!-- 名字 --> | ||
44 | - <view>王思迪</view> | ||
45 | - </view> | ||
46 | - | ||
47 | - <view class='item_bottom_right'> | ||
48 | - <view class='item_bottom_left_pic'> | ||
49 | - <image src='/img/aicon_09@2x.png'></image> | ||
50 | - </view> | ||
51 | - <view>南开区 3.2km</view> | ||
52 | - </view> | ||
53 | - </view> | ||
54 | - </view> | ||
55 | - <view class='item'> | ||
56 | - <!-- 头部 --> | ||
57 | - <view class='item_top'> | ||
58 | - <view class='item_top_left'> | ||
59 | - <view class='item_top_left_pic'> | ||
60 | - <image src='/img/aicon_08@2x.png'></image> | ||
61 | - </view> | ||
62 | - <view class='item_top_left_text'> | ||
63 | - <view class='text_top'>酒店服务员</view> | ||
64 | - <view class='text_bottom'>4000-5000元/月</view> | ||
65 | - </view> | ||
66 | - </view> | ||
67 | - | ||
68 | - <view class='item_top_right'> | ||
69 | - 报名 | ||
70 | - </view> | ||
71 | - </view> | ||
72 | - <!-- 底部 --> | ||
73 | - <view class='item_bottom'> | ||
74 | - <view class='item_bottom_left'> | ||
75 | - <view class='item_bottom_left_pic'> | ||
76 | - <image src='/img/aicon_10@2x.png'></image> | ||
77 | - </view> | ||
78 | - <!-- 名字 --> | ||
79 | - <view>王思迪</view> | ||
80 | - </view> | ||
81 | - | ||
82 | - <view class='item_bottom_right'> | ||
83 | - <view class='item_bottom_left_pic'> | ||
84 | - <image src='/img/aicon_09@2x.png'></image> | ||
85 | - </view> | ||
86 | - <view>南开区 3.2km</view> | ||
87 | - </view> | ||
88 | - </view> | ||
89 | - </view> | ||
90 | - <view class='item'> | ||
91 | - <!-- 头部 --> | ||
92 | - <view class='item_top'> | ||
93 | - <view class='item_top_left'> | ||
94 | - <view class='item_top_left_pic'> | ||
95 | - <image src='/img/aicon_08@2x.png'></image> | ||
96 | - </view> | ||
97 | - <view class='item_top_left_text'> | ||
98 | - <view class='text_top'>酒店服务员</view> | ||
99 | - <view class='text_bottom'>4000-5000元/月</view> | ||
100 | - </view> | ||
101 | - </view> | ||
102 | - | ||
103 | - <view class='item_top_right'> | ||
104 | - 报名 | ||
105 | - </view> | ||
106 | - </view> | ||
107 | - <!-- 底部 --> | ||
108 | - <view class='item_bottom'> | ||
109 | - <view class='item_bottom_left'> | ||
110 | - <view class='item_bottom_left_pic'> | ||
111 | - <image src='/img/aicon_10@2x.png'></image> | ||
112 | - </view> | ||
113 | - <!-- 名字 --> | ||
114 | - <view>王思迪</view> | ||
115 | - </view> | ||
116 | - | ||
117 | - <view class='item_bottom_right'> | ||
118 | - <view class='item_bottom_left_pic'> | ||
119 | - <image src='/img/aicon_09@2x.png'></image> | ||
120 | - </view> | ||
121 | - <view>南开区 3.2km</view> | ||
122 | - </view> | ||
123 | - </view> | ||
124 | - </view> | ||
125 | - <view class='item'> | ||
126 | - <!-- 头部 --> | ||
127 | - <view class='item_top'> | ||
128 | - <view class='item_top_left'> | ||
129 | - <view class='item_top_left_pic'> | ||
130 | - <image src='/img/aicon_08@2x.png'></image> | ||
131 | - </view> | ||
132 | - <view class='item_top_left_text'> | ||
133 | - <view class='text_top'>酒店服务员</view> | ||
134 | - <view class='text_bottom'>4000-5000元/月</view> | ||
135 | - </view> | ||
136 | - </view> | ||
137 | - | ||
138 | - <view class='item_top_right'> | ||
139 | - 报名 | ||
140 | - </view> | ||
141 | - </view> | ||
142 | - <!-- 底部 --> | ||
143 | - <view class='item_bottom'> | ||
144 | - <view class='item_bottom_left'> | ||
145 | - <view class='item_bottom_left_pic'> | ||
146 | - <image src='/img/aicon_10@2x.png'></image> | ||
147 | - </view> | ||
148 | - <!-- 名字 --> | ||
149 | - <view>王思迪</view> | ||
150 | - </view> | ||
151 | - | ||
152 | - <view class='item_bottom_right'> | ||
153 | - <view class='item_bottom_left_pic'> | ||
154 | - <image src='/img/aicon_09@2x.png'></image> | ||
155 | - </view> | ||
156 | - <view>南开区 3.2km</view> | ||
157 | - </view> | ||
158 | - </view> | ||
159 | - </view> | ||
160 | - | ||
161 | - </view> | ||
162 | - | ||
163 | - <!-- 提示 --> | ||
164 | - <view class='bottom'> | ||
165 | - 没有更多内容了 | ||
166 | - </view> | ||
167 | - | ||
168 | - | ||
169 | - | ||
170 | -</view> |
pages/index/search_3/search_3.wxss
已删除
100644 → 0
1 | - | ||
2 | - | ||
3 | -page{ | ||
4 | - line-height: 1; | ||
5 | - /* background: #EBEBEB; */ | ||
6 | -} | ||
7 | -.container{ | ||
8 | - display: flex; | ||
9 | - flex-flow: column; | ||
10 | -} | ||
11 | -.top{ | ||
12 | - display: flex; | ||
13 | - align-items: center; | ||
14 | - justify-content: center; | ||
15 | - background: #fff; | ||
16 | - border-top: 1px solid #EBEBEB; | ||
17 | - border-bottom: 1px solid #EBEBEB; | ||
18 | - padding: 24rpx 0; | ||
19 | -} | ||
20 | -.top_box{ | ||
21 | - display: flex; | ||
22 | - align-items: center; | ||
23 | - width:686rpx; | ||
24 | - height:60rpx; | ||
25 | - background:rgba(237,238,242,1); | ||
26 | - border-radius:10rpx; | ||
27 | - box-sizing: border-box; | ||
28 | - padding: 0 24rpx; | ||
29 | -} | ||
30 | -.top_pic{ | ||
31 | - | ||
32 | - width:28rpx; | ||
33 | - height:28rpx; | ||
34 | - display: flex; | ||
35 | -} | ||
36 | -.top_pic image{ | ||
37 | - width: 100%; | ||
38 | - height: 100%; | ||
39 | -} | ||
40 | -.top_box input{ | ||
41 | - margin-left: 25rpx; | ||
42 | - width: 100%; | ||
43 | - height: 100%; | ||
44 | - | ||
45 | - font-size:26rpx; | ||
46 | - font-family:PingFang-SC-Medium; | ||
47 | - font-weight:500; | ||
48 | - color:#000; | ||
49 | -} | ||
50 | - | ||
51 | -.about{ | ||
52 | - | ||
53 | - font-size:30rpx; | ||
54 | - font-family:PingFang-SC-Medium; | ||
55 | - font-weight:500; | ||
56 | - color:rgba(26,26,26,1); | ||
57 | - border-bottom: 1px solid #EBEBEB; | ||
58 | - padding: 24rpx 34rpx 24rpx 55rpx; | ||
59 | - position: relative; | ||
60 | - display: flex; | ||
61 | - align-items: center; | ||
62 | -} | ||
63 | -.about::before{ | ||
64 | - content: ""; | ||
65 | - width:6rpx; | ||
66 | - height:24rpx; | ||
67 | - background:rgba(255,102,0,1); | ||
68 | - position: absolute; | ||
69 | - left: 34rpx; | ||
70 | -} | ||
71 | - | ||
72 | -/* 条目 */ | ||
73 | -.items{ | ||
74 | - display: flex; | ||
75 | - flex-flow: column; | ||
76 | -} | ||
77 | -.item{ | ||
78 | - /* margin-top: 1px; */ | ||
79 | - display: flex; | ||
80 | - flex-flow: column; | ||
81 | - background: #fff; | ||
82 | - padding: 40rpx; | ||
83 | - border-bottom: 1px solid #EBEBEB; | ||
84 | -} | ||
85 | -.item_top{ | ||
86 | - display: flex; | ||
87 | - justify-content: space-between; | ||
88 | -} | ||
89 | -.item_top_left{ | ||
90 | - display: flex; | ||
91 | -} | ||
92 | -.item_top_left_pic{ | ||
93 | - width:72rpx; | ||
94 | - height:72rpx; | ||
95 | - border-radius:2rpx; | ||
96 | - display: flex; | ||
97 | -} | ||
98 | -.item_top_left_pic image{ | ||
99 | - width: 100%; | ||
100 | - height: 100%; | ||
101 | -} | ||
102 | -.item_top_left_text{ | ||
103 | - margin-left: 23rpx; | ||
104 | - display: flex; | ||
105 | - flex-flow: column; | ||
106 | -} | ||
107 | -.text_top{ | ||
108 | - font-size:32rpx; | ||
109 | - font-family:PingFang-SC-Medium; | ||
110 | - font-weight:500; | ||
111 | - color:rgba(26,26,26,1); | ||
112 | -} | ||
113 | -.text_bottom{ | ||
114 | - margin-top: 17rpx; | ||
115 | - font-size:28rpx; | ||
116 | - font-family:PingFang-SC-Medium; | ||
117 | - font-weight:500; | ||
118 | - color:rgba(255,59,40,1); | ||
119 | -} | ||
120 | -.item_top_right{ | ||
121 | - width:140rpx; | ||
122 | - height:66rpx; | ||
123 | - line-height: 66rpx; | ||
124 | - text-align: center; | ||
125 | - border:1px solid rgba(255,102,0,1); | ||
126 | - border-radius:33rpx; | ||
127 | - | ||
128 | - | ||
129 | - font-size:28rpx; | ||
130 | - font-family:PingFang-SC-Medium; | ||
131 | - font-weight:500; | ||
132 | - color:rgba(255,102,0,1); | ||
133 | -} | ||
134 | -.item_bottom{ | ||
135 | - margin-top: 20rpx; | ||
136 | - margin-left: 80rpx; | ||
137 | - display: flex; | ||
138 | - align-items: center; | ||
139 | - justify-content: space-between; | ||
140 | - font-size:26rpx; | ||
141 | - font-family:PingFang-SC-Medium; | ||
142 | - font-weight:500; | ||
143 | - color:rgba(153,153,153,1); | ||
144 | -} | ||
145 | -.item_bottom_left{ | ||
146 | - display: flex; | ||
147 | - align-items: center; | ||
148 | - | ||
149 | -} | ||
150 | -.item_bottom_left_pic{ | ||
151 | - width:22rpx; | ||
152 | - height:22rpx; | ||
153 | - display: flex; | ||
154 | - margin-right: 13rpx; | ||
155 | -} | ||
156 | -.item_bottom_left_pic image{ | ||
157 | - width: 100%; | ||
158 | - height: 100%; | ||
159 | -} | ||
160 | -.item_bottom_right{ | ||
161 | - display: flex; | ||
162 | - align-items: center; | ||
163 | -} | ||
164 | -.item_bottom_left_pic{ | ||
165 | - margin-left: 14rpx; | ||
166 | - width:20rpx; | ||
167 | - height:24rpx; | ||
168 | - display: flex; | ||
169 | -} | ||
170 | -.item_bottom_left_pic image{ | ||
171 | - width: 100%; | ||
172 | - height: 100%; | ||
173 | -} | ||
174 | -.bottom{ | ||
175 | - margin-top: 23rpx; | ||
176 | - text-align: center; | ||
177 | - font-size:24rpx; | ||
178 | - font-family:PingFang-SC-Regular; | ||
179 | - font-weight:400; | ||
180 | - color:rgba(153,153,153,1); | ||
181 | - | ||
182 | -} |
1 | -// pages/index/search_4/search_4.js | 1 | +// pages/index/search_3/search_3.js |
2 | +const app = getApp(); | ||
2 | Page({ | 3 | Page({ |
3 | 4 | ||
4 | /** | 5 | /** |
5 | * 页面的初始数据 | 6 | * 页面的初始数据 |
6 | */ | 7 | */ |
7 | data: { | 8 | data: { |
9 | + search: '', | ||
10 | + | ||
11 | + inputValue: '', | ||
12 | + page1: '', | ||
13 | + page_num1: '', | ||
14 | + page2: '', | ||
15 | + page_num2: '', | ||
16 | + keyword: '', | ||
17 | + search_boss: '', | ||
18 | + search_job: '', | ||
19 | + }, | ||
20 | + | ||
21 | + // 搜索功能 | ||
22 | + inputText(e) { | ||
23 | + console.log(e) | ||
8 | 24 | ||
25 | + let inputValue = e.detail.value | ||
26 | + wx.navigateTo({ | ||
27 | + url: '/pages/index/search_4/search_4?inputValue=' + inputValue, | ||
28 | + }) | ||
29 | + | ||
30 | + }, | ||
31 | + // 相关招聘者 -> 详细信息 | ||
32 | + toPersonal(e){ | ||
33 | + console.log(e) | ||
34 | + let id = e.currentTarget.dataset.id | ||
35 | + let user_id = e.currentTarget.dataset.user_id | ||
36 | + wx.navigateTo({ | ||
37 | + url: '/pages/employerDetails/employerDetails?id=' +id + '&user_id=' + user_id, | ||
38 | + }) | ||
9 | }, | 39 | }, |
10 | 40 | ||
41 | + toRelated(e){ | ||
42 | + console.log(e) | ||
43 | + let user_id = e.currentTarget.dataset.user_id | ||
44 | + wx.navigateTo({ | ||
45 | + url: '/pages/positionDetails/positionDetails?user_id=' + user_id, | ||
46 | + }) | ||
47 | + }, | ||
11 | /** | 48 | /** |
12 | * 生命周期函数--监听页面加载 | 49 | * 生命周期函数--监听页面加载 |
13 | */ | 50 | */ |
14 | onLoad: function (options) { | 51 | onLoad: function (options) { |
52 | + console.log(options) | ||
53 | + this.setData({ | ||
54 | + keyword: options.inputValue, | ||
55 | + | ||
56 | + | ||
57 | + station_name: options | ||
58 | + }) | ||
59 | + this.search_4() | ||
60 | + }, | ||
61 | + | ||
15 | 62 | ||
63 | + search_4() { | ||
64 | + let that = this; | ||
65 | + let url = 'index/job/search'; | ||
66 | + let params = { | ||
67 | + // job_id: that.data.job_id, | ||
68 | + page1: that.data.page1, | ||
69 | + page_num1: that.data.page_num1, | ||
70 | + page2: that.data.page2, | ||
71 | + page_num2: that.data.page_num2, | ||
72 | + keyword: that.data.keyword | ||
73 | + } | ||
74 | + let header = { | ||
75 | + "XX-Token": wx.getStorageSync('token'), | ||
76 | + "XX-Device-Type": 'wxapp' | ||
77 | + } | ||
78 | + app.post(url, params, header).then((res) => { | ||
79 | + console.log(res); | ||
80 | + // 获取值 | ||
81 | + that.setData({ | ||
82 | + search_boss: res.data.boss, | ||
83 | + search_job: res.data.job | ||
84 | + }) | ||
85 | + | ||
86 | + }).catch((err) => { | ||
87 | + | ||
88 | + }) | ||
16 | }, | 89 | }, |
17 | 90 | ||
91 | + | ||
18 | /** | 92 | /** |
19 | * 生命周期函数--监听页面初次渲染完成 | 93 | * 生命周期函数--监听页面初次渲染完成 |
20 | */ | 94 | */ |
1 | - | ||
2 | - | ||
3 | <view class='container'> | 1 | <view class='container'> |
4 | <view class='top'> | 2 | <view class='top'> |
5 | <view class='top_box'> | 3 | <view class='top_box'> |
6 | <view class='top_pic'> | 4 | <view class='top_pic'> |
7 | <image src='../../../img/aicon_02@2x.png'></image> | 5 | <image src='../../../img/aicon_02@2x.png'></image> |
8 | </view> | 6 | </view> |
9 | - <input placeholder='搜索岗位/招聘者'></input> | 7 | + <input placeholder='搜索岗位/招聘者' value='{{keyword}}' bindblur='inputText'></input> |
10 | </view> | 8 | </view> |
11 | </view> | 9 | </view> |
12 | - | 10 | + <!-------- 内容 ----------> |
13 | <!-- 相关招聘者 --> | 11 | <!-- 相关招聘者 --> |
12 | + <view wx:if="{{search_boss.length==0&&search_job.length==0}}"> | ||
13 | + <view class='mid'> | ||
14 | + <view class='pic'> | ||
15 | + <image src='../../../img/aicon_58@2x.png'></image> | ||
16 | + </view> | ||
17 | + <!-- 文字 --> | ||
18 | + <view class='pic_text'> | ||
19 | + 暂无该岗位/招聘者/内容哦, 请换其他关键词试一试 | ||
20 | + | ||
21 | + </view> | ||
22 | + </view> | ||
23 | + </view> | ||
24 | + <block wx:else> | ||
25 | + | ||
14 | <view class='about'> | 26 | <view class='about'> |
15 | 相关招聘者 | 27 | 相关招聘者 |
16 | </view> | 28 | </view> |
17 | <!-- 条目 --> | 29 | <!-- 条目 --> |
18 | <view class='items'> | 30 | <view class='items'> |
19 | 31 | ||
20 | - <view class='item'> | 32 | + |
33 | + <view class='item' wx:for='{{search_boss}}' wx:key='' bindtap='toPersonal' data-id='{{item.id}}' data-user_id='{{item.user_id}}'> | ||
21 | <!-- 头部 --> | 34 | <!-- 头部 --> |
22 | <view class='item_top'> | 35 | <view class='item_top'> |
23 | <view class='item_top_left'> | 36 | <view class='item_top_left'> |
24 | <view class='item_top_left_pic'> | 37 | <view class='item_top_left_pic'> |
25 | - <image src='/img/aicon_08@2x.png'></image> | 38 | + <image src='{{item.logo}}'></image> |
26 | </view> | 39 | </view> |
27 | <view class='item_top_left_text'> | 40 | <view class='item_top_left_text'> |
28 | - <view class='text_top'>酒店服务员</view> | ||
29 | - <view class='text_bottom_text'>2个岗位在招</view> | 41 | + <view class='text_top'>{{item.resume_name}}</view> |
42 | + <view class='text_bottom_text'>{{item.also_some}}个岗位在招</view> | ||
30 | </view> | 43 | </view> |
31 | </view> | 44 | </view> |
32 | </view> | 45 | </view> |
33 | - | ||
34 | - | ||
35 | </view> | 46 | </view> |
36 | 47 | ||
37 | 48 | ||
@@ -48,43 +59,7 @@ | @@ -48,43 +59,7 @@ | ||
48 | 59 | ||
49 | <!-- 条目 --> | 60 | <!-- 条目 --> |
50 | <view class='items'> | 61 | <view class='items'> |
51 | - | ||
52 | - <view class='item'> | ||
53 | - <!-- 头部 --> | ||
54 | - <view class='item_top'> | ||
55 | - <view class='item_top_left'> | ||
56 | - <view class='item_top_left_pic'> | ||
57 | - <image src='/img/aicon_08@2x.png'></image> | ||
58 | - </view> | ||
59 | - <view class='item_top_left_text'> | ||
60 | - <view class='text_top'>酒店服务员</view> | ||
61 | - <view class='text_bottom'>4000-5000元/月</view> | ||
62 | - </view> | ||
63 | - </view> | ||
64 | - | ||
65 | - <view class='item_top_right'> | ||
66 | - 报名 | ||
67 | - </view> | ||
68 | - </view> | ||
69 | - <!-- 底部 --> | ||
70 | - <view class='item_bottom'> | ||
71 | - <view class='item_bottom_left'> | ||
72 | - <view class='item_bottom_left_pic'> | ||
73 | - <image src='/img/aicon_10@2x.png'></image> | ||
74 | - </view> | ||
75 | - <!-- 名字 --> | ||
76 | - <view>王思迪</view> | ||
77 | - </view> | ||
78 | - | ||
79 | - <view class='item_bottom_right'> | ||
80 | - <view class='item_bottom_left_pic'> | ||
81 | - <image src='/img/aicon_09@2x.png'></image> | ||
82 | - </view> | ||
83 | - <view>南开区 3.2km</view> | ||
84 | - </view> | ||
85 | - </view> | ||
86 | - </view> | ||
87 | - <view class='item'> | 62 | + <view class='item' wx:for='{{search_job}}' wx:key='' data-user_id='{{item.user_id}}' bindtap='toRelated'> |
88 | <!-- 头部 --> | 63 | <!-- 头部 --> |
89 | <view class='item_top'> | 64 | <view class='item_top'> |
90 | <view class='item_top_left'> | 65 | <view class='item_top_left'> |
@@ -92,8 +67,8 @@ | @@ -92,8 +67,8 @@ | ||
92 | <image src='/img/aicon_08@2x.png'></image> | 67 | <image src='/img/aicon_08@2x.png'></image> |
93 | </view> | 68 | </view> |
94 | <view class='item_top_left_text'> | 69 | <view class='item_top_left_text'> |
95 | - <view class='text_top'>酒店服务员</view> | ||
96 | - <view class='text_bottom'>4000-5000元/月</view> | 70 | + <view class='text_top'>{{item.station_name}}</view> |
71 | + <view class='text_bottom'>{{item.min_money}}-{{item.max_money}}元/月</view> | ||
97 | </view> | 72 | </view> |
98 | </view> | 73 | </view> |
99 | 74 | ||
@@ -108,7 +83,7 @@ | @@ -108,7 +83,7 @@ | ||
108 | <image src='/img/aicon_10@2x.png'></image> | 83 | <image src='/img/aicon_10@2x.png'></image> |
109 | </view> | 84 | </view> |
110 | <!-- 名字 --> | 85 | <!-- 名字 --> |
111 | - <view>王思迪</view> | 86 | + <view>{{item.resume_name}}</view> |
112 | </view> | 87 | </view> |
113 | 88 | ||
114 | <view class='item_bottom_right'> | 89 | <view class='item_bottom_right'> |
@@ -127,4 +102,6 @@ | @@ -127,4 +102,6 @@ | ||
127 | 没有更多内容了 | 102 | 没有更多内容了 |
128 | </view> | 103 | </view> |
129 | 104 | ||
105 | + </block> | ||
106 | + | ||
130 | </view> | 107 | </view> |
@@ -192,3 +192,31 @@ page{ | @@ -192,3 +192,31 @@ page{ | ||
192 | height:14rpx; | 192 | height:14rpx; |
193 | background:rgba(242,242,242,1); | 193 | background:rgba(242,242,242,1); |
194 | } | 194 | } |
195 | +/* 搜索无结果时展示图片 */ | ||
196 | +.mid{ | ||
197 | + margin-top: 143rpx; | ||
198 | + display: flex; | ||
199 | + align-items: center; | ||
200 | + justify-content: center; | ||
201 | + position: relative; | ||
202 | +} | ||
203 | +.pic{ | ||
204 | + width:629rpx; | ||
205 | + height:463rpx; | ||
206 | + display: flex; | ||
207 | +} | ||
208 | +.pic image{ | ||
209 | + width: 100%; | ||
210 | + height: 100%; | ||
211 | +} | ||
212 | +.pic_text{ | ||
213 | + width: 334rpx; | ||
214 | + /* text-align: center; */ | ||
215 | + position: absolute; | ||
216 | + bottom: 0; | ||
217 | + font-size:28rpx; | ||
218 | + font-family:PingFang-SC-Medium; | ||
219 | + font-weight:500; | ||
220 | + color:rgba(153,153,153,1); | ||
221 | + line-height: 42rpx; | ||
222 | +} |
pages/index/search_5/search_5.js
已删除
100644 → 0
1 | -// pages/index/search_5/search_5.js | ||
2 | -Page({ | ||
3 | - | ||
4 | - /** | ||
5 | - * 页面的初始数据 | ||
6 | - */ | ||
7 | - data: { | ||
8 | - | ||
9 | - }, | ||
10 | - | ||
11 | - /** | ||
12 | - * 生命周期函数--监听页面加载 | ||
13 | - */ | ||
14 | - onLoad: function (options) { | ||
15 | - | ||
16 | - }, | ||
17 | - | ||
18 | - /** | ||
19 | - * 生命周期函数--监听页面初次渲染完成 | ||
20 | - */ | ||
21 | - onReady: function () { | ||
22 | - | ||
23 | - }, | ||
24 | - | ||
25 | - /** | ||
26 | - * 生命周期函数--监听页面显示 | ||
27 | - */ | ||
28 | - onShow: function () { | ||
29 | - | ||
30 | - }, | ||
31 | - | ||
32 | - /** | ||
33 | - * 生命周期函数--监听页面隐藏 | ||
34 | - */ | ||
35 | - onHide: function () { | ||
36 | - | ||
37 | - }, | ||
38 | - | ||
39 | - /** | ||
40 | - * 生命周期函数--监听页面卸载 | ||
41 | - */ | ||
42 | - onUnload: function () { | ||
43 | - | ||
44 | - }, | ||
45 | - | ||
46 | - /** | ||
47 | - * 页面相关事件处理函数--监听用户下拉动作 | ||
48 | - */ | ||
49 | - onPullDownRefresh: function () { | ||
50 | - | ||
51 | - }, | ||
52 | - | ||
53 | - /** | ||
54 | - * 页面上拉触底事件的处理函数 | ||
55 | - */ | ||
56 | - onReachBottom: function () { | ||
57 | - | ||
58 | - }, | ||
59 | - | ||
60 | - /** | ||
61 | - * 用户点击右上角分享 | ||
62 | - */ | ||
63 | - onShareAppMessage: function () { | ||
64 | - | ||
65 | - } | ||
66 | -}) |
pages/index/search_5/search_5.json
已删除
100644 → 0
pages/index/search_5/search_5.wxml
已删除
100644 → 0
1 | - | ||
2 | - | ||
3 | -<view class='container'> | ||
4 | - <view class='top'> | ||
5 | - <view class='top_box'> | ||
6 | - <view class='top_pic'> | ||
7 | - <image src='../../../img/aicon_02@2x.png'></image> | ||
8 | - </view> | ||
9 | - <input placeholder='搜索岗位/招聘者'></input> | ||
10 | - </view> | ||
11 | - </view> | ||
12 | - | ||
13 | - <view class='mid'> | ||
14 | - <view class='pic'> | ||
15 | - <image src='../../../img/aicon_58@2x.png'></image> | ||
16 | - </view> | ||
17 | - <!-- 文字 --> | ||
18 | - <view class='pic_text'> | ||
19 | - 暂无该岗位/招聘者/内容哦, | ||
20 | - 请换其他关键词试一试 | ||
21 | - | ||
22 | - </view> | ||
23 | - </view> | ||
24 | - | ||
25 | - | ||
26 | - | ||
27 | - | ||
28 | - | ||
29 | - <!-- 提示 --> | ||
30 | - <!-- <view class='bottom'> | ||
31 | - 没有更多内容了 | ||
32 | - </view> --> | ||
33 | - | ||
34 | -</view> |
pages/index/search_5/search_5.wxss
已删除
100644 → 0
1 | - | ||
2 | - | ||
3 | -page{ | ||
4 | - line-height: 1; | ||
5 | - /* background: #EBEBEB; */ | ||
6 | -} | ||
7 | -.container{ | ||
8 | - display: flex; | ||
9 | - flex-flow: column; | ||
10 | -} | ||
11 | -.top{ | ||
12 | - display: flex; | ||
13 | - align-items: center; | ||
14 | - justify-content: center; | ||
15 | - background: #fff; | ||
16 | - border-top: 1px solid #EBEBEB; | ||
17 | - border-bottom: 1px solid #EBEBEB; | ||
18 | - padding: 24rpx 0; | ||
19 | -} | ||
20 | -.top_box{ | ||
21 | - display: flex; | ||
22 | - align-items: center; | ||
23 | - width:686rpx; | ||
24 | - height:60rpx; | ||
25 | - background:rgba(237,238,242,1); | ||
26 | - border-radius:10rpx; | ||
27 | - box-sizing: border-box; | ||
28 | - padding: 0 24rpx; | ||
29 | -} | ||
30 | -.top_pic{ | ||
31 | - | ||
32 | - width:28rpx; | ||
33 | - height:28rpx; | ||
34 | - display: flex; | ||
35 | -} | ||
36 | -.top_pic image{ | ||
37 | - width: 100%; | ||
38 | - height: 100%; | ||
39 | -} | ||
40 | -.top_box input{ | ||
41 | - margin-left: 25rpx; | ||
42 | - width: 100%; | ||
43 | - height: 100%; | ||
44 | - | ||
45 | - font-size:26rpx; | ||
46 | - font-family:PingFang-SC-Medium; | ||
47 | - font-weight:500; | ||
48 | - color:#000; | ||
49 | -} | ||
50 | - | ||
51 | -.mid{ | ||
52 | - margin-top: 143rpx; | ||
53 | - display: flex; | ||
54 | - align-items: center; | ||
55 | - justify-content: center; | ||
56 | - position: relative; | ||
57 | -} | ||
58 | -.pic{ | ||
59 | - width:629rpx; | ||
60 | - height:463rpx; | ||
61 | - display: flex; | ||
62 | -} | ||
63 | -.pic image{ | ||
64 | - width: 100%; | ||
65 | - height: 100%; | ||
66 | -} | ||
67 | -.pic_text{ | ||
68 | - width: 334rpx; | ||
69 | - /* text-align: center; */ | ||
70 | - position: absolute; | ||
71 | - bottom: 0; | ||
72 | - font-size:28rpx; | ||
73 | - font-family:PingFang-SC-Medium; | ||
74 | - font-weight:500; | ||
75 | - color:rgba(153,153,153,1); | ||
76 | - line-height: 42rpx; | ||
77 | -} | ||
78 | - | ||
79 | -.bottom{ | ||
80 | - margin-top: 23rpx; | ||
81 | - text-align: center; | ||
82 | - font-size:24rpx; | ||
83 | - font-family:PingFang-SC-Regular; | ||
84 | - font-weight:400; | ||
85 | - color:rgba(153,153,153,1); | ||
86 | - | ||
87 | -} | ||
88 | -.text_bottom_text{ | ||
89 | - margin-top: 17rpx; | ||
90 | - font-size:28rpx; | ||
91 | - font-family:PingFang-SC-Medium; | ||
92 | - font-weight:500; | ||
93 | - color:rgba(255,102,0,1); | ||
94 | -} | ||
95 | -.color_line{ | ||
96 | - width:750rpx; | ||
97 | - height:14rpx; | ||
98 | - background:rgba(242,242,242,1); | ||
99 | -} |
@@ -18,15 +18,37 @@ Page({ | @@ -18,15 +18,37 @@ Page({ | ||
18 | share_task: '', | 18 | share_task: '', |
19 | user: '', | 19 | user: '', |
20 | record: '', | 20 | record: '', |
21 | + record1: '', | ||
21 | 22 | ||
22 | // 判断弹出层,初始值为false为关闭 | 23 | // 判断弹出层,初始值为false为关闭 |
23 | show_apply:false, | 24 | show_apply:false, |
24 | type:1, | 25 | type:1, |
25 | notype:2, | 26 | notype:2, |
26 | countnum:'', | 27 | countnum:'', |
27 | - nocountnum:'' | 28 | + nocountnum:'', |
29 | + page_type:'', | ||
28 | }, | 30 | }, |
29 | 31 | ||
32 | + // 账号 | ||
33 | + enterAccount(e) { | ||
34 | + console.log(e) | ||
35 | + this.setData({ | ||
36 | + account: e.detail.value | ||
37 | + }) | ||
38 | + }, | ||
39 | + // 姓名 | ||
40 | + enterUsername(e) { | ||
41 | + console.log(e) | ||
42 | + this.setData({ | ||
43 | + username: e.detail.value | ||
44 | + }) | ||
45 | + }, | ||
46 | + // 提现金额 | ||
47 | + enterCash(e) { | ||
48 | + this.setData({ | ||
49 | + cash: e.detail.value | ||
50 | + }) | ||
51 | + }, | ||
30 | /** | 52 | /** |
31 | * 生命周期函数--监听页面加载 | 53 | * 生命周期函数--监听页面加载 |
32 | */ | 54 | */ |
@@ -35,7 +57,39 @@ Page({ | @@ -35,7 +57,39 @@ Page({ | ||
35 | this.getShare(), | 57 | this.getShare(), |
36 | this.getSelect(), | 58 | this.getSelect(), |
37 | this.nogetSelect() | 59 | this.nogetSelect() |
60 | + console.log(this.data.type) | ||
61 | + }, | ||
62 | + // 提交审核 | ||
63 | + subPay() { | ||
64 | + let that = this; | ||
65 | + let url = 'index/share/submit_audit'; | ||
66 | + let params = { | ||
67 | + alipay: that.data.account, | ||
68 | + name: that.data.username, | ||
69 | + total: that.data.cash, | ||
70 | + } | ||
71 | + let header = { | ||
72 | + "XX-Token": wx.getStorageSync('token'), | ||
73 | + "XX-Device-Type": 'wxapp' | ||
74 | + } | ||
75 | + app.post(url, params, header).then((res) => { | ||
76 | + console.log(res); | ||
77 | + wx.showToast({ | ||
78 | + title: '提交成功', | ||
79 | + icon: 'none', | ||
80 | + duration: 1500 | ||
81 | + }) | ||
82 | + setTimeout(function () { | ||
83 | + wx.navigateTo({ | ||
84 | + url: '/pages/mine/mine', | ||
85 | + }) | ||
86 | + }, 1000) | ||
87 | + | ||
88 | + }).catch((err) => { | ||
89 | + | ||
90 | + }) | ||
38 | }, | 91 | }, |
92 | + | ||
39 | getShare() { | 93 | getShare() { |
40 | let that = this; | 94 | let that = this; |
41 | let url = 'index/share/index'; | 95 | let url = 'index/share/index'; |
@@ -72,7 +126,7 @@ Page({ | @@ -72,7 +126,7 @@ Page({ | ||
72 | let that = this; | 126 | let that = this; |
73 | let url = 'index/share/select_share'; | 127 | let url = 'index/share/select_share'; |
74 | let params = { | 128 | let params = { |
75 | - type:that.data.type | 129 | + type:1 |
76 | } | 130 | } |
77 | let header = { | 131 | let header = { |
78 | "XX-Token": wx.getStorageSync('token'), | 132 | "XX-Token": wx.getStorageSync('token'), |
@@ -82,18 +136,26 @@ Page({ | @@ -82,18 +136,26 @@ Page({ | ||
82 | console.log(res); | 136 | console.log(res); |
83 | let newbav = that.data.navbar; | 137 | let newbav = that.data.navbar; |
84 | console.log(newbav) | 138 | console.log(newbav) |
85 | - for (let i=0;i<that.data.navbar.length;i++){ | 139 | + for (let i = 0; i < newbav.length;i++){ |
140 | + | ||
86 | if(i==0){ | 141 | if(i==0){ |
87 | - that.data.navbar[i].name = '有效邀请' + res.data.count + '人' | 142 | + console.log(999) |
143 | + newbav[i].name = '有效邀请' + res.data.count + '人'; | ||
144 | + | ||
145 | + | ||
88 | } | 146 | } |
89 | 147 | ||
148 | + that.setData({ | ||
149 | + navbar:newbav | ||
150 | + }) | ||
151 | + | ||
90 | } | 152 | } |
91 | 153 | ||
92 | console.log(that.data.navbar) | 154 | console.log(that.data.navbar) |
93 | 155 | ||
94 | 156 | ||
95 | that.setData({ | 157 | that.setData({ |
96 | - record: res.data.record, | 158 | + record1: res.data.record, |
97 | // share_task: res.data.share_task, | 159 | // share_task: res.data.share_task, |
98 | // user: res.data.user | 160 | // user: res.data.user |
99 | 161 | ||
@@ -111,7 +173,7 @@ Page({ | @@ -111,7 +173,7 @@ Page({ | ||
111 | let that = this; | 173 | let that = this; |
112 | let url = 'index/share/select_share'; | 174 | let url = 'index/share/select_share'; |
113 | let params = { | 175 | let params = { |
114 | - type: that.data.notype | 176 | + type: 2 |
115 | } | 177 | } |
116 | let header = { | 178 | let header = { |
117 | "XX-Token": wx.getStorageSync('token'), | 179 | "XX-Token": wx.getStorageSync('token'), |
@@ -123,9 +185,9 @@ Page({ | @@ -123,9 +185,9 @@ Page({ | ||
123 | // for (var i = 0; i < newnav.length; i++) { | 185 | // for (var i = 0; i < newnav.length; i++) { |
124 | // newnav[0].name = '有效邀请' + res.count + '人' | 186 | // newnav[0].name = '有效邀请' + res.count + '人' |
125 | // } | 187 | // } |
126 | - for (let i = 1; i < that.data.navbar.length; i++) { | 188 | + for (let i = 1; i < newbav.length; i++) { |
127 | if (i == 1) { | 189 | if (i == 1) { |
128 | - that.data.navbar[i].name = '无效邀请' + res.data.count + '人' | 190 | + newbav[i].name = '无效邀请' + res.data.count + '人' |
129 | } | 191 | } |
130 | 192 | ||
131 | } | 193 | } |
@@ -133,6 +195,7 @@ Page({ | @@ -133,6 +195,7 @@ Page({ | ||
133 | 195 | ||
134 | that.setData({ | 196 | that.setData({ |
135 | record: res.data.record, | 197 | record: res.data.record, |
198 | + navbar:newbav | ||
136 | // share_task: res.data.share_task, | 199 | // share_task: res.data.share_task, |
137 | // user: res.data.user | 200 | // user: res.data.user |
138 | 201 | ||
@@ -153,17 +216,22 @@ Page({ | @@ -153,17 +216,22 @@ Page({ | ||
153 | this.setData({ | 216 | this.setData({ |
154 | currentTab: e.currentTarget.dataset.idx, | 217 | currentTab: e.currentTarget.dataset.idx, |
155 | // type: 'e.currentTarget.dataset.idx==0'?'1':'2', | 218 | // type: 'e.currentTarget.dataset.idx==0'?'1':'2', |
219 | + // count: that.data.array[e.detail.value].count, | ||
156 | }) | 220 | }) |
221 | + // console.log(11111111) | ||
222 | + // console.log(count) | ||
223 | + | ||
157 | if (e.currentTarget.dataset.idx == 0){ | 224 | if (e.currentTarget.dataset.idx == 0){ |
158 | this.setData({ | 225 | this.setData({ |
159 | - type:1 | 226 | + type:1, |
227 | + | ||
160 | }) | 228 | }) |
161 | this.getSelect() | 229 | this.getSelect() |
162 | }else{ | 230 | }else{ |
163 | this.setData({ | 231 | this.setData({ |
164 | type:2 | 232 | type:2 |
165 | }) | 233 | }) |
166 | - this.getSelect() | 234 | + this.nogetSelect() |
167 | } | 235 | } |
168 | console.log(that.data.type) | 236 | console.log(that.data.type) |
169 | }, | 237 | }, |
@@ -181,6 +249,21 @@ Page({ | @@ -181,6 +249,21 @@ Page({ | ||
181 | }) | 249 | }) |
182 | }, | 250 | }, |
183 | 251 | ||
252 | + // 点击查看更多 | ||
253 | + toMore(){ | ||
254 | + let that = this | ||
255 | + if (that.data.page_type == false) { | ||
256 | + return false | ||
257 | + } | ||
258 | + let page = that.data.page; | ||
259 | + page++; | ||
260 | + that.setData({ | ||
261 | + page: page | ||
262 | + }) | ||
263 | + // that.info() | ||
264 | + that.getSelect() | ||
265 | + console.log(1111) | ||
266 | + }, | ||
184 | 267 | ||
185 | /** | 268 | /** |
186 | * 生命周期函数--监听页面初次渲染完成 | 269 | * 生命周期函数--监听页面初次渲染完成 |
@@ -38,7 +38,7 @@ | @@ -38,7 +38,7 @@ | ||
38 | <view class='invite'> | 38 | <view class='invite'> |
39 | 39 | ||
40 | <view class="invite_top"> | 40 | <view class="invite_top"> |
41 | -<view wx:for="{{navbar}}" data-idx="{{index}}" class="invite_top_select {{currentTab==index ? 'color_yellow' : ''}}" wx:key="unique" bindtap="navbarTap" data-categoryid="{{item.id}}">{{item.name}} | 41 | +<view wx:for="{{navbar}}" data-idx="{{index}}" class="invite_top_select {{currentTab==index ? 'color_yellow' : ''}}" wx:key="unique" bindtap="navbarTap" data-categoryid="{{item.id}}" data-count='{{count}}'>{{item.name}} |
42 | </view> | 42 | </view> |
43 | </view> | 43 | </view> |
44 | 44 | ||
@@ -50,7 +50,7 @@ | @@ -50,7 +50,7 @@ | ||
50 | </view> --> | 50 | </view> --> |
51 | <!-- 有效邀请 --> | 51 | <!-- 有效邀请 --> |
52 | <view class='invite_box' wx:if="{{currentTab==0}}"> | 52 | <view class='invite_box' wx:if="{{currentTab==0}}"> |
53 | - <view class='invite_item' wx:for="{{record}}" wx:key=""> | 53 | + <view class='invite_item' wx:for="{{record1}}" wx:key=""> |
54 | <view class='invite_item_left'> | 54 | <view class='invite_item_left'> |
55 | <view class='invite_item_left_icon'> | 55 | <view class='invite_item_left_icon'> |
56 | <image src='{{item.avatar}}'></image> | 56 | <image src='{{item.avatar}}'></image> |
@@ -118,7 +118,7 @@ | @@ -118,7 +118,7 @@ | ||
118 | 118 | ||
119 | 119 | ||
120 | <!-- 查看更多 --> | 120 | <!-- 查看更多 --> |
121 | - <view class='invite_bottom'> | 121 | + <view class='invite_bottom' bindtap='toMore'> |
122 | <view class='invite_bottom_text'>查看更多</view> | 122 | <view class='invite_bottom_text'>查看更多</view> |
123 | <view class='invite_bottom_icon'> | 123 | <view class='invite_bottom_icon'> |
124 | <image src='../../img/aicon_01@2x.png'></image> | 124 | <image src='../../img/aicon_01@2x.png'></image> |
@@ -143,21 +143,21 @@ | @@ -143,21 +143,21 @@ | ||
143 | <!-- 输入信息 --> | 143 | <!-- 输入信息 --> |
144 | <view class='input_item marin_t'> | 144 | <view class='input_item marin_t'> |
145 | <view class='input_item_left'>支付宝账户</view> | 145 | <view class='input_item_left'>支付宝账户</view> |
146 | - <input placeholder='请输入正确的支付宝账户'></input> | 146 | + <input placeholder='请输入正确的支付宝账户' bindinput='enterAccount'></input> |
147 | </view> | 147 | </view> |
148 | <view class='input_item'> | 148 | <view class='input_item'> |
149 | <view class='input_item_left'>账户姓名</view> | 149 | <view class='input_item_left'>账户姓名</view> |
150 | - <input placeholder='请输入支付宝姓名'></input> | 150 | + <input placeholder='请输入支付宝姓名' bindinput='enterUsername'></input> |
151 | </view> | 151 | </view> |
152 | <view class='input_item item3'> | 152 | <view class='input_item item3'> |
153 | <view class='input_item_left'>输入提现金额</view> | 153 | <view class='input_item_left'>输入提现金额</view> |
154 | - <input placeholder='请输入10的倍数'></input> | 154 | + <input placeholder='请输入10的倍数' bindinput='enterCash'></input> |
155 | <view class='input_text'>元</view> | 155 | <view class='input_text'>元</view> |
156 | </view> | 156 | </view> |
157 | 157 | ||
158 | <!-- 提交 --> | 158 | <!-- 提交 --> |
159 | <view class='button_box'> | 159 | <view class='button_box'> |
160 | - <view class='button'>提交</view> | 160 | + <view class='button' bindtap='subPay'>提交</view> |
161 | </view> | 161 | </view> |
162 | 162 | ||
163 | <!-- 提示字体 --> | 163 | <!-- 提示字体 --> |
@@ -183,8 +183,8 @@ page{ | @@ -183,8 +183,8 @@ page{ | ||
183 | position: absolute; | 183 | position: absolute; |
184 | bottom: -32rpx; | 184 | bottom: -32rpx; |
185 | left: -60rpx; | 185 | left: -60rpx; |
186 | - /* right: 60rpx; */ | ||
187 | - width: 330rpx; | 186 | + right:0rpx; |
187 | + width: 288rpx; | ||
188 | height: 1px; | 188 | height: 1px; |
189 | background: #FFAA00; | 189 | background: #FFAA00; |
190 | } | 190 | } |
@@ -13,6 +13,9 @@ Page({ | @@ -13,6 +13,9 @@ Page({ | ||
13 | personal:'' | 13 | personal:'' |
14 | }, | 14 | }, |
15 | 15 | ||
16 | + | ||
17 | + | ||
18 | + | ||
16 | /** | 19 | /** |
17 | * 生命周期函数--监听页面加载 | 20 | * 生命周期函数--监听页面加载 |
18 | */ | 21 | */ |
@@ -100,8 +103,61 @@ Page({ | @@ -100,8 +103,61 @@ Page({ | ||
100 | }, | 103 | }, |
101 | onLoad: function (options) { | 104 | onLoad: function (options) { |
102 | this.getPersonal() | 105 | this.getPersonal() |
106 | + // this.getPay() | ||
107 | + }, | ||
108 | + | ||
109 | + // 账号 | ||
110 | + enterAccount(e){ | ||
111 | + console.log(e) | ||
112 | + this.setData({ | ||
113 | + account: e.detail.value | ||
114 | + }) | ||
115 | + }, | ||
116 | + // 姓名 | ||
117 | + enterUsername(e){ | ||
118 | + console.log(e) | ||
119 | + this.setData({ | ||
120 | + username: e.detail.value | ||
121 | + }) | ||
122 | + }, | ||
123 | + // 提现金额 | ||
124 | + enterCash(e){ | ||
125 | + this.setData({ | ||
126 | + cash: e.detail.value | ||
127 | + }) | ||
103 | }, | 128 | }, |
104 | 129 | ||
130 | + // 提交审核 | ||
131 | + subPay(){ | ||
132 | + let that = this; | ||
133 | + let url = 'index/share/submit_audit'; | ||
134 | + let params = { | ||
135 | + alipay: that.data.account, | ||
136 | + name: that.data.username, | ||
137 | + total: that.data.cash, | ||
138 | + } | ||
139 | + let header = { | ||
140 | + "XX-Token": wx.getStorageSync('token'), | ||
141 | + "XX-Device-Type": 'wxapp' | ||
142 | + } | ||
143 | + app.post(url, params, header).then((res) => { | ||
144 | + console.log(res); | ||
145 | + wx.showToast({ | ||
146 | + title: '提交成功', | ||
147 | + icon: 'none', | ||
148 | + duration: 1500 | ||
149 | + }) | ||
150 | + setTimeout(function(){ | ||
151 | + wx.navigateTo({ | ||
152 | + url: '/pages/mine/mine', | ||
153 | + }) | ||
154 | + },1000) | ||
155 | + | ||
156 | + }).catch((err) => { | ||
157 | + | ||
158 | + }) | ||
159 | + }, | ||
160 | + // 获取个人中心信息 | ||
105 | getPersonal() { | 161 | getPersonal() { |
106 | 162 | ||
107 | let that = this; | 163 | let that = this; |
@@ -129,6 +185,8 @@ Page({ | @@ -129,6 +185,8 @@ Page({ | ||
129 | }) | 185 | }) |
130 | }, | 186 | }, |
131 | 187 | ||
188 | + | ||
189 | + | ||
132 | /** | 190 | /** |
133 | * 生命周期函数--监听页面初次渲染完成 | 191 | * 生命周期函数--监听页面初次渲染完成 |
134 | */ | 192 | */ |
@@ -188,21 +188,21 @@ | @@ -188,21 +188,21 @@ | ||
188 | <!-- 输入信息 --> | 188 | <!-- 输入信息 --> |
189 | <view class='input_item marin_t'> | 189 | <view class='input_item marin_t'> |
190 | <view class='input_item_left'>支付宝账户</view> | 190 | <view class='input_item_left'>支付宝账户</view> |
191 | - <input placeholder='请输入正确的支付宝账户'></input> | 191 | + <input placeholder='请输入正确的支付宝账户' bindinput='enterAccount'></input> |
192 | </view> | 192 | </view> |
193 | <view class='input_item'> | 193 | <view class='input_item'> |
194 | <view class='input_item_left'>账户姓名</view> | 194 | <view class='input_item_left'>账户姓名</view> |
195 | - <input placeholder='请输入支付宝姓名'></input> | 195 | + <input placeholder='请输入支付宝姓名' bindinput='enterUsername'></input> |
196 | </view> | 196 | </view> |
197 | <view class='input_item item3'> | 197 | <view class='input_item item3'> |
198 | <view class='input_item_left'>输入提现金额</view> | 198 | <view class='input_item_left'>输入提现金额</view> |
199 | - <input placeholder='请输入10的倍数'></input> | 199 | + <input placeholder='请输入10的倍数' bindinput='enterCash'></input> |
200 | <view class='input_text'>元</view> | 200 | <view class='input_text'>元</view> |
201 | </view> | 201 | </view> |
202 | 202 | ||
203 | <!-- 提交 --> | 203 | <!-- 提交 --> |
204 | <view class='button_box'> | 204 | <view class='button_box'> |
205 | - <view class='button'>提交</view> | 205 | + <view class='button' bindtap='subPay'>提交</view> |
206 | </view> | 206 | </view> |
207 | 207 | ||
208 | <!-- 提示字体 --> | 208 | <!-- 提示字体 --> |
@@ -27,6 +27,7 @@ Page({ | @@ -27,6 +27,7 @@ Page({ | ||
27 | // 可以指定来源是相册还是相机,默认二者都有 | 27 | // 可以指定来源是相册还是相机,默认二者都有 |
28 | success: function (res) { | 28 | success: function (res) { |
29 | console.log(res) | 29 | console.log(res) |
30 | + | ||
30 | // 返回选定照片的本地文件路径列表,tempFilePath可以作为img标签的src属性显示图片 | 31 | // 返回选定照片的本地文件路径列表,tempFilePath可以作为img标签的src属性显示图片 |
31 | var tempFilePaths = res.tempFilePaths; | 32 | var tempFilePaths = res.tempFilePaths; |
32 | // if (that.data.companyortrue == true) { | 33 | // if (that.data.companyortrue == true) { |
@@ -31,56 +31,56 @@ | @@ -31,56 +31,56 @@ | ||
31 | <view class='top mid'> | 31 | <view class='top mid'> |
32 | <view class='top_left'>真实姓名</view> | 32 | <view class='top_left'>真实姓名</view> |
33 | <view class='top_right wechat_name'> | 33 | <view class='top_right wechat_name'> |
34 | - {{resume2.resume_name}} | 34 | + {{resume2.resume_name?resume2.resume_name:'暂无数据'}} |
35 | </view> | 35 | </view> |
36 | </view> | 36 | </view> |
37 | <!-- 性别 --> | 37 | <!-- 性别 --> |
38 | <view class='top mid'> | 38 | <view class='top mid'> |
39 | <view class='top_left'>性别</view> | 39 | <view class='top_left'>性别</view> |
40 | <view class='top_right wechat_name'> | 40 | <view class='top_right wechat_name'> |
41 | - {{resume2.resume_sex}} | 41 | + {{resume2.resume_sex?resume2.resume_sex:'暂无数据'}} |
42 | </view> | 42 | </view> |
43 | </view> | 43 | </view> |
44 | <!-- 手机号 --> | 44 | <!-- 手机号 --> |
45 | <view class='top mid'> | 45 | <view class='top mid'> |
46 | <view class='top_left'>手机号</view> | 46 | <view class='top_left'>手机号</view> |
47 | <view class='top_right wechat_name'> | 47 | <view class='top_right wechat_name'> |
48 | - {{resume2.resume_mobile}} | 48 | + {{resume2.resume_mobile?resume2.resume_mobile:'暂无数据'}} |
49 | </view> | 49 | </view> |
50 | </view> | 50 | </view> |
51 | <!-- 出生日期 --> | 51 | <!-- 出生日期 --> |
52 | <view class='top mid'> | 52 | <view class='top mid'> |
53 | <view class='top_left'>出生日期</view> | 53 | <view class='top_left'>出生日期</view> |
54 | <view class='top_right wechat_name'> | 54 | <view class='top_right wechat_name'> |
55 | - {{resume2.resume_birthday}} | 55 | + {{resume2.resume_birthday?resume2.resume_birthday:'暂无数据'}} |
56 | </view> | 56 | </view> |
57 | </view> | 57 | </view> |
58 | <!-- 家乡 --> | 58 | <!-- 家乡 --> |
59 | <view class='top mid'> | 59 | <view class='top mid'> |
60 | <view class='top_left'>家乡</view> | 60 | <view class='top_left'>家乡</view> |
61 | <view class='top_right wechat_name'> | 61 | <view class='top_right wechat_name'> |
62 | - {{resume2.resume_home}} | 62 | + {{resume2.resume_home?resume2.resume_home:'暂无数据'}} |
63 | </view> | 63 | </view> |
64 | </view> | 64 | </view> |
65 | <!-- 最高学历 --> | 65 | <!-- 最高学历 --> |
66 | <view class='top mid'> | 66 | <view class='top mid'> |
67 | <view class='top_left'>最高学历</view> | 67 | <view class='top_left'>最高学历</view> |
68 | <view class='top_right wechat_name'> | 68 | <view class='top_right wechat_name'> |
69 | - {{resume2.education_name}} | 69 | + {{resume2.education_name?resume2.education_name:'暂无数据'}} |
70 | </view> | 70 | </view> |
71 | </view> | 71 | </view> |
72 | <!-- 工作年限 --> | 72 | <!-- 工作年限 --> |
73 | <view class='top mid'> | 73 | <view class='top mid'> |
74 | <view class='top_left'>工作年限</view> | 74 | <view class='top_left'>工作年限</view> |
75 | <view class='top_right wechat_name'> | 75 | <view class='top_right wechat_name'> |
76 | - {{resume2.resume_exp}} | 76 | + {{resume2.resume_exp?resume2.resume_exp:'暂无数据'}} |
77 | </view> | 77 | </view> |
78 | </view> | 78 | </view> |
79 | <!-- 是否在职 --> | 79 | <!-- 是否在职 --> |
80 | <view class='top mid'> | 80 | <view class='top mid'> |
81 | <view class='top_left'>是否在职</view> | 81 | <view class='top_left'>是否在职</view> |
82 | <view class='top_right wechat_name'> | 82 | <view class='top_right wechat_name'> |
83 | - {{resume2.resume_is_bejob}} | 83 | + {{resume2.resume_is_bejob?resume2.resume_is_bejob:'暂无数据'}} |
84 | </view> | 84 | </view> |
85 | </view> | 85 | </view> |
86 | <!--岗位描述 --> | 86 | <!--岗位描述 --> |
@@ -90,7 +90,7 @@ | @@ -90,7 +90,7 @@ | ||
90 | <view class='top_right wechat_name'></view> | 90 | <view class='top_right wechat_name'></view> |
91 | </view> | 91 | </view> |
92 | <view class='mid_bottom'> | 92 | <view class='mid_bottom'> |
93 | - {{resume2.resume_brief}} | 93 | + {{resume2.resume_brief?resume2.resume_brief:'暂无数据'}} |
94 | </view> | 94 | </view> |
95 | </view> | 95 | </view> |
96 | 96 |
1 | // pages/publish/publish.js | 1 | // pages/publish/publish.js |
2 | - | 2 | +const app = getApp() |
3 | var that; | 3 | var that; |
4 | Page({ | 4 | Page({ |
5 | 5 | ||
@@ -7,71 +7,217 @@ Page({ | @@ -7,71 +7,217 @@ Page({ | ||
7 | * 页面的初始数据 | 7 | * 页面的初始数据 |
8 | */ | 8 | */ |
9 | data: { | 9 | data: { |
10 | - array: ['在家可做', '好评工作', '热门推荐', '轻松兼职'], | 10 | + publish: '', |
11 | + array: [], | ||
11 | status:false, | 12 | status:false, |
12 | 13 | ||
13 | jobIndex: 0, | 14 | jobIndex: 0, |
14 | 15 | ||
15 | - industry: ['餐饮', '金融', '计算机'], | 16 | + industry: [], |
16 | 17 | ||
17 | industryIndex: 0, | 18 | industryIndex: 0, |
18 | 19 | ||
19 | - post: ['厨师', '医生', '程序员'], | 20 | + post: [], |
20 | 21 | ||
21 | postIndex: 0, | 22 | postIndex: 0, |
22 | 23 | ||
24 | + edu: [], | ||
25 | + | ||
26 | + eduIndex: 0, | ||
23 | switch_content:false, | 27 | switch_content:false, |
24 | 28 | ||
25 | images: [], | 29 | images: [], |
30 | + images2: [], | ||
26 | bannerImage: [], | 31 | bannerImage: [], |
32 | + // 获取分类 | ||
33 | + getClass:'', | ||
34 | + categories_id:'', | ||
35 | + industry_id: '', | ||
36 | + hangye:'请选择', | ||
37 | + gangwei:'请选择', | ||
38 | + logoitem:'', | ||
39 | + banneritem:'' | ||
40 | + | ||
41 | + // edu: '', | ||
27 | }, | 42 | }, |
28 | // 岗位分类 | 43 | // 岗位分类 |
29 | jobClass: function (e) { | 44 | jobClass: function (e) { |
30 | console.log('picker发送选择改变,携带值为', e.detail.value) | 45 | console.log('picker发送选择改变,携带值为', e.detail.value) |
31 | this.setData({ | 46 | this.setData({ |
32 | - jobIndex: e.detail.value | ||
33 | - }) | 47 | + jobIndex: e.detail.value, |
48 | + categories_id: this.data.array[e.detail.value].id, | ||
49 | + hangye:'请选择', | ||
50 | + gangwei:"请选择" | ||
34 | 51 | ||
52 | + }) | ||
53 | + console.log(that.data.categories_id) | ||
54 | + this.publicIndustry() | ||
35 | }, | 55 | }, |
36 | // 选择行业 | 56 | // 选择行业 |
37 | industryClass: function (e) { | 57 | industryClass: function (e) { |
38 | console.log('picker发送选择改变,携带值为', e.detail.value) | 58 | console.log('picker发送选择改变,携带值为', e.detail.value) |
39 | this.setData({ | 59 | this.setData({ |
40 | - industryIndex: e.detail.value | 60 | + industryIndex: e.detail.value, |
61 | + industry_id: this.data.industry[e.detail.value].id, | ||
62 | + hangye: this.data.industry[e.detail.value].industry_name , | ||
63 | + gangwei:'请选择' | ||
41 | }) | 64 | }) |
65 | + console.log(that.data.industry_id) | ||
66 | + this.publicPost() | ||
42 | }, | 67 | }, |
43 | // 选择岗位 | 68 | // 选择岗位 |
44 | postClass: function (e) { | 69 | postClass: function (e) { |
45 | console.log('picker发送选择改变,携带值为', e.detail.value) | 70 | console.log('picker发送选择改变,携带值为', e.detail.value) |
46 | this.setData({ | 71 | this.setData({ |
47 | - postIndex: e.detail.value | 72 | + postIndex: e.detail.value, |
73 | + gangwei: this.data.post[e.detail.value].station_name | ||
74 | + }) | ||
75 | + }, | ||
76 | + // 选择学历 | ||
77 | + selectEdu: function (e) { | ||
78 | + console.log('picker发送选择改变,携带值为', e.detail.value) | ||
79 | + this.setData({ | ||
80 | + selectEdu: e.detail.value | ||
48 | }) | 81 | }) |
49 | }, | 82 | }, |
50 | 83 | ||
51 | - // 点击切换 | ||
52 | - // switch_a(){ | ||
53 | - // wx.getData({ | ||
54 | - // switch_content: true | ||
55 | - // }) | ||
56 | - // }, | ||
57 | switch_a(){ | 84 | switch_a(){ |
58 | this.setData({ | 85 | this.setData({ |
59 | status:!this.data.status | 86 | status:!this.data.status |
60 | }) | 87 | }) |
61 | }, | 88 | }, |
62 | - // switch_b() { | ||
63 | - // this.setData({ | ||
64 | - // status: !this.data.status | ||
65 | - // }) | ||
66 | - // }, | ||
67 | 89 | ||
68 | /** | 90 | /** |
69 | * 生命周期函数--监听页面加载 | 91 | * 生命周期函数--监听页面加载 |
70 | */ | 92 | */ |
71 | onLoad: function (options) { | 93 | onLoad: function (options) { |
72 | that = this; | 94 | that = this; |
95 | + this.publicClass(); | ||
96 | + this.publicIndustry(); | ||
97 | + this.publicPost(); | ||
98 | + this.publicEdu(); | ||
73 | }, | 99 | }, |
74 | 100 | ||
101 | + // 获取分类Ajax | ||
102 | + publicClass() { | ||
103 | + let that = this; | ||
104 | + let url = 'index/category/categories'; | ||
105 | + let params = { | ||
106 | + // categories_id: that.data.categories_id, | ||
107 | + } | ||
108 | + let header = { | ||
109 | + "XX-Token": wx.getStorageSync('token'), | ||
110 | + "XX-Device-Type": 'wxapp' | ||
111 | + } | ||
112 | + app.post(url, params, header).then((res) => { | ||
113 | + console.log(res); | ||
114 | + // 获取值 | ||
115 | + that.setData({ | ||
116 | + // personal: res.data | ||
117 | + array: res.data | ||
118 | + }) | ||
119 | + | ||
120 | + }).catch((err) => { | ||
121 | + | ||
122 | + }) | ||
123 | + }, | ||
124 | + | ||
125 | + // 获取行业分类 | ||
126 | + publicIndustry() { | ||
127 | + let that = this; | ||
128 | + let url = 'index/category/industry'; | ||
129 | + let params = { | ||
130 | + categories_id: that.data.categories_id, | ||
131 | + } | ||
132 | + let header = { | ||
133 | + "XX-Token": wx.getStorageSync('token'), | ||
134 | + "XX-Device-Type": 'wxapp' | ||
135 | + } | ||
136 | + app.post(url, params, header).then((res) => { | ||
137 | + console.log(res); | ||
138 | + // 获取值 | ||
139 | + that.setData({ | ||
140 | + // personal: res.data | ||
141 | + industry: res.data | ||
142 | + }) | ||
143 | + | ||
144 | + }).catch((err) => { | ||
145 | + | ||
146 | + }) | ||
147 | + }, | ||
148 | + | ||
149 | + // 获取岗位 | ||
150 | + publicPost(){ | ||
151 | + let that = this; | ||
152 | + let url = 'index/category/station'; | ||
153 | + let params = { | ||
154 | + industry_id: that.data.industry_id, | ||
155 | + } | ||
156 | + let header = { | ||
157 | + "XX-Token": wx.getStorageSync('token'), | ||
158 | + "XX-Device-Type": 'wxapp' | ||
159 | + } | ||
160 | + app.post(url, params, header).then((res) => { | ||
161 | + console.log(res); | ||
162 | + // 获取值 | ||
163 | + that.setData({ | ||
164 | + // personal: res.data | ||
165 | + post: res.data | ||
166 | + }) | ||
167 | + | ||
168 | + }).catch((err) => { | ||
169 | + | ||
170 | + }) | ||
171 | + }, | ||
172 | + | ||
173 | + // 选择学历 | ||
174 | + publicEdu(){ | ||
175 | + let that = this; | ||
176 | + let url = 'index/category/education'; | ||
177 | + let params = { | ||
178 | + // industry_id: that.data.industry_id, | ||
179 | + } | ||
180 | + let header = { | ||
181 | + "XX-Token": wx.getStorageSync('token'), | ||
182 | + "XX-Device-Type": 'wxapp' | ||
183 | + } | ||
184 | + app.post(url, params, header).then((res) => { | ||
185 | + console.log(res); | ||
186 | + // 获取值 | ||
187 | + that.setData({ | ||
188 | + edu: res.data | ||
189 | + }) | ||
190 | + console.log(res.data) | ||
191 | + | ||
192 | + }).catch((err) => { | ||
193 | + | ||
194 | + }) | ||
195 | + }, | ||
196 | + | ||
197 | + // 调用Ajax | ||
198 | + publish() { | ||
199 | + let that = this; | ||
200 | + let url = 'index/job/publish_job'; | ||
201 | + let params = { | ||
202 | + categories_id: that.data.categories_id, | ||
203 | + | ||
204 | + } | ||
205 | + let header = { | ||
206 | + "XX-Token": wx.getStorageSync('token'), | ||
207 | + "XX-Device-Type": 'wxapp' | ||
208 | + } | ||
209 | + app.post(url, params, header).then((res) => { | ||
210 | + console.log(res); | ||
211 | + // 获取值 | ||
212 | + that.setData({ | ||
213 | + // personal: res.data | ||
214 | + publish: res.data | ||
215 | + }) | ||
216 | + | ||
217 | + }).catch((err) => { | ||
218 | + | ||
219 | + }) | ||
220 | + }, | ||
75 | 221 | ||
76 | 222 | ||
77 | 223 | ||
@@ -88,16 +234,14 @@ Page({ | @@ -88,16 +234,14 @@ Page({ | ||
88 | // 返回选定照片的本地文件路径列表,tempFilePath可以作为img标签的src属性显示图片 | 234 | // 返回选定照片的本地文件路径列表,tempFilePath可以作为img标签的src属性显示图片 |
89 | var tempFilePaths = res.tempFilePaths; | 235 | var tempFilePaths = res.tempFilePaths; |
90 | that.setData({ | 236 | that.setData({ |
91 | - images: that.data.images.concat(tempFilePaths) | 237 | + logoitem: res.tempFilePaths[0] |
92 | }); | 238 | }); |
93 | - | ||
94 | } | 239 | } |
95 | }) | 240 | }) |
96 | }, | 241 | }, |
97 | 242 | ||
98 | // 图片预览 | 243 | // 图片预览 |
99 | previewImage: function (e) { | 244 | previewImage: function (e) { |
100 | - //console.log(this.data.images); | ||
101 | var current = e.target.dataset.src | 245 | var current = e.target.dataset.src |
102 | wx.previewImage({ | 246 | wx.previewImage({ |
103 | current: current, | 247 | current: current, |
@@ -115,6 +259,45 @@ Page({ | @@ -115,6 +259,45 @@ Page({ | ||
115 | }); | 259 | }); |
116 | }, | 260 | }, |
117 | 261 | ||
262 | + chooseImage2: function () { | ||
263 | + // 选择图片 | ||
264 | + wx.chooseImage({ | ||
265 | + count: 3, // 默认9 | ||
266 | + sizeType: ['compressed'], | ||
267 | + sourceType: ['album', 'camera'], | ||
268 | + // 可以指定来源是相册还是相机,默认二者都有 | ||
269 | + success: function (res) { | ||
270 | + console.log(res) | ||
271 | + // 返回选定照片的本地文件路径列表,tempFilePath可以作为img标签的src属性显示图片 | ||
272 | + var tempFilePaths = res.tempFilePaths; | ||
273 | + that.setData({ | ||
274 | + // images: that.data.images.concat(tempFilePaths) | ||
275 | + banneritem: res.tempFilePaths[0] | ||
276 | + }); | ||
277 | + | ||
278 | + } | ||
279 | + }) | ||
280 | + }, | ||
281 | + | ||
282 | + // 图片预览 | ||
283 | + previewImage2: function (e) { | ||
284 | + //console.log(this.data.images); | ||
285 | + var current = e.target.dataset.src | ||
286 | + wx.previewImage({ | ||
287 | + current: current, | ||
288 | + urls: this.data.images2 | ||
289 | + }) | ||
290 | + }, | ||
291 | + | ||
292 | + // 图片删除功能 | ||
293 | + delete2: function (e) { | ||
294 | + var index = e.currentTarget.dataset.index; | ||
295 | + var images = that.data.images2; | ||
296 | + images2.splice(index, 1); | ||
297 | + that.setData({ | ||
298 | + images2: images2 | ||
299 | + }); | ||
300 | + }, | ||
118 | 301 | ||
119 | 302 | ||
120 | 303 |
@@ -3,113 +3,81 @@ | @@ -3,113 +3,81 @@ | ||
3 | <view class='item'> | 3 | <view class='item'> |
4 | <view class='item_left'>岗位分类</view> | 4 | <view class='item_left'>岗位分类</view> |
5 | 5 | ||
6 | - <picker bindchange="jobClass" value="{{jobIndex}}" range="{{array}}"> | 6 | + <picker bindchange="jobClass" value="{{jobIndex}}" range="{{array}}" range-key='categories_name' data-id='{{item.id}}'> |
7 | <view class='item_right'> | 7 | <view class='item_right'> |
8 | <view class="item_right_text"> | 8 | <view class="item_right_text"> |
9 | - {{array[jobIndex]}} | 9 | + {{array[jobIndex].categories_name}} |
10 | </view> | 10 | </view> |
11 | <view class='item_right_icon'> | 11 | <view class='item_right_icon'> |
12 | <image src='../../img/right.png'></image> | 12 | <image src='../../img/right.png'></image> |
13 | </view> | 13 | </view> |
14 | </view> | 14 | </view> |
15 | </picker> | 15 | </picker> |
16 | - <!-- <view class='item_right_text'>在家可做</view> | ||
17 | - <view class='item_right_icon'> | ||
18 | - <image src='../../img/right.png'></image> | ||
19 | - </view> --> | ||
20 | </view> | 16 | </view> |
21 | - | ||
22 | <view class='item'> | 17 | <view class='item'> |
23 | <view class='item_left'>选择行业</view> | 18 | <view class='item_left'>选择行业</view> |
24 | - | ||
25 | - <picker bindchange="industryClass" value="{{industryIndex}}" range="{{industry}}"> | 19 | + <picker bindchange="industryClass" value="{{industryIndex}}" range="{{industry}}" range-key='industry_name' > |
26 | <view class='item_right'> | 20 | <view class='item_right'> |
27 | <view class="item_right_text"> | 21 | <view class="item_right_text"> |
28 | - {{industry[industryIndex]}} | 22 | + <!-- {{industry[industryIndex].industry_name}} --> |
23 | + {{hangye}} | ||
29 | </view> | 24 | </view> |
30 | <view class='item_right_icon'> | 25 | <view class='item_right_icon'> |
31 | <image src='../../img/right.png'></image> | 26 | <image src='../../img/right.png'></image> |
32 | </view> | 27 | </view> |
33 | </view> | 28 | </view> |
34 | </picker> | 29 | </picker> |
35 | - <!-- <view class='item_right_text'>在家可做</view> | ||
36 | - <view class='item_right_icon'> | ||
37 | - <image src='../../img/right.png'></image> | ||
38 | - </view> --> | ||
39 | - | ||
40 | </view> | 30 | </view> |
41 | 31 | ||
42 | <view class='item'> | 32 | <view class='item'> |
43 | <view class='item_left'>选择岗位</view> | 33 | <view class='item_left'>选择岗位</view> |
44 | - | ||
45 | - <picker bindchange="postClass" value="{{postIndex}}" range="{{post}}"> | 34 | + <picker bindchange="postClass" value="{{postIndex}}" range="{{post}}" range-key='station_name'> |
46 | <view class='item_right'> | 35 | <view class='item_right'> |
47 | <view class="item_right_text"> | 36 | <view class="item_right_text"> |
48 | - {{post[postIndex]}} | 37 | + <!-- {{post[postIndex].station_name}} --> |
38 | + {{gangwei}} | ||
49 | </view> | 39 | </view> |
50 | <view class='item_right_icon'> | 40 | <view class='item_right_icon'> |
51 | <image src='../../img/right.png'></image> | 41 | <image src='../../img/right.png'></image> |
52 | </view> | 42 | </view> |
53 | </view> | 43 | </view> |
54 | </picker> | 44 | </picker> |
55 | - <!-- <view class='item_right_text'>在家可做</view> | ||
56 | - <view class='item_right_icon'> | ||
57 | - <image src='../../img/right.png'></image> | ||
58 | - </view> --> | ||
59 | - | ||
60 | </view> | 45 | </view> |
61 | 46 | ||
62 | 47 | ||
63 | <!-- 企业logo --> | 48 | <!-- 企业logo --> |
64 | <view class='item logo'> | 49 | <view class='item logo'> |
65 | <view class='item_left'>企业logo</view> | 50 | <view class='item_left'>企业logo</view> |
66 | - <!-- <view class='item_right'> </view> --> | ||
67 | - | ||
68 | - | ||
69 | <!-- logo图片 --> | 51 | <!-- logo图片 --> |
70 | <view class='pic_box'> | 52 | <view class='pic_box'> |
71 | - <view class="btn-file" wx:for="{{images}}" wx:key=""> | ||
72 | - <image src="{{item}}" data-src="{{item}}" bindtap="previewImage" mode="aspectFill" /> | ||
73 | - | 53 | + <view class="btn-file"> |
54 | + <image src="{{logoitem?logoitem:'../../img/btn-file.png'}}" data-src="{{item}}" bindtap="chooseImage" /> | ||
74 | <!-- 删除按钮 --> | 55 | <!-- 删除按钮 --> |
75 | - <view class="delete" bindtap="delete" data-index="{{index}}"> | 56 | + <!-- <view class="delete" bindtap="delete" data-index="{{index}}"> |
76 | <image src='../../img/icon.png'></image> | 57 | <image src='../../img/icon.png'></image> |
58 | + </view> --> | ||
77 | </view> | 59 | </view> |
78 | - </view> | ||
79 | - | ||
80 | - <view class='gallery_pic' bindtap='chooseImage'> | 60 | + <!-- <view class='gallery_pic' bindtap='chooseImage'> |
81 | <image src='../../img/btn-file.png'></image> | 61 | <image src='../../img/btn-file.png'></image> |
62 | + </view> --> | ||
82 | </view> | 63 | </view> |
83 | - | ||
84 | - | ||
85 | - </view> | ||
86 | - | ||
87 | - | ||
88 | - | ||
89 | - | ||
90 | </view> | 64 | </view> |
91 | <!-- banner --> | 65 | <!-- banner --> |
92 | <view class='item banner'> | 66 | <view class='item banner'> |
93 | <view class='item_left'>banner</view> | 67 | <view class='item_left'>banner</view> |
94 | <!-- logo图片 --> | 68 | <!-- logo图片 --> |
95 | <view class='pic_banner '> | 69 | <view class='pic_banner '> |
96 | - <view class="banner_small" wx:for="{{images}}" wx:key=""> | ||
97 | - <image src="{{item}}" data-src="{{item}}" bindtap="previewImage" mode="aspectFill" /> | ||
98 | - | 70 | + <view class="banner_small" > |
71 | + <image src="{{banneritem?banneritem:'../../img/btn-file.png'}}" data-src="{{item}}" bindtap="chooseImage2" /> | ||
99 | <!-- 删除按钮 --> | 72 | <!-- 删除按钮 --> |
100 | - <view class="delete" bindtap="delete" data-index="{{index}}"> | 73 | + <!-- <view class="delete" bindtap="delete2" data-index="{{index}}"> |
101 | <image src='../../img/icon.png'></image> | 74 | <image src='../../img/icon.png'></image> |
75 | + </view> --> | ||
102 | </view> | 76 | </view> |
103 | - </view> | ||
104 | - | ||
105 | - <view class='banner_pic' bindtap='chooseImage'> | 77 | + <!-- <view class='banner_pic' bindtap='chooseImage2'> |
106 | <image src='../../img/btn-file.png'></image> | 78 | <image src='../../img/btn-file.png'></image> |
79 | + </view> --> | ||
107 | </view> | 80 | </view> |
108 | - | ||
109 | - | ||
110 | - </view> | ||
111 | - | ||
112 | - | ||
113 | </view> | 81 | </view> |
114 | <!-- 输入工资 --> | 82 | <!-- 输入工资 --> |
115 | <view class='item'> | 83 | <view class='item'> |
@@ -122,17 +90,17 @@ | @@ -122,17 +90,17 @@ | ||
122 | </view> | 90 | </view> |
123 | <!-- 范围 --> | 91 | <!-- 范围 --> |
124 | <view class='item_right_bottom'> | 92 | <view class='item_right_bottom'> |
125 | - <view class='item_right_bottom_i'> | ||
126 | - 5000 | ||
127 | - </view> | 93 | + <input class='item_right_bottom_i' bindinput='minMoney' > |
94 | + | ||
95 | + </input> | ||
128 | <!-- 箭头 --> | 96 | <!-- 箭头 --> |
129 | <view class='item_arrowsR'> | 97 | <view class='item_arrowsR'> |
130 | <image src='../../img/arrowsR.png'></image> | 98 | <image src='../../img/arrowsR.png'></image> |
131 | </view> | 99 | </view> |
132 | 100 | ||
133 | - <view class='item_right_bottom_i'> | ||
134 | - 5000 | ||
135 | - </view> | 101 | + <input class='item_right_bottom_i' bindinput='maxMoney'> |
102 | + | ||
103 | + </input> | ||
136 | <!-- 元/月 --> | 104 | <!-- 元/月 --> |
137 | <view class='item_right_bottom_money'> | 105 | <view class='item_right_bottom_money'> |
138 | 元/月 | 106 | 元/月 |
@@ -150,12 +118,23 @@ | @@ -150,12 +118,23 @@ | ||
150 | <!-- 选择学历 --> | 118 | <!-- 选择学历 --> |
151 | <view class='item'> | 119 | <view class='item'> |
152 | <view class='item_left'>选择学历</view> | 120 | <view class='item_left'>选择学历</view> |
121 | + <picker bindchange="postClass" value="{{eduIndex}}" range="{{edu}}" range-key='education_name'> | ||
153 | <view class='item_right'> | 122 | <view class='item_right'> |
154 | - <view class='item_right_text'>小学及以下</view> | 123 | + <view class="item_right_text"> |
124 | + <!-- {{post[postIndex]}} --> | ||
125 | + {{edu[eduIndex].education_name}} | ||
126 | + </view> | ||
155 | <view class='item_right_icon'> | 127 | <view class='item_right_icon'> |
156 | <image src='../../img/right.png'></image> | 128 | <image src='../../img/right.png'></image> |
157 | </view> | 129 | </view> |
158 | </view> | 130 | </view> |
131 | + </picker> | ||
132 | + <!-- <view class='item_right'> | ||
133 | + <view class='item_right_text'>小学及以下</view> | ||
134 | + <view class='item_right_icon'> | ||
135 | + <image src='../../img/right.png'></image> | ||
136 | + </view> | ||
137 | + </view> --> | ||
159 | </view> | 138 | </view> |
160 | <!-- 发布时间 --> | 139 | <!-- 发布时间 --> |
161 | <view class='item'> | 140 | <view class='item'> |
@@ -257,7 +236,7 @@ | @@ -257,7 +236,7 @@ | ||
257 | 236 | ||
258 | <!-- 按钮 --> | 237 | <!-- 按钮 --> |
259 | <view class='bottom'> | 238 | <view class='bottom'> |
260 | - <view class='bottom_btn' bindtap='fabu'>确认发布</view> | 239 | + <view class='bottom_btn' bindtap='publish'>确认发布</view> |
261 | </view> | 240 | </view> |
262 | 241 | ||
263 | </view> | 242 | </view> |
@@ -148,6 +148,8 @@ page{ | @@ -148,6 +148,8 @@ page{ | ||
148 | font-family:PingFang-SC-Medium; | 148 | font-family:PingFang-SC-Medium; |
149 | font-weight:500; | 149 | font-weight:500; |
150 | color:rgba(26,26,26,1); | 150 | color:rgba(26,26,26,1); |
151 | + box-sizing: border-box; | ||
152 | + padding: 0 8rpx; | ||
151 | 153 | ||
152 | } | 154 | } |
153 | .item_arrowsR{ | 155 | .item_arrowsR{ |
1 | // pages/record/record.js | 1 | // pages/record/record.js |
2 | +const app = getApp() | ||
2 | Page({ | 3 | Page({ |
3 | 4 | ||
4 | /** | 5 | /** |
5 | * 页面的初始数据 | 6 | * 页面的初始数据 |
6 | */ | 7 | */ |
7 | data: { | 8 | data: { |
8 | - | 9 | + record: '', |
9 | }, | 10 | }, |
10 | 11 | ||
11 | /** | 12 | /** |
@@ -24,7 +25,35 @@ Page({ | @@ -24,7 +25,35 @@ Page({ | ||
24 | }) | 25 | }) |
25 | }, | 26 | }, |
26 | onLoad: function (options) { | 27 | onLoad: function (options) { |
28 | + this.getRecord() | ||
29 | + }, | ||
30 | + | ||
31 | + // 报名记录Ajax | ||
32 | + getRecord() { | ||
33 | + | ||
34 | + let that = this; | ||
35 | + let url = 'index/user/user_job_apply_record'; | ||
36 | + let params = { | ||
37 | + | ||
38 | + } | ||
39 | + let header = { | ||
40 | + "XX-Token": wx.getStorageSync('token'), | ||
41 | + "XX-Device-Type": 'wxapp' | ||
42 | + } | ||
43 | + app.post(url, params, header).then((res) => { | ||
44 | + console.log(res); | ||
45 | + // 获取值 | ||
46 | + that.setData({ | ||
47 | + record: res.data | ||
48 | + }) | ||
49 | + | ||
50 | + | ||
51 | + | ||
27 | 52 | ||
53 | + | ||
54 | + }).catch((err) => { | ||
55 | + | ||
56 | + }) | ||
28 | }, | 57 | }, |
29 | 58 | ||
30 | 59 |
@@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
5 | <view class='underline'></view> | 5 | <view class='underline'></view> |
6 | <!-- 条目 --> | 6 | <!-- 条目 --> |
7 | <view class='items'> | 7 | <view class='items'> |
8 | - <view class='item' bindtap='toPosition'> | 8 | + <view class='item' bindtap='toPosition' wx:for='{{record}}' wx:key=''> |
9 | <!-- 头部 --> | 9 | <!-- 头部 --> |
10 | <view class='item_top'> | 10 | <view class='item_top'> |
11 | <view class='item_top_left'> | 11 | <view class='item_top_left'> |
@@ -13,8 +13,8 @@ | @@ -13,8 +13,8 @@ | ||
13 | <image src='/img/aicon_08@2x.png'></image> | 13 | <image src='/img/aicon_08@2x.png'></image> |
14 | </view> | 14 | </view> |
15 | <view class='item_top_left_text'> | 15 | <view class='item_top_left_text'> |
16 | - <view class='text_top'>酒店服务员</view> | ||
17 | - <view class='text_bottom'>4000-5000元/月</view> | 16 | + <view class='text_top'>{{item.station}}</view> |
17 | + <view class='text_bottom'>{{item.min_money}}-{{item.max_money}}元/月</view> | ||
18 | </view> | 18 | </view> |
19 | </view> | 19 | </view> |
20 | 20 | ||
@@ -29,7 +29,7 @@ | @@ -29,7 +29,7 @@ | ||
29 | <image src='/img/aicon_10@2x.png'></image> | 29 | <image src='/img/aicon_10@2x.png'></image> |
30 | </view> | 30 | </view> |
31 | <!-- 名字 --> | 31 | <!-- 名字 --> |
32 | - <view>王思迪</view> | 32 | + <view>{{item.user_nickname}}</view> |
33 | </view> | 33 | </view> |
34 | 34 | ||
35 | <view class='item_bottom_right'> | 35 | <view class='item_bottom_right'> |
1 | // pages/record2/record2.js | 1 | // pages/record2/record2.js |
2 | +const app = getApp() | ||
2 | Page({ | 3 | Page({ |
3 | 4 | ||
4 | /** | 5 | /** |
5 | * 页面的初始数据 | 6 | * 页面的初始数据 |
6 | */ | 7 | */ |
7 | data: { | 8 | data: { |
8 | - | 9 | + collect: '', |
9 | }, | 10 | }, |
10 | 11 | ||
11 | /** | 12 | /** |
12 | * 生命周期函数--监听页面加载 | 13 | * 生命周期函数--监听页面加载 |
13 | */ | 14 | */ |
14 | onLoad: function (options) { | 15 | onLoad: function (options) { |
16 | + this.collectRecord() | ||
17 | + }, | ||
18 | + | ||
19 | + collectRecord() { | ||
20 | + | ||
21 | + let that = this; | ||
22 | + let url = 'index/user/user_job_apply_record'; | ||
23 | + let params = { | ||
24 | + | ||
25 | + } | ||
26 | + let header = { | ||
27 | + "XX-Token": wx.getStorageSync('token'), | ||
28 | + "XX-Device-Type": 'wxapp' | ||
29 | + } | ||
30 | + app.post(url, params, header).then((res) => { | ||
31 | + console.log(res); | ||
32 | + // 获取值 | ||
33 | + that.setData({ | ||
34 | + collect: res.data | ||
35 | + }) | ||
15 | 36 | ||
37 | + | ||
38 | + | ||
39 | + | ||
40 | + | ||
41 | + }).catch((err) => { | ||
42 | + | ||
43 | + }) | ||
16 | }, | 44 | }, |
17 | 45 | ||
18 | /** | 46 | /** |
@@ -28,6 +56,7 @@ Page({ | @@ -28,6 +56,7 @@ Page({ | ||
28 | 56 | ||
29 | }, | 57 | }, |
30 | 58 | ||
59 | + | ||
31 | /** | 60 | /** |
32 | * 生命周期函数--监听页面显示 | 61 | * 生命周期函数--监听页面显示 |
33 | */ | 62 | */ |
@@ -6,7 +6,7 @@ | @@ -6,7 +6,7 @@ | ||
6 | <view class='underline'></view> | 6 | <view class='underline'></view> |
7 | <!-- 条目 --> | 7 | <!-- 条目 --> |
8 | <view class='items'> | 8 | <view class='items'> |
9 | - <view class='item'> | 9 | + <view class='item' wx:for='{{collect}}' wx:key=''> |
10 | <!-- 头部 --> | 10 | <!-- 头部 --> |
11 | <view class='item_top'> | 11 | <view class='item_top'> |
12 | <view class='item_top_left'> | 12 | <view class='item_top_left'> |
@@ -14,8 +14,8 @@ | @@ -14,8 +14,8 @@ | ||
14 | <image src='/img/aicon_08@2x.png'></image> | 14 | <image src='/img/aicon_08@2x.png'></image> |
15 | </view> | 15 | </view> |
16 | <view class='item_top_left_text'> | 16 | <view class='item_top_left_text'> |
17 | - <view class='text_top'>酒店服务员</view> | ||
18 | - <view class='text_bottom'>4000-5000元/月</view> | 17 | + <view class='text_top'>{{item.station_name}}</view> |
18 | + <view class='text_bottom'>{{item.min_money}}-{{item.max_money}}元/月</view> | ||
19 | </view> | 19 | </view> |
20 | </view> | 20 | </view> |
21 | 21 | ||
@@ -30,7 +30,7 @@ | @@ -30,7 +30,7 @@ | ||
30 | <image src='/img/aicon_10@2x.png'></image> | 30 | <image src='/img/aicon_10@2x.png'></image> |
31 | </view> | 31 | </view> |
32 | <!-- 名字 --> | 32 | <!-- 名字 --> |
33 | - <view>王思迪</view> | 33 | + <view>{{item.resume_name}}</view> |
34 | </view> | 34 | </view> |
35 | 35 | ||
36 | <view class='item_bottom_right'> | 36 | <view class='item_bottom_right'> |
@@ -41,41 +41,7 @@ | @@ -41,41 +41,7 @@ | ||
41 | </view> | 41 | </view> |
42 | </view> | 42 | </view> |
43 | </view> | 43 | </view> |
44 | - <view class='item'> | ||
45 | - <!-- 头部 --> | ||
46 | - <view class='item_top'> | ||
47 | - <view class='item_top_left'> | ||
48 | - <view class='item_top_left_pic'> | ||
49 | - <image src='/img/aicon_08@2x.png'></image> | ||
50 | - </view> | ||
51 | - <view class='item_top_left_text'> | ||
52 | - <view class='text_top'>酒店服务员</view> | ||
53 | - <view class='text_bottom'>4000-5000元/月</view> | ||
54 | - </view> | ||
55 | - </view> | ||
56 | - | ||
57 | - <view class='item_top_right' bindtap='regSuccess'> | ||
58 | - 报名 | ||
59 | - </view> | ||
60 | - </view> | ||
61 | - <!-- 底部 --> | ||
62 | - <view class='item_bottom'> | ||
63 | - <view class='item_bottom_left'> | ||
64 | - <view class='item_bottom_left_pic'> | ||
65 | - <image src='/img/aicon_10@2x.png'></image> | ||
66 | - </view> | ||
67 | - <!-- 名字 --> | ||
68 | - <view>王思迪</view> | ||
69 | - </view> | ||
70 | 44 | ||
71 | - <view class='item_bottom_right'> | ||
72 | - <view class='item_bottom_left_pic'> | ||
73 | - <image src='/img/aicon_09@2x.png'></image> | ||
74 | - </view> | ||
75 | - <view>南开区 3.2km</view> | ||
76 | - </view> | ||
77 | - </view> | ||
78 | - </view> | ||
79 | 45 | ||
80 | 46 | ||
81 | </view> | 47 | </view> |
@@ -6,9 +6,31 @@ Page({ | @@ -6,9 +6,31 @@ Page({ | ||
6 | * 页面的初始数据 | 6 | * 页面的初始数据 |
7 | */ | 7 | */ |
8 | data: { | 8 | data: { |
9 | - registrationList:'' | 9 | + mask_show: false, |
10 | + registrationList:'', | ||
10 | }, | 11 | }, |
11 | 12 | ||
13 | + // 打开mask | ||
14 | + toOpen(){ | ||
15 | + this.setData({ | ||
16 | + mask_show:true | ||
17 | + }) | ||
18 | + }, | ||
19 | + | ||
20 | + // 关闭mask | ||
21 | + toClose(){ | ||
22 | + this.setData({ | ||
23 | + mask_show: false | ||
24 | + }) | ||
25 | + }, | ||
26 | + | ||
27 | + toPositionDetails(e){ | ||
28 | + let id = e.currentTarget.dataset.id | ||
29 | + let user_id = e.currentTarget.dataset.user_id | ||
30 | + wx.navigateTo({ | ||
31 | + url: '/pages/employerDetails/employerDetails?id=' + id + '&user_id=' + user_id , | ||
32 | + }) | ||
33 | + }, | ||
12 | /** | 34 | /** |
13 | * 生命周期函数--监听页面加载 | 35 | * 生命周期函数--监听页面加载 |
14 | */ | 36 | */ |
@@ -31,13 +53,11 @@ Page({ | @@ -31,13 +53,11 @@ Page({ | ||
31 | console.log(res); | 53 | console.log(res); |
32 | // 获取值 | 54 | // 获取值 |
33 | that.setData({ | 55 | that.setData({ |
34 | - personal: res.data | 56 | + registrationList: res.data |
35 | }) | 57 | }) |
36 | 58 | ||
37 | 59 | ||
38 | 60 | ||
39 | - | ||
40 | - | ||
41 | }).catch((err) => { | 61 | }).catch((err) => { |
42 | 62 | ||
43 | }) | 63 | }) |
@@ -7,20 +7,20 @@ | @@ -7,20 +7,20 @@ | ||
7 | <view class='underline'></view> | 7 | <view class='underline'></view> |
8 | <!-- 条目 --> | 8 | <!-- 条目 --> |
9 | <view class='items'> | 9 | <view class='items'> |
10 | - <view class='item'> | 10 | + <view class='item' wx:for='{{registrationList}}' wx:key=''> |
11 | <!-- 头部 --> | 11 | <!-- 头部 --> |
12 | <view class='item_top'> | 12 | <view class='item_top'> |
13 | <view class='item_top_left'> | 13 | <view class='item_top_left'> |
14 | <view class='item_top_left_pic'> | 14 | <view class='item_top_left_pic'> |
15 | - <image src='/img/aicon_49@2x.png'></image> | 15 | + <image src='{{item.avatar}}'></image> |
16 | </view> | 16 | </view> |
17 | <view class='item_top_left_text'> | 17 | <view class='item_top_left_text'> |
18 | - <view class='text_top'>酒店服务员</view> | ||
19 | - <view class='text_bottom'>4000-5000元/月</view> | 18 | + <view class='text_top'>{{item.station_name}}</view> |
19 | + <view class='text_bottom'>{{item.min_money}}-{{item.max_money}} {{item.unit_name}}</view> | ||
20 | </view> | 20 | </view> |
21 | </view> | 21 | </view> |
22 | 22 | ||
23 | - <view class='item_top_right'> | 23 | + <view class='item_top_right' bindtap='toPositionDetails' data-id='{{item.id}}' data-user_id='{{item.user_id}}'> |
24 | 查看 | 24 | 查看 |
25 | </view> | 25 | </view> |
26 | </view> | 26 | </view> |
@@ -28,24 +28,25 @@ | @@ -28,24 +28,25 @@ | ||
28 | <view class='item_bottom'> | 28 | <view class='item_bottom'> |
29 | <view class='item_bottom_left'> | 29 | <view class='item_bottom_left'> |
30 | <view class='item_bottom_left_text'> | 30 | <view class='item_bottom_left_text'> |
31 | - 高萌 | 31 | + {{item.resume_name}} |
32 | <!-- <image src='/img/aicon_10@2x.png'></image> --> | 32 | <!-- <image src='/img/aicon_10@2x.png'></image> --> |
33 | </view> | 33 | </view> |
34 | <!-- 时间 --> | 34 | <!-- 时间 --> |
35 | - <view class='item_time'>2019.02.26-11:36</view> | 35 | + <!-- <view class='item_time'>2019.02.26-11:36</view> --> |
36 | + <view class='item_time'>{{item.create_time}}</view> | ||
36 | </view> | 37 | </view> |
37 | 38 | ||
38 | <view class='item_bottom_right'> | 39 | <view class='item_bottom_right'> |
39 | <view class='item_bottom_left_pic'> | 40 | <view class='item_bottom_left_pic'> |
40 | <image src='/img/aicon_50@2x.png'></image> | 41 | <image src='/img/aicon_50@2x.png'></image> |
41 | </view> | 42 | </view> |
42 | - <view class='item_bottom_left_area'>拨打电话</view> | 43 | + <view class='item_bottom_left_area' bindtap='toOpen'>拨打电话</view> |
43 | </view> | 44 | </view> |
44 | </view> | 45 | </view> |
45 | </view> | 46 | </view> |
46 | 47 | ||
47 | - <view class='item'> | ||
48 | - <!-- 头部 --> | 48 | + <!-- <view class='item'> |
49 | + | ||
49 | <view class='item_top'> | 50 | <view class='item_top'> |
50 | <view class='item_top_left'> | 51 | <view class='item_top_left'> |
51 | <view class='item_top_left_pic'> | 52 | <view class='item_top_left_pic'> |
@@ -61,14 +62,14 @@ | @@ -61,14 +62,14 @@ | ||
61 | 查看 | 62 | 查看 |
62 | </view> | 63 | </view> |
63 | </view> | 64 | </view> |
64 | - <!-- 底部 --> | 65 | + |
65 | <view class='item_bottom'> | 66 | <view class='item_bottom'> |
66 | <view class='item_bottom_left'> | 67 | <view class='item_bottom_left'> |
67 | <view class='item_bottom_left_text'> | 68 | <view class='item_bottom_left_text'> |
68 | 高萌 | 69 | 高萌 |
69 | - <!-- <image src='/img/aicon_10@2x.png'></image> --> | 70 | + |
70 | </view> | 71 | </view> |
71 | - <!-- 时间 --> | 72 | + |
72 | <view class='item_time'>2019.02.26-11:36</view> | 73 | <view class='item_time'>2019.02.26-11:36</view> |
73 | </view> | 74 | </view> |
74 | 75 | ||
@@ -79,7 +80,7 @@ | @@ -79,7 +80,7 @@ | ||
79 | <view class='item_bottom_left_area'>拨打电话</view> | 80 | <view class='item_bottom_left_area'>拨打电话</view> |
80 | </view> | 81 | </view> |
81 | </view> | 82 | </view> |
82 | - </view> | 83 | + </view> --> |
83 | 84 | ||
84 | 85 | ||
85 | 86 | ||
@@ -89,5 +90,17 @@ | @@ -89,5 +90,17 @@ | ||
89 | <view class='bottom'> | 90 | <view class='bottom'> |
90 | 没有更多内容了 | 91 | 没有更多内容了 |
91 | </view> | 92 | </view> |
93 | +</view> | ||
92 | 94 | ||
95 | +<block wx:if='{{mask_show}}'> | ||
96 | +<view class='mask' wx:if='{{registrationList}}' wx:key=''> | ||
97 | + <view class='mask_item'> | ||
98 | + <view class='mask_item_top'>需要拨打电话吗</view> | ||
99 | + <view class='mask_item_mid'>{{item.user_resume_mobile}}1</view> | ||
100 | + <view class='mask_item_bottom'> | ||
101 | + <view class='mask_item_bottom_left' bindtap='toClose'>取消</view> | ||
102 | + <view class='mask_item_bottom_right' bindtap='toSubmit'>确定</view> | ||
103 | + </view> | ||
104 | + </view> | ||
93 | </view> | 105 | </view> |
106 | +</block> |
@@ -136,3 +136,55 @@ page{ | @@ -136,3 +136,55 @@ page{ | ||
136 | font-weight:500; | 136 | font-weight:500; |
137 | color:rgba(255,102,0,1); | 137 | color:rgba(255,102,0,1); |
138 | } | 138 | } |
139 | +.mask{ | ||
140 | + position: fixed; | ||
141 | + top: 0; | ||
142 | + right: 0; | ||
143 | + bottom: 0; | ||
144 | + left: 0; | ||
145 | + display: flex; | ||
146 | + justify-content: center; | ||
147 | + background: rgba(0, 0, 0, 0.3) | ||
148 | +} | ||
149 | +.mask_item{ | ||
150 | + margin-top: 300rpx; | ||
151 | + width: 526rpx; | ||
152 | + height: 300rpx; | ||
153 | + background: #fff; | ||
154 | + display: flex; | ||
155 | + flex-flow: column; | ||
156 | + justify-content: center; | ||
157 | + align-items: center; | ||
158 | +} | ||
159 | +.mask_item_top{ | ||
160 | + | ||
161 | +} | ||
162 | +.mask_item_mid{ | ||
163 | + margin-top: 30rpx; | ||
164 | +} | ||
165 | +.mask_item_bottom{ | ||
166 | + margin-top: 30rpx; | ||
167 | + display: flex; | ||
168 | +} | ||
169 | +.mask_item_bottom_left{ | ||
170 | + width:200rpx; | ||
171 | + height:76rpx; | ||
172 | + line-height: 76rpx; | ||
173 | + text-align: center; | ||
174 | + box-sizing: border-box; | ||
175 | + border:2rpx solid rgba(255,170,0,1); | ||
176 | + border-radius:10rpx; | ||
177 | + font-size: 28rpx; | ||
178 | + color: #FFAA00; | ||
179 | +} | ||
180 | +.mask_item_bottom_right{ | ||
181 | + margin-left: 50rpx; | ||
182 | + width:200rpx; | ||
183 | + height:76rpx; | ||
184 | + line-height: 76rpx; | ||
185 | + text-align: center; | ||
186 | + background:rgba(255,170,0,1); | ||
187 | + border-radius:10rpx; | ||
188 | + font-size: 28rpx; | ||
189 | + color: #fff; | ||
190 | +} |
-
请 注册 或 登录 后发表评论