diff --git a/src/assets/fonts/SourceHanSansCN-ExtraLight.otf b/src/assets/fonts/SourceHanSansCN-ExtraLight.otf
new file mode 100644
index 0000000..5cad7ff
Binary files /dev/null and b/src/assets/fonts/SourceHanSansCN-ExtraLight.otf differ
diff --git a/src/common/utils.js b/src/common/utils.js
index dbb6883..9aa74ce 100644
--- a/src/common/utils.js
+++ b/src/common/utils.js
@@ -7,6 +7,7 @@ export const handleScreenAuto = (showEmpty, id) => {
document.querySelector(id).style.transform = `scale(${scale})`
handleBottomFont(id, scale)
handleImgScale(id, scale)
+ handleCooperation(id, scale)
showEmpty.value = false
} else {
if (clientHeight >= 1764) {
@@ -14,6 +15,7 @@ export const handleScreenAuto = (showEmpty, id) => {
document.querySelector(id).style.transform = `scale(${scale})`
handleBottomFont(id, scale)
handleImgScale(id, scale)
+ handleCooperation(id, scale)
showEmpty.value = false
} else {
if (clientHeight >= 1323) {
@@ -21,12 +23,14 @@ export const handleScreenAuto = (showEmpty, id) => {
document.querySelector(id).style.transform = `scale(${scale})`
handleBottomFont(id, scale)
handleImgScale(id, scale)
+ handleCooperation(id, scale)
showEmpty.value = false
} else {
const scale = 1080 / clientHeight
document.querySelector(id).style.transform = `scale(${scale})`
handleBottomFont(id, scale)
handleImgScale(id, scale)
+ handleCooperation(id, scale)
showEmpty.value = false
}
}
@@ -55,6 +59,17 @@ const handleImgScale = (id, scale) => {
}
}
+const handleCooperation = (id, scale) => {
+ if (id == '#cooperation_container') {
+ document.getElementById('contract_bg_coop').style.transform = `scale(${
+ 1 / scale
+ })`
+ document.getElementById(
+ 'contract_real_coop',
+ ).style.transform = `scale(${scale})`
+ }
+}
+
export const animateCSS = (element, animation, prefix = 'animate__') =>
// We create a Promise and return it
new Promise((resolve, reject) => {
diff --git a/src/style.scss b/src/style.scss
index cde8cd4..e6d77a8 100644
--- a/src/style.scss
+++ b/src/style.scss
@@ -16,6 +16,10 @@ body {
src: url(./assets/fonts/ZonaPro-ExtraBold.otf);
}
@font-face {
+ font-family: 'SourceHanSansLight';
+ src: url(./assets/fonts/SourceHanSansCN-ExtraLight.otf);
+}
+@font-face {
font-family: 'SourceHanSans';
src: url(./assets/fonts/SourceHanSansCN-Normal.otf);
}
diff --git a/src/views/Index/components/CasePictureList/index.vue b/src/views/Index/components/CasePictureList/index.vue
index 0553302..7bf66d5 100644
--- a/src/views/Index/components/CasePictureList/index.vue
+++ b/src/views/Index/components/CasePictureList/index.vue
@@ -15,72 +15,47 @@
1000W+年
-
-
-
-
-
-
-
-
-
-
-
+
-
@@ -97,10 +72,32 @@ import { Autoplay } from 'swiper'
import { handleScreenAuto } from '@/common/utils'
// Import Swiper styles
import 'swiper/css'
+const handleScroll = (id, speed) => {
+ var oDiv = document.getElementById(id)
+ var oUl = oDiv.getElementsByTagName('ul')[0]
+ var aLi = oUl.getElementsByTagName('li')
+ var iSpeed = speed //正左负右
+ var timer = null
+ //计算ul的宽为所有li的宽的和;
+ oUl.innerHTML += oUl.innerHTML + oUl.innerHTML
+ oUl.style.width = aLi[0].offsetWidth * aLi.length + 'px'
+ function Slider() {
+ if (oUl.offsetLeft < -oUl.offsetWidth / 2) {
+ oUl.style.left = 0
+ } else if (oUl.offsetLeft > 0) {
+ oUl.style.left = -oUl.offsetWidth / 2 + 'px'
+ }
+ oUl.style.left = oUl.offsetLeft - iSpeed + 'px' //正负为方向
+ }
+ timer = setInterval(Slider, 30)
+}
const modules = ref([Autoplay])
onMounted(() => {
handleScreenAuto(showEmpty, '#case_picture')
window.onresize = handleScreenAuto(showEmpty, '#case_picture')
+ handleScroll('scroll_container_case_1', 2)
+ handleScroll('scroll_container_case_2', -2)
+ handleScroll('scroll_container_case_3', 2)
})
const showEmpty = ref(false)
@@ -157,6 +154,7 @@ const showEmpty = ref(false)
.detail {
font-size: 18px;
font-weight: 300;
+ font-family: 'SourceHanSansLight';
color: #646a73;
}
}
@@ -181,22 +179,28 @@ const showEmpty = ref(false)
}
}
.pic_list {
- width: 100%;
padding: 75px;
- box-sizing: border-box;
- display: flex;
- flex-direction: column;
- justify-content: space-evenly;
.mb4 {
margin-bottom: 41px;
}
- .pic_row {
- display: flex;
- align-items: center;
- justify-content: space-evenly;
- .pic {
- width: 307px;
- height: 171px;
+ .scroll_container_case {
+ position: relative;
+ overflow: hidden;
+ height: 171px;
+ ul {
+ position: absolute;
+ left: 0;
+ li {
+ padding: 5px;
+ list-style: none;
+ width: 307px;
+ float: left;
+ margin: 0 22px;
+ .pic {
+ width: 307px;
+ height: 171px;
+ }
+ }
}
}
}
diff --git a/src/views/Index/components/Cooperation/index.vue b/src/views/Index/components/Cooperation/index.vue
index bb4621d..25b21d0 100644
--- a/src/views/Index/components/Cooperation/index.vue
+++ b/src/views/Index/components/Cooperation/index.vue
@@ -5,11 +5,11 @@
合作客户
-
互联网公司 生产制造公司 智能硬件公司
+
医疗企业 互联网公司 智能硬件公司 科研院所
-
@@ -83,6 +83,7 @@ const showEmpty = ref(false)
font-size: 18px;
font-weight: 300;
color: #646a73;
+ font-family: 'SourceHanSansLight';
}
}
.contract {
diff --git a/src/views/Index/components/Culture/Card/index.vue b/src/views/Index/components/Culture/Card/index.vue
index 43910a9..07cd8e4 100644
--- a/src/views/Index/components/Culture/Card/index.vue
+++ b/src/views/Index/components/Culture/Card/index.vue
@@ -10,7 +10,7 @@
-
+
{{ getContent() }}
{{ getTips() }}
@@ -26,6 +26,24 @@ const props = defineProps({
const getClassName = () => {
return `culture_card_container bg${props.i}`
}
+
+const getContentClass = () => {
+ if (props.i == '1') {
+ return 'text font1'
+ }
+ if (props.i == '2') {
+ return 'text font2'
+ }
+ if (props.i == '3') {
+ return 'text font3'
+ }
+ if (props.i == '4') {
+ return 'text font4'
+ }
+ if (props.i == '5') {
+ return 'text font5'
+ }
+}
const getTitle = () => {
if (props.i == '1') {
return '自信'
@@ -94,6 +112,7 @@ const getTips = () => {
justify-content: space-between;
align-items: center;
flex-direction: column;
+ position: relative;
.top_circle {
display: none;
}
@@ -110,14 +129,37 @@ const getTips = () => {
}
.text {
font-size: 16px;
- font-family: 'SourceHanSans';
+ font-family: 'SourceHanSansLight';
line-height: 32px;
font-weight: 300;
color: #ffffff;
+ position: absolute;
+ word-break: break-all;
+ top: 235px;
+ }
+ .font1 {
+ width: 216px;
+ left: 45px;
+ }
+ .font2 {
+ width: 237px;
+ left: 35px;
+ }
+ .font3 {
+ width: 212px;
+ left: 41px;
+ }
+ .font4 {
+ width: 254px;
+ left: 28px;
+ }
+ .font5 {
+ width: 251px;
+ left: 28px;
}
.tip {
font-size: 30px;
- font-family: 'ZonaPro';
+ font-family: 'SourceHanSansLight';
font-weight: 400;
color: #ffffff;
}
@@ -167,11 +209,11 @@ const getTips = () => {
}
}
.bg1 {
- background: url(../../../../../assets/img/culture/lilunjieheback.png);
+ background: url(../../../../../assets/img/culture/zixinback.png);
background-size: 100% 100%;
}
.bg2 {
- background: url(../../../../../assets/img/culture/lilunjieheback.png);
+ background: url(../../../../../assets/img/culture/siweiluojiback.png);
background-size: 100% 100%;
}
.bg3 {
@@ -179,11 +221,11 @@ const getTips = () => {
background-size: 100% 100%;
}
.bg4 {
- background: url(../../../../../assets/img/culture/lilunjieheback.png);
+ background: url(../../../../../assets/img/culture/wendangback.png);
background-size: 100% 100%;
}
.bg5 {
- background: url(../../../../../assets/img/culture/lilunjieheback.png);
+ background: url(../../../../../assets/img/culture/xiangmuback.png);
background-size: 100% 100%;
}
diff --git a/src/views/Index/components/Culture/index.vue b/src/views/Index/components/Culture/index.vue
index 18ae02e..fe6a2ce 100644
--- a/src/views/Index/components/Culture/index.vue
+++ b/src/views/Index/components/Culture/index.vue
@@ -122,6 +122,7 @@ const showEmpty = ref(false)
font-size: 18px;
font-weight: 300;
color: #646a73;
+ font-family: 'SourceHanSansLight';
}
}
.card_list {
diff --git a/src/views/Index/components/Service/index.vue b/src/views/Index/components/Service/index.vue
index c574dfc..16d6637 100644
--- a/src/views/Index/components/Service/index.vue
+++ b/src/views/Index/components/Service/index.vue
@@ -5,23 +5,27 @@
- 一站式 产品研发/设计服务
+ 产品研发 / 设计 / 量产 一站式服务
- 产品梦工厂一家公司全部帮您搞定,减少供应商数
量就能防止供应商
- 扯皮/推诿帮您省心省力还能帮
- 您 节省30%
- 的项目投入。
+ 产品梦工厂一家公司全部帮您搞定
减少供应商数量就能防止供应商
+ 扯皮/推诿
帮您省心、省力
还能帮您
+ 节省30%的项目投入
-
-
-
-
-
-
+
+
+
+
+
+
Save 30%
@@ -67,7 +71,7 @@ const showEmpty = ref(false)
.main {
position: absolute;
left: 182px;
- top: 80px;
+ top: 180px;
font-size: 30px;
font-weight: bold;
color: #000000;
@@ -90,9 +94,10 @@ const showEmpty = ref(false)
.article {
margin-top: 34px;
font-size: 20px;
- font-weight: 300;
+ font-weight: 800;
color: #808080;
- line-height: 32px;
+ line-height: 38px;
+ font-family: 'SourceHanSansLight';
}
.blue_font {
color: $theme_color;
diff --git a/src/views/Index/components/SoftHardwareSummary/index.vue b/src/views/Index/components/SoftHardwareSummary/index.vue
index a51d416..260cecd 100644
--- a/src/views/Index/components/SoftHardwareSummary/index.vue
+++ b/src/views/Index/components/SoftHardwareSummary/index.vue
@@ -143,6 +143,11 @@ const showEmpty = ref(false)
color: #ffffff;
}
}
+ .card_wrap:hover {
+ .img {
+ transform: scale(1.3);
+ }
+ }
.bg1 {
background: url(../../../../assets/img/hardware/1back.png);
background-size: 100% 100%;