maochaoying 2 years ago
parent
commit
31ca6d3997
  1. 53
      src/router/index.js
  2. 5
      src/views/Index/components/CaseDetails/index.vue
  3. 2
      src/views/Index/components/CasePictureList/index.vue
  4. 2
      src/views/Index/components/Culture/Card/index.vue
  5. 5
      src/views/Index/components/HardwareDetails/index.vue
  6. 2
      src/views/Index/components/HardwareSummary/index.vue
  7. 1
      src/views/Index/components/MechanicalControl/index.vue
  8. 1
      src/views/Index/components/MechanicalDrive/Card/index.vue
  9. 2
      src/views/Index/components/MechanicalDrive/index.vue
  10. 2
      src/views/Index/components/SoftHardwareSummary/index.vue
  11. 2
      src/views/Index/index.vue

53
src/router/index.js

@ -2,37 +2,36 @@ import { createRouter, createWebHistory } from 'vue-router'
// 配置路由信息
const routes = [
{ path: '/', redirect: '/index' },
{
path: '/index',
path: '/',
name: 'index',
component: () => import('@/views/Index'),
},
{
path: '/case',
name: 'case',
component: () => import('@/views/Case'),
},
{
path: '/soft-hardware',
name: 'softHardware',
component: () => import('@/views/SoftHardware'),
},
{
path: '/culture',
name: 'culture',
component: () => import('@/views/Culture'),
},
{
path: '/about',
name: 'about',
component: () => import('@/views/About'),
},
{
path: '/contact',
name: 'contact',
component: () => import('@/views/Contact'),
},
// {
// path: '/case',
// name: 'case',
// component: () => import('@/views/Case'),
// },
// {
// path: '/soft-hardware',
// name: 'softHardware',
// component: () => import('@/views/SoftHardware'),
// },
// {
// path: '/culture',
// name: 'culture',
// component: () => import('@/views/Culture'),
// },
// {
// path: '/about',
// name: 'about',
// component: () => import('@/views/About'),
// },
// {
// path: '/contact',
// name: 'contact',
// component: () => import('@/views/Contact'),
// },
]
const router = createRouter({

5
src/views/Index/components/CaseDetails/index.vue

@ -18,7 +18,7 @@
</div>
<div class="case_swiper_wrap" :key="componentKey">
<swiper
:pagination="true"
:pagination="pagination"
:modules="modules"
:autoHeight="true"
class="case_detail_swiper"
@ -129,6 +129,9 @@ const detailStore = useDetailStore()
const swiperStore = useSwiperStore()
const { industry_id, example_id } = storeToRefs(detailStore)
const componentKey = ref(0)
const pagination = {
clickable: true,
}
const forceRerender = () => {
componentKey.value = 1 + componentKey.value
}

2
src/views/Index/components/CasePictureList/index.vue

@ -17,7 +17,7 @@
:end="15"
:autoPlay="false"
:i="start_count"
:duration="duration"
:duration="3000"
/>
</span>

2
src/views/Index/components/Culture/Card/index.vue

@ -77,7 +77,7 @@ const getTitle = () => {
const getTips = () => {
if (props.i == '1') {
return 'Confident'
return 'Confidence'
}
if (props.i == '2') {
return 'Logic'

5
src/views/Index/components/HardwareDetails/index.vue

@ -18,7 +18,7 @@
</div>
<div class="case_swiper_wrap" :key="componentKey">
<swiper
:pagination="true"
:pagination="pagination"
:modules="modules"
:autoHeight="true"
class="case_detail_swiper"
@ -133,6 +133,9 @@ const componentKey = ref(0)
const forceRerender = () => {
componentKey.value = 1 + componentKey.value
}
const pagination = {
clickable: true,
}
const funcToSon = () => {
forceRerender()
}

2
src/views/Index/components/HardwareSummary/index.vue

@ -17,7 +17,7 @@
:end="15"
:autoPlay="false"
:i="start_count_i"
:duration="duration"
:duration="3000"
/>
</span>

1
src/views/Index/components/MechanicalControl/index.vue

@ -200,7 +200,6 @@ onMounted(() => {
}
}
.broadside_div:hover {
cursor: pointer;
.dialog_text {
background: rgba(0, 0, 0, 0);
}

1
src/views/Index/components/MechanicalDrive/Card/index.vue

@ -115,6 +115,7 @@ const getImgSrc = () => {
}
.dian_container:hover {
border-radius: 10px;
overflow: hidden;
.btn {
background: $theme_color;
}

2
src/views/Index/components/MechanicalDrive/index.vue

@ -21,7 +21,7 @@
<Card title="锥齿传动" i="8" />
<Card title="齿轮传动" i="9" />
<Card title="电动顶杆" i="10" />
<Card title="同步带传动" i="11" />
<Card title="齿轮齿条传动" i="11" />
<Card title="行星减速机" i="12" />
<Card title="谐波减速机" i="13" />
<Card title="RV减速机" i="14" />

2
src/views/Index/components/SoftHardwareSummary/index.vue

@ -35,7 +35,7 @@
</div>
<div class="card_wrap bg7">
<img class="img" v-lazy="Chuanganji" alt="" />
<p class="font">传感器</p>
<p class="font">传感器</p>
</div>
</div>
<p class="big_title" id="software_b_ani">

2
src/views/Index/index.vue

@ -66,7 +66,7 @@
<swiper-slide key="15" virtualIndex="15">
<IntroVideo />
</swiper-slide>
<swiper-slide key="16" virtualIndex="16">
<swiper-slide key="16" virtualIndex="16" class="swiper-no-swiping">
<ContactUs />
</swiper-slide>
</swiper>

Loading…
Cancel
Save