You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bocai_supplyChain_pc/src/components/main/index.vue

474 lines
13 KiB
Vue

4 years ago
<template>
4 years ago
<!-- 首页页面 -->
4 years ago
<div class="main-container">
<div class="bgimg">
<a-carousel :autoplay="true" effect="fade" :dots="false" ref="scrollimg">
4 years ago
<img :src="item" alt="" v-for="(item, index) in imglist" :key="index" />
4 years ago
</a-carousel>
4 years ago
<div class="middleslogan" :style="{ opacity: isshow ? '1' : '0' }">
4 years ago
<i class="iconfont icon-yigezhuanmenfuwudailidepingtai"></i>
</div>
<div
id="toAboutBill"
style="height: 84px; width: 1200px; position: absolute; bottom: 0"
></div>
<!-- <div class="bottominfo">
Copyright © 2015 - 2022 Matripe. All Rights Reserved. <i></i>
<a target="_blank" href="https://beian.miit.gov.cn/#/Integrated/index">京ICP备16043923号-9</a>
</div> -->
</div>
<div class="navigationBar" ref="navigationBar" id="navigationBar">
<!-- <ul>
<li @click="toTargetLocation('aboutBill')"></li>
<li @click="toTargetLocation('cooperativeBrand')"></li>
<li @click="toTargetLocation('businessLandscape')"></li>
<li @click="toTargetLocation('relationUs')"></li>
</ul> -->
<a-anchor :affix="true">
<a-anchor-link
@click.native.prevent=""
href="#toAboutBill"
title="关于一手单"
/>
<a-anchor-link
@click.native.prevent=""
href="#cooperativeBrand"
title="合作品牌"
/>
<a-anchor-link
@click.native.prevent=""
href="#businessLandscape"
title="业务版图"
/>
<a-anchor-link
@click.native.prevent=""
href="#relationUs"
title="联系我们"
/>
</a-anchor>
</div>
<div class="aboutBill" id="aboutBill">
<div class="w">
<div class="title">关于一手单</div>
<div class="content">
<p>
伯才一手单隶属于郑州伯才人力科技有限公司是一个专门服务同业合作伙伴的综合平台一个专门服务代理的平台平台为合作伙伴提供交付全流程的产品和服务是伯才供应链产品矩阵中的旗舰产品平台通过直签联合派遣和战略合作等方式严选上线项目深度介入服务的每一个环节为合作伙伴的顺利交付保驾护航
</p>
<p>
郑州伯才人力科技有限公司是一家人力资源服务行业的数字化平台企业前身为北京矩阵动力科技有公司项目与2015年5月在郑州启动并于2016年5月在背景正式注册成立公司开始公司化运作旗下有人海北京企业管理有限公司江西人海企业管理有限公司等多家企业服务业务公司2021年启用全新业务品牌伯才新品牌新里程品牌升级但初心不变伯才人以崭新的面貌更好的服务老乡成就伙伴
</p>
</div>
</div>
</div>
<div class="cooperativeBrand" id="cooperativeBrand">
<div class="w">
<div class="title">合作品牌</div>
<div class="content">
<ul class="clearfix">
<li v-for="item in cooperativeImg" :key="item">
<img :src="`../../../${item}`" alt="" />
</li>
</ul>
</div>
</div>
</div>
<div class="businessLandscape" id="businessLandscape">
<div class="w">
<div class="title">业务版图</div>
<div class="content">
<div class="left">
<p>合作项目覆盖</p>
<p>
华东华南华中华北西南西北6大区域辐射18个省及直辖市触达城市100+
</p>
</div>
<div class="right">
<img src="../../../static/img/map.svg" alt="" />
</div>
</div>
4 years ago
</div>
</div>
<div class="relationUs" id="relationUs">
<div class="w">
<div class="title">联系我们</div>
<div class="content">
<div class="left">
<p>总部地址河南省郑州市郑东新区升龙广场2号楼A座</p>
<p>接待地址河南省郑州市航空港区相州街29-60</p>
<p>联系电话168 3666 8888</p>
</div>
<div class="right">
<span
><img src="../../../static/img/【伯才一手单】公众号.png" alt="" />
<p>伯才一手单公众号</p></span
>
<span
><img src="../../../static/img/【伯才一手单】小程序.png" alt="" />
<p>伯才一手单小程序</p></span
>
</div>
</div>
</div>
</div>
<div class="banner">
<div class="w">
<i class="iconfont icon-yigezhuanmenfuwudailidepingtai"></i>
</div>
</div>
<footer>
<div class="w">
<!-- <ul>
<li @click="totop"><router-link to="/list">一手职位</router-link></li>
<li></li>
<li @click="totop">
<router-link to="/serviceoutlets">服务网点</router-link>
</li>
<li></li>
<li @click="totop">
<router-link to="/aboutus">关于我们</router-link>
</li>
</ul> -->
<div>
Copyright © 2015 - 2022 Matripe. All Rights Reserved. <i></i>
<a target="_blank" href="https://beian.miit.gov.cn/#/Integrated/index"
>京ICP备16043923号-9</a
>
</div>
</div>
</footer>
4 years ago
</div>
</template>
<script>
import Vue from "vue";
const path = require("path");
const files = require.context("../../../static/img", false, /.png$/);
// const modules = {}
console.dir(Vue);
4 years ago
export default {
// 组件名称
name: "Main",
4 years ago
// 局部注册的组件
components: {},
// 组件参数 接收来自父组件的数据
props: {},
// 组件状态值
data() {
4 years ago
return {
isshow: false,
4 years ago
imglist: [
require("../../assets/banner1.png"),
require("../../assets/banner2.png"),
require("../../assets/banner3.png"),
],
cooperativeImg: [],
4 years ago
};
4 years ago
},
// 计算属性
computed: {},
// 侦听器
watch: {},
// 生命周期钩子 注:没用到的钩子请自行删除
/**
* 组件实例创建完成属性已绑定但DOM还未生成$ el属性还不存在
*/
4 years ago
created() {
setTimeout(() => {
this.isshow = true;
}, 500);
},
4 years ago
/**
* el 被新创建的 vm.el 替换并挂载到实例上去之后调用该钩子
* 如果 root 实例挂载了一个文档内元素 mounted 被调用时 vm.el 也在文档内
*/
mounted() {
this.getCooperativeImg();
// console.log(navigationBar);
},
4 years ago
// 组件方法
methods: {
changeStyle(e) {
console.log(e);
console.log(1);
},
getCooperativeImg() {
files.keys().forEach((key) => {
const names = path.basename(key, ".png"); //返回文件名 不含后缀名
let content = files(key).default || files(key);
if (
names.indexOf("imgList") != -1 &&
names.substr(names.length - 1, 1) == "1"
) {
this.cooperativeImg.push(content);
}
});
},
// toTargetLocation(target) {
// // console.log(123);
// const now = window.scrollY;
// // 2. 目标位置(文章信息区域的高度)
// const dist = document.getElementById(target).getBoundingClientRect().top;
// console.log(dist);
// animate({
// from: now, // 当前的位置
// to: dist, // 目标位置
// onUpdate: (latest) => window.scrollTo(0, latest),
// });
// },
totop() {
// console.log(window);
document.body.scrollTop = 0;
document.documentElement.scrollTop = 0;
// window.body.scrollY = 0;
},
},
4 years ago
};
</script>
<style scoped lang="less">
.clearfix:after {
/*伪元素是行内元素 正常浏览器清除浮动方法*/
content: "";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
4 years ago
.main-container {
overflow: hidden;
.bgimg {
position: relative;
overflow: hidden;
width: 100vw;
height: calc(100% - 80px);
// height: 100%;
height: calc(100vh - 80px);
4 years ago
// background: url("../../assets/banner1.png") no-repeat center;
img {
4 years ago
width: 1920px !important;
height: calc(100vh - 80px);
4 years ago
}
.middleslogan {
position: absolute;
4 years ago
top: 40%;
4 years ago
left: 50%;
4 years ago
transform: translateX(-50%) translateY(-50%);
4 years ago
color: #fff;
4 years ago
z-index: 99;
4 years ago
transition: all 1.5s;
4 years ago
i {
font-size: 90px;
4 years ago
text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.4);
4 years ago
}
}
.bottominfo {
position: absolute;
bottom: 40px;
left: 50%;
font-size: 14px;
transform: translateX(-50%);
color: #fff;
}
}
/deep/ .navigationBar {
overflow: hidden;
width: 1200px;
height: 84px;
position: absolute;
bottom: 0;
left: 50%;
border-radius: 8px 8px 0 0;
overflow: hidden;
transform: translateX(-50%);
transition: all 0.2s;
z-index: 999;
.ant-anchor {
display: flex;
height: 84px;
margin: 0 auto;
justify-content: center;
align-items: center;
background-color: #fff;
> div {
margin: 0 52px;
font-size: 16px;
}
.ant-anchor-link-active > .ant-anchor-link-title {
color: #ff6a00;
}
.ant-anchor-ink {
display: none;
}
}
}
.aboutBill,
.cooperativeBrand,
.businessLandscape,
.relationUs {
padding-top: 25px;
padding-bottom: 70px;
background-color: #fff;
.title {
position: relative;
text-align: center;
font-size: 24px;
line-height: 33px;
padding-bottom: 12px;
&:after {
content: "";
display: block;
width: 30px;
height: 2px;
position: absolute;
background-color: #ff6a00;
bottom: 0;
left: 50%;
transform: translateX(-50%);
}
}
.content {
margin-top: 50px;
font-size: 18px;
line-height: 40px;
> p {
margin-bottom: 20px;
}
}
}
.cooperativeBrand {
padding-top: 100px;
// padding-bottom: 96px;
height: 740px;
background: url("../../../static/img/cooperativeBrandBg.png") no-repeat 100%;
.content {
ul {
li {
float: left;
width: 186px;
height: 88px;
margin-top: 16px;
border-radius: 8px;
&:not(li:nth-child(6n)) {
margin-right: 16px;
}
&:hover {
background-color: #fff;
box-shadow: 0px 0px 12px 3px #ddd;
}
img {
width: 100%;
height: 100%;
}
}
}
}
}
.businessLandscape {
.title {
margin-top: 80px;
}
.content {
display: flex;
justify-content: space-between;
.left {
display: flex;
flex-direction: column;
justify-content: center;
width: 330px;
font-size: 20px;
p:last-child {
font-size: 16px;
}
}
}
}
.relationUs {
background: url("../../../static/img/relationUsBg.png") no-repeat 100% 100%;
padding-bottom: 126px;
.title {
padding-top: 80px;
}
.content {
display: flex;
justify-content: space-between;
margin-top: 72px;
.left {
// display: flex;
}
.right {
display: flex;
justify-content: space-around;
> span {
text-align: center;
margin-right: 36px;
}
}
}
}
.banner {
height: 72px;
margin-top: 20px;
background-color: rgba(255, 106, 0);
margin-bottom: -20px;
.w {
display: flex;
height: 100%;
justify-content: center;
align-items: center;
i {
font-size: 32px;
color: #fff;
}
img:last-child {
width: 173px;
height: 42px;
margin-right: 110px;
}
}
// background-color: black;
}
footer {
padding: 30px;
margin-top: 20px;
.w {
ul {
display: flex;
justify-content: center;
li {
font-size: 16px;
text-align: center;
color: #4d575e;
line-height: 25px;
}
li:nth-of-type(2n) {
width: 1px;
height: 20px;
margin: 5px 54px;
background-color: #4d575e;
}
}
div {
text-align: center;
margin-top: 16px;
color: #4d575e;
font-size: 14px;
i {
display: inline-block;
vertical-align: middle;
width: 1px;
height: 16px;
margin: 0 10px;
background-color: #4d575e;
}
}
}
}
4 years ago
}
</style>