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

534 lines
15 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' }">
<i class="iconfont icon-bannerLOGO"></i>
4 years ago
<i class="iconfont icon-yigezhuanmenfuwudailidepingtai"></i>
4 years ago
<!-- <p style="font-size:90px;color:white">一个专门服务代理的平台</p> -->
<div v-if="isLogin">
<router-link to="/list" style="display: inline-block; width: 100%"
>查看职位</router-link
>
</div>
<div v-else>
<router-link to="/list" style="display: inline-block; width: 100%"
>登录</router-link
>
</div>
4 years ago
</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> -->
4 years ago
<a-anchor @click.prevent="" :affix="true">
<a-anchor-link href="#toAboutBill" title="关于一手单" />
<a-anchor-link href="#cooperativeBrand" title="合作品牌" />
<a-anchor-link href="#businessLandscape" title="业务版图" />
<a-anchor-link href="#relationUs" title="联系我们" />
</a-anchor>
</div>
<div class="aboutBill" id="aboutBill">
<div class="w">
<div class="title">关于一手单</div>
<div class="content">
<p>
4 years ago
伯才一手单隶属郑州伯才科技有限公司是一个专门服务同业合作伙伴的综合平台一个专门服务代理的平台平台为合作伙伴提供交付全流程的产品和服务是伯才供应链产品矩阵中的旗舰产品平台通过直签联合派遣和战略合作等方式严选上线项目深度介入服务的每一个环节为合作伙伴的顺利交付保驾护航
</p>
<p>
4 years ago
郑州伯才科技有限公司是一家人力资源服务行业的数字化平台企业前身为北京矩阵动力科技有限公司项目于2015年5月在郑州启动并于2016年5月在北京正式注册开始公司化运作旗下有人海北京企业管理有限公司江西人海企业管理有限公司等多家企业服务业务公司
</p>
<p>
4 years ago
郑州伯才科技有限公司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>
<span
style="
float: right;
font-size: 14px;
line-height: 20px;
margin-top: 16px;
"
>* 部分合作品牌展示</span
>
</div>
</div>
</div>
<div class="businessLandscape" id="businessLandscape">
<div class="w">
<div class="title">业务版图</div>
<div class="content">
<div class="left">
<p>伯才合作项目</p>
<p>触达城市100+</p>
<p>辐射18个省及直辖市</p>
<p>覆盖华东华南华中华北西南西北6大区域</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>
4 years ago
<p>联系电话0371-6611 3723</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";
import Cookies from "js-cookie";
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: [
4 years ago
"http://matripe.oss-cn-beijing.aliyuncs.com/yishoudan/newBanner/banner1.png",
"http://matripe.oss-cn-beijing.aliyuncs.com/yishoudan/newBanner/banner2.png",
"http://matripe.oss-cn-beijing.aliyuncs.com/yishoudan/newBanner/banner3.png",
4 years ago
],
cooperativeImg: [],
isLogin: false,
4 years ago
};
4 years ago
},
// 计算属性
computed: {},
// 侦听器
watch: {},
// 生命周期钩子 注:没用到的钩子请自行删除
/**
* 组件实例创建完成属性已绑定但DOM还未生成$ el属性还不存在
*/
4 years ago
created() {
if (sessionStorage.getItem("LOGIN_DATA") || Cookies.get("LOGIN_DATA")) {
this.isLogin = true;
}
4 years ago
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;
4 years ago
height: calc(100% - 32px);
// height: 100%;
4 years ago
// background: url("../../assets/banner1.png") no-repeat center;
img {
width: 100% !important;
4 years ago
height: calc(100vh - 32px);
4 years ago
}
.middleslogan {
position: absolute;
display: flex;
flex-direction: column;
align-items: center;
top: 45%;
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
p {
text-align: center;
font-weight: 100;
width: 1200px;
letter-spacing: 10px;
}
4 years ago
i {
4 years ago
text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.4);
}
i:nth-of-type(1) {
font-size: 24px;
4 years ago
margin-bottom: 30px;
}
i:nth-of-type(2) {
4 years ago
font-size: 90px;
line-height: 1;
}
div {
4 years ago
width: 100px;
height: 32px;
margin-top: 115px;
font-size: 14px;
4 years ago
line-height: 29px;
text-align: center;
border-radius: 999px;
cursor: pointer;
color: #fff;
border: 1px solid #fff;
4 years ago
text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.4);
background-color: rgba(255, 255, 255, 0);
transition: all 0.3s;
&:hover {
background-color: rgba(255, 255, 255, 0.3);
border-color: transparent;
}
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 {
4 years ago
color: #ff4400;
}
.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;
4 years ago
background-color: #ff4400;
bottom: 0;
left: 50%;
transform: translateX(-50%);
}
}
.content {
margin-top: 50px;
font-size: 18px;
line-height: 40px;
> p {
text-indent: 2em;
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;
transition: all 0.2s;
&:not(li:nth-child(6n)) {
margin-right: 16px;
}
&:hover {
background-color: rgba(254, 254, 254, 0.3);
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;
p {
line-height: 28px;
font-size: 16px;
color: #666;
}
p:first-child {
margin-bottom: 24px;
font-size: 20px;
color: #333;
}
}
}
}
.relationUs {
display: flex;
flex-direction: column;
justify-content: center;
padding: unset;
height: 445px;
background: url("../../../static/img/relationUsBg.png") no-repeat 100% 100%;
// padding-bottom: 126px;
.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;
p {
font-size: 14px;
}
}
}
}
}
.banner {
height: 72px;
// margin-top: 20px;
4 years ago
background-color: #ff4400;
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: 20px 30px;
4 years ago
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;
4 years ago
// 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>