Files
mes_home/src/view/HomePage.vue
2023-12-29 14:24:12 +08:00

853 lines
25 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<template>
<div id="HomePage">
<!-- 轮播图 -->
<div id="swiper" class="container-fuild">
<div class="swiper-container banner-swiper">
<div class="swiper-wrapper">
<div class="swiper-slide" v-for="(item,index) in swiperList" :key="index">
<img class="swiper-lazy" :data-src="item.img" alt="轮播图">
<div class="swiper-lazy-preloader"></div>
<div class="swiper-slide-title">
<h1 class="wow zoomIn">{{item.title}}</h1>
<p class="wow zoomIn">{{item.content}}</p>
</div>
</div>
</div>
<!-- 如果需要分页器 -->
<div class="swiper-pagination"></div>
<!-- 如果需要导航按钮 -->
<!-- <div class="swiper-button-prev"></div>
<div class="swiper-button-next"></div> -->
</div>
</div>
<!-- mes系统功能一览 -->
<div id="customer" class="container-fuild">
<div class="container customer-container">
<div class="homeTitleView customer-title">
<div class="textBack text-center">MES SYSTEM FUNCTION OVERVIEW</div>
<div class="textName text-center">MES系统功能一览</div>
</div>
<div class="customer-head hidden-xs">
<div class="head-name">生产工单</div>
</div>
<div class="swiper-container customer-swiper wow slideInUp hidden-xs">
<div class="swiper-wrapper">
<div class="swiper-slide customer-block" v-for="(item,index) in customerList" :key="index">
<div class="customer-logo">
<img class="" :src="item.logo" alt="logo">
</div>
</div>
</div>
<!-- 分页器 -->
<div class="swiper-pagination"></div>
</div>
<div class="row visible-xs customer-block">
<div class="col-xs-12" v-for="(item,index) in customerList" :key="index">
<div class="customer-logo wow zoomIn">
<img class="center-block" :src="item.logo" alt="logo">
</div>
</div>
</div>
</div>
</div>
<div id="customerListView" class="container-fuild">
<div class="container customer-container">
<div class="row hidden-xs">
<template v-for="(item,index) in customerModule">
<div class="col col-xs-12 col-sm-6 col-md-3 wow zoomIn" v-if="!moduleShow?index<4:index>-1" :key="index">
<div class="moduleView"
onmouseenter="this.style.color='#28f';this.style.borderColor='#098'"
onmouseleave="this.style.color='#666';this.style.borderColor='#ccc'">
<div class="customer-logo">
<img :src="item.logo" alt="">
</div>
<div class="head-name">{{item.name}}</div>
<div class="text">{{item.text}}</div>
</div>
</div>
</template>
</div>
<div class="row visible-xs">
<template v-for="(item,index) in customerModule">
<div class="col col-xs-12 col-sm-6 col-md-3 wow zoomIn" :key="index">
<div class="moduleView" onmouseenter="this.style.color='#28f';this.style.borderColor='#098'"
onmouseleave="this.style.color='#666';this.style.borderColor='#ccc'">
<div class="customer-logo">
<img :src="item.logo" alt="">
</div>
<div class="head-name">{{item.name}}</div>
<div class="text">{{item.text}}</div>
</div>
</div>
</template>
</div>
<div class="customer-head hidden-xs" @click="moduleShow=!moduleShow">
<div class="head-name">查看更多<span :class="['icon',!moduleShow?'glyphicon glyphicon-chevron-down':'glyphicon glyphicon-chevron-up']"></span></div>
</div>
</div>
</div>
<!-- 上位机 -->
<div id="bigData" class="container-fuild">
<div class="container customer-container">
<div class="homeTitleView customer-title">
<div class="textBack text-center">UPPER COMPUTER</div>
<div class="textName textNameArt text-center">上位机</div>
</div>
<div class="row bigData-container">
<div class="col-xs-12 col-sm-12 col-md-6 wow zoomIn">
<img class="img-responsive" src="https://dm-auto.oss-cn-shanghai.aliyuncs.com/mes-home/home/upperComputer.png" alt="上位记系统">
</div>
<div class="col-xs-12 col-sm-12 col-md-6">
<div class="bigDataItem">
<div class="bigData-title">德木自动化项目</div>
<p class="text">本项目是一项旨在利用自动化技术来改善木材加工工业的项目该项目的目标是将传统的人工作业自动化提高生产效率减少劳动力成本并提高生产过程的精度安全效率和可靠性</p>
</div>
<div class="bigDataItem">
<div class="bigData-title">木材自动化</div>
<p class="text">主要组成部分包括自动上料机机器视觉系统自动化数控跑车液压带锯自动化打包机自动化控制系统和智能软件系统这些技术被整合在一起以实现高效精确的原木木材加工</p>
</div>
</div>
</div>
</div>
</div>
<!-- 您身边的IT专家 -->
<!-- <div id="contactUs" class="container-fuild text-center">
<div class="container contactUs-container wow slideInUp">
<h1>您身边的IT专家</h1>
<h3>7x24小时提供出色的IT服务</h3>
<button
class="btn btn-default btn-sm"
onmouseleave="this.style.borderColor='#ffffff'; this.style.backgroundColor='#ffffff'; this.style.color='#3f3f3f';"
onmouseenter="this.style.backgroundColor='transparent'; this.style.borderColor='#ffffff'; this.style.color='#ffffff';"
>联系我们</button>
<div class="contactUs-contactWay">
<span></span>
<span></span>
<span></span>
</div>
</div>
</div> -->
<!-- 技术栈 -->
<div id="whyChooseUs" class="conatiner-fuild">
<div class="container">
<div class="homeTitleView customer-title">
<div class="textBack text-center">TECHNICAL SUPPORT</div>
<div class="textName textNameArt text-center">技术栈</div>
</div>
<div class="whyChooseView row">
<p class="text-center">技术栈采用了容器化等先进的原生架构通过云平台技术提供了强大运算能力能够灵活适配各种不同的生产需求</p>
<p class="text-center">它可以在主流的云平台上部署利用全站安全防护异地灾备和弹性扩容等技术来确保数据的机密性完整性和可靠性</p>
<p class="text-center">同时它采用了标准的openAPI接口能够高效地连接供应链生产仓储物流和销售等各个系统实现了系统之间的高效通信和集成</p>
<div class="stackItem">
<div class="col-xs-12 col-sm-6 col-md-2 server-wrapper" v-for="(item,index) in stackList" :key="index">
<div
class="server-block wow slideInUp"
onmouseenter="this.style.color='#28f';this.style.borderColor='#098'"
onmouseleave="this.style.color='#666';this.style.borderColor='#ccc'"
>
<img class="center-block" :src="item.logo" alt="logo">
<!-- <p class="text-center">{{item.title}}</p>
<div
class="text-center"
v-html="item.content"
onmouseenter="this.style.color='#28f'"
onmouseleave="this.style.color='#ccc'"
></div> -->
</div>
</div>
</div>
</div>
<div class="whyChooseView row">
<p class="text-center">汇聚来自电子木材3D视觉非标定制等行业工程师共同打造极致的企业级产品用户体验</p>
<div class="stackItem">
<div class="col-xs-12 col-sm-6 col-md-2 server-wrapper" v-for="(item,index) in hardwareList" :key="index">
<div class="server-block wow zoomIn" onmouseenter="this.style.color='#28f';this.style.borderColor='#098'"
onmouseleave="this.style.color='#666';this.style.borderColor='#ccc'">
<img class="center-block" :src="item.logo" alt="logo">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
import Swiper from "swiper";
import { WOW } from 'wowjs';
export default {
name: "HomePage",
data() {
return {
swiperList: [
{
img: "https://dm-auto.oss-cn-shanghai.aliyuncs.com/mes-home/home/swiper1.png",
path: "",
title: '欢迎访问我们的官网',
content: '探索我们多功能的MES系统旨在帮助您优化木材加工流程实现高效生产和管理。',
}
],
customerList: [
{
logo: "https://dm-auto.oss-cn-shanghai.aliyuncs.com/mes-home/home/funct/1.png",
},
{
logo: "https://dm-auto.oss-cn-shanghai.aliyuncs.com/mes-home/home/funct/2.png",
},
{
logo: "https://dm-auto.oss-cn-shanghai.aliyuncs.com/mes-home/home/funct/3.png",
},
{
logo: "https://dm-auto.oss-cn-shanghai.aliyuncs.com/mes-home/home/funct/4.png",
},
{
logo: "https://dm-auto.oss-cn-shanghai.aliyuncs.com/mes-home/home/funct/5.png",
}
],
customerModule:[
{
logo:'https://dm-auto.oss-cn-shanghai.aliyuncs.com/mes-home/home/module/1.png',
name:'生产工单',
text:'制定和管理木材加工的生产工单,包括原料、加工工艺和数量信息。实时追踪工单状态和生产进度。'
},
{
logo: 'https://dm-auto.oss-cn-shanghai.aliyuncs.com/mes-home/home/module/2.png',
name: '生产排程',
text:'基于工单需求和生产能力进行排程计划,考虑设备、人员和物料等因素。提供直观的可视化排程界面,方便灵活调整计划。'
},
{
logo: 'https://dm-auto.oss-cn-shanghai.aliyuncs.com/mes-home/home/module/3.png',
name: '能耗管理',
text: '监测加工过程中的能耗数据,提供节能建议和优化措施,助力环保生产。'
},
{
logo: 'https://dm-auto.oss-cn-shanghai.aliyuncs.com/mes-home/home/module/4.png',
name: '设备产能和报修',
text: '管理设备产能和效率,提供设备报修申请和记录功能,实时通知处理设备故障,减少停机时间。'
},
{
logo: 'https://dm-auto.oss-cn-shanghai.aliyuncs.com/mes-home/home/module/5.png',
name: '生产流程管理',
text: '定义和管理木材加工流程,确保操作标准和产品一致性。'
},
{
logo: 'https://dm-auto.oss-cn-shanghai.aliyuncs.com/mes-home/home/module/6.png',
name: '审批流',
text: '设置审批流程,保障重要操作的合规和授权,并提供审批记录和状态跟踪。'
},
],
moduleShow:false,
stackList: [
{
logo: "https://dm-auto.oss-cn-shanghai.aliyuncs.com/mes-home/home/stack/1.png",
title: "",
content: ""
},
{
logo: "https://dm-auto.oss-cn-shanghai.aliyuncs.com/mes-home/home/stack/2.png",
title: "",
content: ""
},
{
logo: "https://dm-auto.oss-cn-shanghai.aliyuncs.com/mes-home/home/stack/3.png",
title: "",
content: ""
},
{
logo: "https://dm-auto.oss-cn-shanghai.aliyuncs.com/mes-home/home/stack/4.png",
title: "",
content: ""
},
{
logo: "https://dm-auto.oss-cn-shanghai.aliyuncs.com/mes-home/home/stack/5.png",
title: "",
content: ""
},
{
logo: "https://dm-auto.oss-cn-shanghai.aliyuncs.com/mes-home/home/stack/6.png",
title: "",
content: ""
},
{
logo: "https://dm-auto.oss-cn-shanghai.aliyuncs.com/mes-home/home/stack/7.png",
title: "",
content: ""
},
{
logo: "https://dm-auto.oss-cn-shanghai.aliyuncs.com/mes-home/home/stack/8.png",
title: "",
content: ""
},
{
logo: "https://dm-auto.oss-cn-shanghai.aliyuncs.com/mes-home/home/stack/9.png",
title: "",
content: ""
}
],
hardwareList:[
{
logo: "https://dm-auto.oss-cn-shanghai.aliyuncs.com/mes-home/home/stack/10.png",
title: "",
content: ""
},
{
logo: "https://dm-auto.oss-cn-shanghai.aliyuncs.com/mes-home/home/stack/11.png",
title: "",
content: ""
},
{
logo: "https://dm-auto.oss-cn-shanghai.aliyuncs.com/mes-home/home/stack/12.png",
title: "",
content: ""
},
{
logo: "https://dm-auto.oss-cn-shanghai.aliyuncs.com/mes-home/home/stack/13.png",
title: "",
content: ""
},
{
logo: "https://dm-auto.oss-cn-shanghai.aliyuncs.com/mes-home/home/stack/14.png",
title: "",
content: ""
},
],
};
},
mounted() {
/* banner-swiper */
new Swiper(".banner-swiper", {
loop: true, // 循环模式选项
effect: 'fade',
//自动播放
autoplay: {
delay: 3000,
stopOnLastSlide: false,
disableOnInteraction: false
},
// 如果需要分页器
pagination: {
el: ".swiper-pagination",
clickable: true
},
// 如果需要前进后退按钮
navigation: {
nextEl: ".swiper-button-next",
prevEl: ".swiper-button-prev"
},
// 延迟加载
lazy: {
loadPrevNext: true
},
observer: true, //修改swiper自己或子元素时自动初始化swiper
observeParents: true //修改swiper的父元素时自动初始化swiper
});
/* customer-swiper */
new Swiper(".customer-swiper", {
loop: true, // 循环模式选项
slidesPerView: 3,
//自动播放
autoplay: {
delay: 3000,
stopOnLastSlide: false,
disableOnInteraction: false
},
// 如果需要分页器
pagination: {
el: ".swiper-pagination",
clickable: true
},
// 如果需要前进后退按钮
navigation: {
nextEl: ".swiper-button-next",
prevEl: ".swiper-button-prev"
},
observer: true, //修改swiper自己或子元素时自动初始化swiper
observeParents: true //修改swiper的父元素时自动初始化swiper
});
/* wowjs动画 */
var wow = new WOW({
boxClass: 'wow',
animateClass: 'animated',
offset: 0,
mobile: true,
live: true
})
wow.init();
}
};
</script>
<style scoped>
.homeTitleView{
position: relative;
}
.homeTitleView .textBack{
font-size: 34px;
color: rgba(0,0,0,0.05);
font-family: Inter;
font-weight: 600;
}
.homeTitleView .textName{
position: absolute;
height: 100%;
width: 100%;
left: 0;
top: 0;
display: flex;
align-items: center;
justify-content: center;
color: #333;
font-weight: 600;
font-size: 36px;
font-family: PingFang SC;
}
.homeTitleView .textNameArt::after{
content: '';
position: absolute;
left: calc(50% - 60px);
bottom: -15px;
width: 120px;
height: 4px;
border-radius: 10px;
background: #009688;
}
/* 整体盒子 */
#HomePage {
width: 100%;
}
/* 轮播图 */
#swiper {
height: 700px;
}
#swiper .banner-swiper {
width: 100%;
height: 100%;
}
#swiper .banner-swiper .swiper-slide img {
width: 100%;
height: 100%;
}
#swiper .banner-swiper .swiper-slide{
position: relative;
}
#swiper .banner-swiper .swiper-slide-title {
position: absolute;
top: 0;
left: 0;
z-index: 999999999;
width: 100%;
height: 100%;
color: #fff;
background: rgba(51, 51, 51, 0.534);
text-align: center;
}
#swiper .banner-swiper .swiper-slide-title > h1{
font-size: 50px;
margin-top: 13%;
}
#swiper .banner-swiper .swiper-slide-title > p{
font-size: 20px;
margin-top: 3%;
font-weight: 700;
}
/* 大数据管理系统 */
#bigData {
padding: 50px 0;
transition: all ease 0.6s;
box-sizing: border-box;
}
#bigData .bigDataItem{
margin-bottom: 30px;
}
#bigData .bigData-title {
margin: 15px 0;
border-radius: 28px;
background: #009688;
display: inline-block;
color: #fff;
padding: 8px 24px;
box-shadow: 0px 4px 4px 0px rgba(0, 150, 136, 0.20);
}
#bigData .text{
font-weight: 400;
color: #666;
font-family: PingFang SC;
font-size: 14px;
line-height: 24px;
}
#bigData p {
font-size: 14px;
color: #333;
line-height: 2rem;
}
#bigData .bigData-device {
margin: 50px 0 20px;
}
#bigData .bigData-container{
margin-top: 50px;
}
/* 您身边的IT专家 */
#contactUs {
color: #fff;
height: 400px;
background: url("../assets/img/contact_us_bg.jpg") 0 0 no-repeat;
background-size: 100% 100%;
transition: all ease 0.6s;
}
#contactUs .contactUs-container {
padding-top: 50px;
}
#contactUs .contactUs-container button {
width: 300px;
height: 50px;
margin-top: 40px;
}
#contactUs .contactUs-container .contactUs-contactWay span {
display: inline-block;
width: 48px;
height: 48px;
margin: 30px;
}
#contactUs .contactUs-container .contactUs-contactWay span:nth-of-type(1) {
background: url("../assets/img/weixin.png") 0 0 no-repeat;
background-size: 100% 100%;
}
#contactUs .contactUs-container .contactUs-contactWay span:nth-of-type(2) {
background: url("../assets/img/weibo.png") 0 0 no-repeat;
background-size: 100% 100%;
}
#contactUs .contactUs-container .contactUs-contactWay span:nth-of-type(3) {
background: url("../assets/img/twitter.png") 0 0 no-repeat;
background-size: 100% 100%;
}
/* mes系统功能 */
#customer {
padding: 50px 0;
box-sizing: border-box;
background: #fff;
transition: all ease 0.6s;
}
#customer .customer-title {
position: relative;
}
#customer .customer-block {
background: #fff;
padding: 30px 30px 70px 30px;
}
#customer .customer-logo img {
width: 100%;
height: auto;
}
#customer .customer-yh img {
width: 34px;
height: 34px;
}
#customer .customer-content1 {
padding-bottom: 20px;
border-bottom: 1px solid #0ce9f1;
}
#customer .customer-content2 {
padding-top: 20px;
}
.customer-head{
display: flex;
align-items: center;
justify-content: center;
margin: 30px 0 20px 0;
cursor: pointer;
}
.customer-head .head-name{
background: #009688;
width: 200px;
height: 55px;
border-radius: 56px;
box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
color: #fff;
font-weight: 500;
}
.customer-head .head-name .icon{
margin-left: 10px;
}
#customerListView{
padding: 50px 0;
box-sizing: border-box;
transition: all ease 0.6s;
background: url("https://dm-auto.oss-cn-shanghai.aliyuncs.com/mes-home/home/back1.png") no-repeat;
background-position: center center;
background-size: cover;
background-attachment:fixed;
}
#customerListView .row{
display: flex;
flex-wrap: wrap;
}
#customerListView .moduleView{
overflow: hidden;
height: calc(100% - 40px);
box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
border: 1px solid #f0f0f0;
border-radius: 16px;
background: #FFF;
margin: 20px 0;
padding: 24px 24px 40px 24px;
}
#customerListView .moduleView .customer-logo{
width: 68px;
height: 68px;
}
#customerListView .moduleView .customer-logo img{
width: 68px;
height: auto;
}
#customerListView .moduleView .head-name{
margin: 20px 0 10px 0;
font-weight: 600;
font-size: 18px;
color: #000;
font-family: PingFang SC;
}
#customerListView .moduleView .text{
color: #333;
font-size: 14px;
line-height: 24px;
font-weight: 400;
font-family: PingFang SC;
}
#customerListView .customer-head .head-name{
border-radius: 8px;
}
/* 技术栈 */
#whyChooseUs {
padding: 50px 0;
background: url("https://dm-auto.oss-cn-shanghai.aliyuncs.com/mes-home/home/back2.png") no-repeat;
background-position: center;
background-size: cover;
}
#whyChooseUs .whyChooseView{
margin-top: 40px;
}
#whyChooseUs .whyChooseView .stackItem{
margin-top: 20px;
}
#whyChooseUs .server-block {
padding: 50px 20px;
border: 1px solid #ccc;
margin: 8px 0;
height: 120px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 12px;
background: #FFF;
box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
cursor: pointer;
}
#whyChooseUs .server-block img {
width: 100px;
height: auto;
}
#whyChooseUs .whyChooseView > p {
font-size: 14px;
color: #000;
font-weight: 400;
}
#whyChooseUs .stackItem{
width: 100%;
}
/* 媒体查询(手机) */
@media screen and (max-width: 768px) {
.homeTitleView .textBack{
font-size: 20px;
}
.homeTitleView .textName{
font-size: 22px;
}
.homeTitleView .textNameArt::after{
width: 80px;
left: calc(50% - 40px);
}
#swiper {
height: 210px;
}
#swiper .banner-swiper .swiper-slide-title > h1{
font-size: 24px;
line-height: 34px;
}
#swiper .banner-swiper .swiper-slide-title > p{
font-size: 14px;
}
#customer {
padding: 30px 0;
box-sizing: border-box;
background: #fff;
}
#customer .customer-title {
font-size: 16px;
font-weight: bold;
}
#customer .row {
padding: 10px 15px 0 15px;
}
#customer .customer-block > div {
padding: 20px 0;
}
#customerListView{
padding: 20px 0;
}
#customerListView .moduleView .customer-logo{
width: 46px;
height: 46px;
}
#customerListView .moduleView .customer-logo img{
width: 100%;
}
#customerListView .moduleView .head-name{
font-size: 16px;
}
#bigData {
padding: 30px 0;
}
#bigData .bigData-title {
font-size: 16px;
}
#bigData .bigData-device {
font-size: 20px;
margin: 10px 0 10px;
}
#bigData .bigDataItem{
margin-bottom: 0;
}
#contactUs {
height: 200px;
transition: all ease 0.6s;
}
#contactUs .contactUs-container {
padding-top: 0;
}
#contactUs .contactUs-container h1 {
font-size: 25px;
}
#contactUs .contactUs-container h3 {
font-size: 18px;
}
#contactUs .contactUs-container button {
width: 200px;
height: 30px;
margin-top: 20px;
}
#contactUs .contactUs-container .contactUs-contactWay span {
display: inline-block;
width: 28px;
height: 28px;
margin: 10px;
}
#whyChooseUs {
padding: 20px 0;
transition: all ease 0.6s;
}
#whyChooseUs .row{
margin-left: 0;
margin-right: 0;
}
#whyChooseUs .server-block {
padding: 50px 0;
border: 1px solid #ccc;
}
#whyChooseUs .server-block > p {
font-size: 20px;
margin: 30px 0;
}
#whyChooseUs .server-block > div {
color: #ccc;
}
}
/* 媒体查询(平板) */
@media screen and (min-width: 768px) and (max-width: 996px) {
.homeTitleView .textBack{
font-size: 30px;
}
.homeTitleView .textName{
font-size: 36px;
}
#swiper {
height: 400px;
}
#swiper .banner-swiper .swiper-slide-title > h1{
font-size: 30px;
margin-top: 18%;
}
#swiper .banner-swiper .swiper-slide-title > p{
font-size: 16px;
}
#customerListView{
padding: 30px 0;
}
#bigData {
padding: 30px 0;
}
#bigData .bigData-title {
font-size: 18px;
}
#bigData .bigData-device {
font-size: 30px;
margin: 30px 0 15px;
}
#contactUs {
height: 300px;
}
#contactUs .contactUs-container {
padding-top: 50px;
}
#contactUs .contactUs-container h1 {
font-size: 30px;
}
#contactUs .contactUs-container h3 {
font-size: 20px;
}
#contactUs .contactUs-container button {
width: 300px;
height: 50px;
margin-top: 30px;
}
#contactUs .contactUs-container .contactUs-contactWay span {
display: inline-block;
width: 32px;
height: 32px;
margin: 15px;
}
#customer .customer-title {
font-size: 24px;
}
#whyChooseUs {
padding: 20px 0;
}
#whyChooseUs .row{
margin-left: 0;
margin-right: 0;
}
}
</style>