Commit 9f16d688 by 前端

修改首页

1 parent 6b1f0224
......@@ -22,7 +22,7 @@
.title_box {
box-sizing: border-box;
padding-top: 19px;
padding-top:19px;
text-align: center;
.title {
......@@ -32,6 +32,8 @@
font-weight: 700;
font-size: 44px;
letter-spacing: 5px;
line-height: 44px;
// background: linear-gradient(left right, #00c8ff 0%, #0069f2 100%);
// background-clip: text;
// -webkit-background-clip: text;
......
......@@ -37,17 +37,11 @@ export default {
// 左侧箭头点击事件
leftClickEvent() {
this.$emit('prev')
if (this.prevUrl) {
this.$router.push({ path: this.prevUrl })
}
},
// 右侧箭头点击事件
rightClickEvent() {
this.$emit('next')
if (this.nextUrl) {
this.$router.push({ path: this.nextUrl })
}
}
}
}
......
......@@ -6,8 +6,8 @@
* @LastEditTime: 2024-01-26 16:22:53
-->
<template>
<div class="layout">
<Head title="广联新能源车主行业大模型"></Head>
<div class="">
<!-- <Head title="广联新能源车主行业大模型"></Head> -->
<Architecture></Architecture>
<Model></Model>
<FixedArrow></FixedArrow>
......@@ -20,7 +20,7 @@ import Architecture from './Architecture'
import Head from '@/components/Head'
import FixedArrow from '@/components/Arrow.vue'
export default {
name: 'energyCar',
name: 'EnergyCar',
components: {
Model,
Architecture,
......
......@@ -9,19 +9,22 @@
<div class="page_layout">
<!-- 顶部 开始 -->
<div class="head">
<top-head />
<top-head :title="titleList[current]" />
</div>
<!-- 顶部 end -->
<!-- 内容区域 开始 -->
<div class="content">
<view-life-scene-data></view-life-scene-data>
<view-life-scene-data v-show="current == 2" />
<energy-car v-show="current == 1" />
<view-operational v-show="current == 3" />
<view-entire-lifecycleOf-car v-show="current == 0" />
</div>
<!-- 内容区域 end -->
<!-- 左右箭头 开始 -->
<fixed-arrow />
<fixed-arrow @prev="prevClick" @next="nextClick" />
<!-- 左右箭头 end -->
</div>
</template>
......@@ -31,12 +34,17 @@ import './pages'
import TopHead from '@/components/Head.vue'
import ViewLifeSceneData from './pages/ViewLifeSceneData.vue'
import FixedArrow from '@/components/Arrow.vue'
import ViewEntireLifecycleOfCar from './pages/viewEntireLifecycleOfCar.vue'
//energyCar ViewEntireLifecycleOfCar
import EnergyCar from '@/views/energyCar/index.vue'
export default {
name: '',
components: {
TopHead,
ViewLifeSceneData,
FixedArrow
FixedArrow,
ViewEntireLifecycleOfCar,
EnergyCar
},
computed: {
tabName() {
......@@ -73,7 +81,14 @@ export default {
},
data() {
return {
activeName: ''
activeName: '',
current: 0,
titleList: {
0: '汽车全生命周期场景图',
1: '广联新能源车主行业大模型',
2: '汽车全生命周期场景图',
3: '广联数科运营看板'
}
}
},
created() {
......@@ -85,6 +100,24 @@ export default {
// selectVal(val) {
// console.log(val)
// }
// 前一页
prevClick() {
let index = this.current
if (index == 0) {
return false
}
this.current = index - 1
},
// 下一页
nextClick() {
let index = this.current
if (index == 3) {
return false
}
this.current = index + 1
}
}
}
</script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!