Authored by zhangtianqi

招聘页面bug修改

@@ -2279,88 +2279,6 @@ blockquote:before { @@ -2279,88 +2279,6 @@ blockquote:before {
2279 .owl-item-button{ 2279 .owl-item-button{
2280 color: #ffffff; 2280 color: #ffffff;
2281 } 2281 }
2282 -/*ztq 招聘页面样式 2022-09-21*/  
2283 -.m-1em{  
2284 - margin: 0 1em;  
2285 -}  
2286 -.min-width-100{  
2287 - min-width: 100px;  
2288 -}  
2289 -.w-70{  
2290 - width: calc(70% - 10px) !important;  
2291 -}  
2292 -.w-30{  
2293 - width: 30% !important;  
2294 -}  
2295 -.title{  
2296 - background-color: #F6F7FB;  
2297 - padding-left: 1em;  
2298 - color: #656767;  
2299 - font-weight: bold;  
2300 -}  
2301 -.recruit-Con{  
2302 - height:auto;  
2303 - width: 100%;  
2304 -}  
2305 -.box {  
2306 - width: 100%;  
2307 - padding: 15px;  
2308 - margin-bottom: 10px;  
2309 - border: 1px solid #d3d3d4;  
2310 - background: #fff;  
2311 -}  
2312 -.recruit-box .header{  
2313 - background: url("../img/recruit/recruitLeft.png") no-repeat 100%;  
2314 - background-size: auto;  
2315 -}  
2316 -.recruit-box .header i{  
2317 - width: .8em;  
2318 - height: .8em;  
2319 - border-radius: 50%;  
2320 - background-color: #E5312B;  
2321 - display: inline-block;  
2322 -}  
2323 -.recruit-box .header span{  
2324 - padding: 0 15px;  
2325 - text-align: center;  
2326 - display: inline-block;  
2327 - background: #fff;  
2328 - color: #343434;  
2329 -}  
2330 -.hot-recruit-box .header{  
2331 - background: url("../img/recruit/hot.png") no-repeat 100%;  
2332 - background-size: auto;  
2333 - position: relative;  
2334 -}  
2335 -.hot-recruit-box .header::after{  
2336 - content: '';  
2337 - width: 75%;  
2338 - height: 1px;  
2339 - background-color: #E5312B;  
2340 - /*border-bottom: 1px solid #E5312B;*/  
2341 - position: absolute;  
2342 - right: 0;  
2343 - bottom: 4px;  
2344 -}  
2345 -.hot-recruit-box .header i{  
2346 - width: 8px;  
2347 - height: 8px;  
2348 - border-radius: 50%;  
2349 - background-color: #E5312B;  
2350 - display: inline-block;  
2351 -}  
2352 -.hot-recruit-box .header span{  
2353 - width: 80px;  
2354 - text-align: center;  
2355 - display: inline-block;  
2356 - background: #fff;  
2357 - color: #343434;  
2358 -}  
2359 -.hot-recruit-box .hotList>a{  
2360 - font-size: 14px;  
2361 - color: #8C8C8C;  
2362 -}  
2363 -  
2364 .home-button{ 2282 .home-button{
2365 border-radius: 20px; 2283 border-radius: 20px;
2366 padding: 8px 40px; 2284 padding: 8px 40px;
@@ -2443,4 +2361,86 @@ blockquote:before { @@ -2443,4 +2361,86 @@ blockquote:before {
2443 z-index: -1; 2361 z-index: -1;
2444 background: url('../img/index/compatible-bg.png'); 2362 background: url('../img/index/compatible-bg.png');
2445 background-size: cover; 2363 background-size: cover;
  2364 +}
  2365 +
  2366 +/*ztq 招聘页面样式 2022-09-21*/
  2367 +.m-1em{
  2368 + margin: 0 1em;
  2369 +}
  2370 +.min-width-100{
  2371 + min-width: 100px;
  2372 +}
  2373 +.w-70{
  2374 + width: calc(70% - 10px) !important;
  2375 +}
  2376 +.w-30{
  2377 + width: 30% !important;
  2378 +}
  2379 +.title{
  2380 + background-color: #F6F7FB;
  2381 + padding-left: 1em;
  2382 + color: #656767;
  2383 + font-weight: bold;
  2384 +}
  2385 +.recruit-Con{
  2386 + height:auto;
  2387 + width: 100%;
  2388 +}
  2389 +.box {
  2390 + width: 100%;
  2391 + padding: 15px;
  2392 + margin-bottom: 10px;
  2393 + border: 1px solid #d3d3d4;
  2394 + background: #fff;
  2395 +}
  2396 +.recruit-box .header{
  2397 + background: url("../img/recruit/recruitLeft.png") no-repeat 100%;
  2398 + background-size: auto;
  2399 +}
  2400 +.recruit-box .header i{
  2401 + width: .8em;
  2402 + height: .8em;
  2403 + border-radius: 50%;
  2404 + background-color: #E5312B;
  2405 + display: inline-block;
  2406 +}
  2407 +.recruit-box .header span{
  2408 + padding: 0 15px;
  2409 + text-align: center;
  2410 + display: inline-block;
  2411 + background: #fff;
  2412 + color: #343434;
  2413 +}
  2414 +.hot-recruit-box .header{
  2415 + background: url("../img/recruit/hot.png") no-repeat 100%;
  2416 + background-size: auto;
  2417 + position: relative;
  2418 +}
  2419 +.hot-recruit-box .header::after{
  2420 + content: '';
  2421 + width: 75%;
  2422 + height: 1px;
  2423 + background-color: #E5312B;
  2424 + /*border-bottom: 1px solid #E5312B;*/
  2425 + position: absolute;
  2426 + right: 0;
  2427 + bottom: 4px;
  2428 +}
  2429 +.hot-recruit-box .header i{
  2430 + width: 8px;
  2431 + height: 8px;
  2432 + border-radius: 50%;
  2433 + background-color: #E5312B;
  2434 + display: inline-block;
  2435 +}
  2436 +.hot-recruit-box .header span{
  2437 + width: 80px;
  2438 + text-align: center;
  2439 + display: inline-block;
  2440 + background: #fff;
  2441 + color: #343434;
  2442 +}
  2443 +.hot-recruit-box .hotList>a{
  2444 + font-size: 14px;
  2445 + color: #8C8C8C;
2446 } 2446 }
@@ -6,19 +6,24 @@ export default { @@ -6,19 +6,24 @@ export default {
6 mixins:[pageInit], 6 mixins:[pageInit],
7 components: {}, 7 components: {},
8 props: [], 8 props: [],
9 -  
10 setup(props, {attrs, slots, emit}) { 9 setup(props, {attrs, slots, emit}) {
11 const {proxy} = Vue.getCurrentInstance(); 10 const {proxy} = Vue.getCurrentInstance();
12 - let type = proxy.$route.params.job;  
13 - let recruitHot = Vue.ref();  
14 - recruitHot = recruit().hot;  
15 - let recruitLeft = Vue.ref(); 11 + let recruitHot = Vue.ref(); // 热门招位 数据
  12 + recruitHot.value = recruit().hot;
  13 + let recruitLeft = Vue.ref(); // 职位招聘 数据
16 14
17 - recruitLeft = recruit()[type]; 15 + // 监听路由的传值 展示不同职位的数据
  16 + Vue.watch(
  17 + () => proxy.$route,
  18 + (val) => {
  19 + recruitLeft.value = recruit()[val.params.job];
  20 + },
  21 + {immediate:true}
  22 + )
18 23
19 return { 24 return {
20 recruitLeft, 25 recruitLeft,
21 - recruitHot 26 + recruitHot,
22 } 27 }
23 } 28 }
24 29