Commit 9f16d688 by 前端

修改首页

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