Browse Source

机械gif

master
maochaoying 2 years ago
parent
commit
3ba8eff192
  1. 10
      src/components/OneStop.vue
  2. 2
      src/components/SubNavigation.vue
  3. 2
      src/components/Top.vue
  4. 4
      src/mock/index.js
  5. 28
      src/pages/Hardware.vue
  6. BIN
      src/static/img/hardware/1.gif
  7. BIN
      src/static/img/hardware/2.gif
  8. BIN
      src/static/img/hardware/s-accelerate.png
  9. BIN
      src/static/img/hardware/t-accelerate.png

10
src/components/OneStop.vue

@ -13,7 +13,7 @@
<img class="img" :src="item.pic" /> <img class="img" :src="item.pic" />
<div class="btn_wrap"> <div class="btn_wrap">
<p>{{ item.title }}</p> <p>{{ item.title }}</p>
<div v-if="item.btn" class="btn">
<div v-if="item.btn" class="btn" @click="toDetail(item.linkUrl)">
<span class="fontscale">查看详情</span> <span class="fontscale">查看详情</span>
</div> </div>
<div v-else class="btn2"> <div v-else class="btn2">
@ -28,6 +28,14 @@
<script setup> <script setup>
import HeadLine from 'cpns/HeadLine' import HeadLine from 'cpns/HeadLine'
import { OneList } from '@/mock' import { OneList } from '@/mock'
import { useRouter } from 'vue-router'
const router = useRouter()
const toDetail = linkUrl => {
if (linkUrl) {
router.push(linkUrl)
}
}
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

2
src/components/SubNavigation.vue

@ -16,7 +16,7 @@
<div class="btn" @click="toPage('/contact')">联系我们</div> <div class="btn" @click="toPage('/contact')">联系我们</div>
<div class="btn" @click="toPage('/recruit')">招贤纳士</div> <div class="btn" @click="toPage('/recruit')">招贤纳士</div>
<div class="btn" @click="toPage('/hardware')">软硬件研发</div> <div class="btn" @click="toPage('/hardware')">软硬件研发</div>
<div class="btn" @click="toPage('/product')">产品研发</div>
<!-- <div class="btn" @click="toPage('/product')">产品研发</div> -->
</div> </div>
</div> </div>
</div> </div>

2
src/components/Top.vue

@ -30,7 +30,7 @@
<div class="btn" @click="toPage(`${isHard ? '/' : '/hardware'}`)"> <div class="btn" @click="toPage(`${isHard ? '/' : '/hardware'}`)">
{{ isHard ? '工业设计' : '软硬件研发' }} {{ isHard ? '工业设计' : '软硬件研发' }}
</div> </div>
<div class="btn" @click="toPage('/product')">产品研发</div>
<!-- <div class="btn" @click="toPage('/product')">产品研发</div> -->
</div> </div>
</div> </div>
</div> </div>

4
src/mock/index.js

@ -323,6 +323,7 @@ export const OneList = [
id: 1, id: 1,
title: '工业设计', title: '工业设计',
pic: O1, pic: O1,
linkUrl: '/case-show',
btn: true, btn: true,
}, },
{ {
@ -330,17 +331,20 @@ export const OneList = [
title: '结构设计', title: '结构设计',
pic: O2, pic: O2,
btn: true, btn: true,
linkUrl: '/case-show',
}, },
{ {
id: 3, id: 3,
title: '软件研发', title: '软件研发',
pic: O3, pic: O3,
btn: true, btn: true,
linkUrl: '/case-show',
}, },
{ {
id: 4, id: 4,
title: '硬件研发', title: '硬件研发',
pic: O4, pic: O4,
linkUrl: '/hardware',
btn: true, btn: true,
}, },
{ {

28
src/pages/Hardware.vue

@ -25,7 +25,14 @@
/> />
<div class="img_wrap"> <div class="img_wrap">
<img :src="Dian" class="img" alt="" /> <img :src="Dian" class="img" alt="" />
<img :src="Accelerate" class="img" alt="" />
<div class="gif_wrap">
<img :src="Gif1" class="left_img" alt="" />
<img :src="SAccelerate" class="right_img" alt="" />
</div>
<div class="gif_wrap">
<img :src="Gif2" class="left_img" alt="" />
<img :src="TAccelerate" class="right_img" alt="" />
</div>
</div> </div>
<AboutUs /> <AboutUs />
<Cooperation /> <Cooperation />
@ -46,6 +53,10 @@ import Dian from '@/static/img/hardware/dianji.png'
import AboutUs from 'cpns/AboutUs.vue' import AboutUs from 'cpns/AboutUs.vue'
import Cooperation from 'cpns/Cooperation' import Cooperation from 'cpns/Cooperation'
import Bottom from 'cpns/Bottom' import Bottom from 'cpns/Bottom'
import SAccelerate from '@/static/img/hardware/s-accelerate.png'
import TAccelerate from '@/static/img/hardware/t-accelerate.png'
import Gif1 from '@/static/img/hardware/1.gif'
import Gif2 from '@/static/img/hardware/2.gif'
import { ref } from 'vue' import { ref } from 'vue'
const isDrag = ref(false) const isDrag = ref(false)
@ -66,6 +77,21 @@ const handleRelease = e => {
padding-bottom: $bottom-height; padding-bottom: $bottom-height;
.img_wrap { .img_wrap {
padding: 0 7px; padding: 0 7px;
.gif_wrap {
display: flex;
align-items: center;
margin-bottom: 5px;
border-radius: 3px;
overflow: hidden;
.left_img {
width: 133px;
height: 67px;
}
.right_img {
width: 63%;
height: 67px;
}
}
} }
.img { .img {
width: 100%; width: 100%;

BIN
src/static/img/hardware/1.gif

After

Width: 399  |  Height: 205  |  Size: 487 KiB

BIN
src/static/img/hardware/2.gif

After

Width: 399  |  Height: 205  |  Size: 488 KiB

BIN
src/static/img/hardware/s-accelerate.png

After

Width: 652  |  Height: 204  |  Size: 50 KiB

BIN
src/static/img/hardware/t-accelerate.png

After

Width: 652  |  Height: 204  |  Size: 48 KiB

Loading…
Cancel
Save