@@ -61,47 +61,24 @@
Company environment
@@ -110,10 +87,10 @@
import { Swiper, SwiperSlide } from 'swiper/vue'
import { nextTick, ref } from 'vue'
import 'swiper/css'
-import { Autoplay, Navigation, Pagination, Scrollbar, A11y, EffectCoverflow,EffectFade } from "swiper/modules";
+import { Autoplay, Navigation, Pagination, Scrollbar, A11y, EffectCoverflow, EffectFade } from "swiper/modules";
import ScrollReveal from 'scrollreveal';
import { NNumberAnimation } from 'naive-ui'
-let modules = [Autoplay, A11y, EffectCoverflow,EffectFade];
+let modules = [Autoplay, A11y, EffectCoverflow, EffectFade];
import "swiper/css";
import "swiper/css/navigation";
@@ -143,7 +120,7 @@ const swiperOptionsNews = {
speed: 500,
effect: 'fade',
loop: true,
- modules: [EffectFade,Autoplay,Navigation],
+ modules: [EffectFade, Autoplay, Navigation],
navigation: {
nextEl: '#swipen_prev',
prevEl: '#swipen_next',
@@ -161,7 +138,37 @@ onMounted(() => {
nextTick(() => {
animate()
})
+ getType();
})
+const openType = (item: any) => {
+ typeId.value = item.id;
+ getList();
+}
+const typeId = ref(0)
+const typeList = ref([])
+const getType = () => {
+ $api.post("/api/home.recruitment_information/cate", { page: 1, size: 100 })
+ .then((res: any) => {
+ console.log(res);
+ typeId.value = res.data.data.list[0].id;
+ typeList.value = res.data.data.list;
+ getList();
+ })
+ .catch((err) => {
+ console.dir(err)
+ })
+}
+const list = ref([])
+const getList = () => {
+ $api.get("/api/home.recruitment_information/index?cate_id="+typeId.value)
+ .then((res: any) => {
+ console.log(res)
+ list.value = res.data.data.list
+ })
+ .catch((err) => {
+ console.dir(err)
+ })
+}
const numberAnimationInstRef = ref()
const numberAnimationInstRefKH = ref()
const numberAnimationInstRefJS = ref()
@@ -253,41 +260,47 @@ const animate = () => {
}
.group_666 .swiper-slide img {
- width: 100%;
- height: 500px;
- height: auto;
- transition: 1s linear 2s;
- transform: scale(1.1, 1.1);
+ width: 100%;
+ height: 500px;
+ height: auto;
+ transition: 1s linear 2s;
+ transform: scale(1.1, 1.1);
}
.group_666 .swiper-slide-active img,
.swiper-slide-duplicate-active img {
- transition: 6s linear;
- transform: scale(1, 1);
+ transition: 6s linear;
+ transform: scale(1, 1);
}
-.bottom_imgs{
+
+.bottom_imgs {
background: url(/public/img/qall.png);
width: 1230px;
- height: 272px;
- background-size: 100%;
+ height: 272px;
+ background-size: 100%;
}
-.content_box{
- background: url(/public/img/m1.png);;
- width: 561px;height: 521px;
+
+.content_box {
+ background: url(/public/img/m1.png);
+ ;
+ width: 561px;
+ height: 521px;
z-index: 1;
position: absolute;
- right: -12px;
- bottom: -13px;
- background-size: 100%;
+ right: -12px;
+ bottom: -13px;
+ background-size: 100%;
}
+
.section_1s {
- height: 360px;
- background: url(public/img/allpeople.png) 100% no-repeat;
- background-size: 100% 100%;
- width: 585px;
- z-index: 10;
+ height: 360px;
+ background: url(public/img/allpeople.png) 100% no-repeat;
+ background-size: 100% 100%;
+ width: 585px;
+ z-index: 10;
}
-.text_13s{
+
+.text_13s {
width: 261px;
height: 48px;
line-height: 44px;
@@ -299,33 +312,37 @@ const animate = () => {
font-weight: 400;
text-align: center;
white-space: nowrap;
- margin-right:22px;
+ margin-right: 22px;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
- .imgs{
+
+ .imgs {
width: 24px;
height: 24px;
margin-right: 10px;
}
}
+
.box_17s {
- width: 100%;
- height: 490px;
- background: #F8F8F8;
- justify-content: flex-center;
+ width: 100%;
+ background: #F8F8F8;
+ justify-content: flex-center;
+ padding-bottom: 40px;
}
-.hbform{
+.hbform {
width: 100%;
}
-.boxgs{
+
+.boxgs {
width: 100%;
margin-top: 30px;
justify-content: center;
align-items: center;
- .title{
+
+ .title {
width: 130px;
height: 48px;
background: #FFFFFF;
@@ -336,53 +353,64 @@ const animate = () => {
font-weight: 400;
font-size: 18px;
color: #222222;
- &.active{
- background: linear-gradient( 360deg, #FC7428 0%, #FF9357 100%);
+ cursor: pointer;
+
+ &.active {
+ background: linear-gradient(360deg, #FC7428 0%, #FF9357 100%);
color: #FFFFFF;
}
}
}
+
.box_18s {
- width: 387px;
- height: 149px;
- background: url(public/img/lianxiyp.png) 100% no-repeat;
- z-index: 10;
- justify-content: center;
-// align-items: center;
- margin-right: 20px;
- .line{
- width: 347px;
- height: 1px;
- background: #D8D8D8;
- margin: 0 auto;
- }
- .titless{
- width: 100%;
- padding-top:20px;
- padding-left: 20px;
- .a1s{
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: 700;
- font-size: 18px;
- color: #3D3D3D;
+ width: 387px;
+ height: 149px;
+ background: url(public/img/lianxiyp.png) 100% no-repeat;
+ z-index: 10;
+ justify-content: center;
+ // align-items: center;
+ margin-right: 20px;
+
+ .line {
+ width: 347px;
+ height: 1px;
+ background: #D8D8D8;
+ margin: 0 auto;
}
- .a2s{
- margin: 20px 0;
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: 400;
- font-size: 12px;
+
+ .titless {
+ width: 100%;
+ padding-top: 20px;
+ padding-left: 20px;
+
+ .a1s {
+ font-family: Microsoft YaHei, Microsoft YaHei;
+ font-weight: 700;
+ font-size: 18px;
+ color: #3D3D3D;
+ }
+
+ .a2s {
+ margin: 20px 0;
+ font-family: Microsoft YaHei, Microsoft YaHei;
+ font-weight: 400;
+ font-size: 12px;
+ color: #768597;
+
+ }
+ }
+
+ .bottomss {
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ padding: 20px;
color: #768597;
-
}
- }
- .bottomss{
- width: 100%;
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 20px;
- color: #768597;
- }
-
+ &:hover {
+ cursor: pointer;
+ box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
+ }
}
diff --git a/pages/index.vue b/pages/index.vue
index bfac3e6..a914fd3 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -133,13 +133,13 @@