Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
R
risk-monitor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
蔡建
risk-monitor
Commits
7f64a15a
提交
7f64a15a
authored
12月 05, 2025
作者:
huhuiqing
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
企业动态页面
上级
bee9c823
全部展开
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
256 行增加
和
4 行删除
+256
-4
Capability.vue
src/views/companyPages/component/Capability.vue
+0
-0
Timeline.vue
src/views/companyPages/component/Timeline.vue
+252
-0
capability.json
src/views/companyPages/data/capability.json
+0
-0
movement.json
src/views/companyPages/data/movement.json
+4
-4
index copy.vue
src/views/companyPages/index copy.vue
+0
-0
没有找到文件。
src/views/companyPages/component/Capability.vue
0 → 100644
浏览文件 @
7f64a15a
src/views/companyPages/component/Timeline.vue
0 → 100644
浏览文件 @
7f64a15a
<
template
>
<div
class=
"timeline-wrapper"
>
<!--
<button
class=
"arrow left"
:disabled=
"index
<
=
0
"
@
click=
"index--"
>
<
</button>
-->
<div
class=
"timeline-box"
>
<div
class=
"line"
></div>
<div
v-for=
"(item, i) in showList"
:key=
"item[idKey]"
class=
"node"
:style=
"leftOffset(i)"
>
<div
class=
"node"
:style=
"leftOffset(i)"
>
<!-- 圆环 -->
<div
class=
"dot"
:class=
"linePos(i, flip)"
:style=
"
{
marginTop: linePos(i, flip) === 'down' ? '35px' : '-10px'
}">
</div>
<div
class=
"time"
:style=
"
{
marginTop: linePos(i, flip) === 'down' ? '10px' : '-40px'
}">
{{
item
.
time
}}
</div>
<!-- 卡片:放到线右侧 -->
<div
class=
"card"
:class=
"[cardPos(i, flip), 'right-side']"
@
click=
"$emit('click-card', item)"
:style=
"
{
marginTop: linePos(i, flip) === 'down' ? '100px' : '-40px'
}">
<div
class=
"title"
>
{{
item
.
title
}}
<!--
<img
class=
"item-header-icon"
src=
"@/assets/images/icon/copy.png"
style=
"cursor: pointer;"
></img>
-->
</div>
<div
class=
"content"
>
{{
item
.
content
}}
</div>
</div>
</div>
</div>
</div>
<!--
<button
class=
"arrow right"
:disabled=
"index >= total - 5"
@
click=
"index++"
>
>
</button>
-->
</div>
</
template
>
<
script
>
export
default
{
name
:
'TimeLine'
,
props
:
{
data
:
{
// 父组件传入的数组
type
:
Array
,
required
:
true
},
textKey
:
{
// 要显示的文本字段
type
:
String
,
default
:
'text'
},
idKey
:
{
// 唯一标识字段
type
:
String
,
default
:
'id'
}
},
data
()
{
return
{
index
:
0
};
},
computed
:
{
total
()
{
return
this
.
data
.
length
;
},
showList
()
{
return
this
.
data
.
slice
(
this
.
index
,
this
.
index
+
5
);
},
flip
()
{
return
this
.
index
%
2
===
1
;
}
},
methods
:
{
leftOffset
(
i
)
{
return
{
left
:
`
${(
i
*
100
)
/
5
}
%`
};
},
/* 上下层翻转(保留上次逻辑) */
cardPos
(
i
,
flip
=
false
)
{
return
(
i
%
2
)
^
flip
?
'down'
:
'up'
;
},
/* 线延伸方向 = 卡片出现方向 */
linePos
(
i
,
flip
=
false
)
{
return
this
.
cardPos
(
i
,
flip
);
// up / down
}
}
};
</
script
>
<
style
scoped
>
/* 样式与之前完全一致,不再重复 */
.timeline-wrapper
{
display
:
flex
;
align-items
:
center
;
width
:
100%
;
position
:
relative
;
padding
:
0
40px
;
}
.arrow
{
position
:
absolute
;
top
:
50%
;
/* 左右切换按钮 */
width
:
24px
;
height
:
48px
;
font-size
:
24px
;
border-color
:
#E7F3FF
;
border
:
0
;
background
:
#E7F3FF
;
cursor
:
pointer
;
z-index
:
10
;
color
:
#3E84D1
;
}
.arrow
:disabled
{
color
:
#c0c4cc
;
cursor
:
not-allowed
;
}
.left
{
left
:
0
;
border-radius
:
4px
0px
0px
4px
;
}
.right
{
right
:
0
;
border-radius
:
0px
4px
4px
0px
;
}
.timeline-box
{
flex
:
1
;
height
:
100%
;
position
:
relative
;
}
.line
{
position
:
absolute
;
left
:
0
;
right
:
0
;
top
:
50%
;
height
:
6px
;
background-image
:
url("@/assets/images/bg/timeLine-bg.jpg")
;
transform
:
translateY
(
-50%
);
background-size
:
auto
100%
;
}
.node
{
position
:
absolute
;
top
:
50%
;
transform
:
translate
(
-50%
,
-50%
);
z-index
:
2
;
}
/* ===== 圆环基础 ===== */
.dot
{
width
:
14px
;
height
:
14px
;
border-radius
:
50%
;
border
:
3px
solid
#409eff
;
background
:
#fff
;
position
:
relative
;
margin
:
0
auto
;
z-index
:
2
;
}
/* ===== 延伸线 ===== */
.dot
::after
{
content
:
''
;
position
:
absolute
;
left
:
50%
;
transform
:
translateX
(
-1px
);
/* 居中细线 */
width
:
1px
;
background
:
#409eff
;
}
/* 向上节点:线往下伸 */
.dot.up
::after
{
bottom
:
100%
;
height
:
180px
;
/* 圆环底部 → 卡片顶 */
}
/* 向下节点:线往上伸 */
.dot.down
::after
{
top
:
100%
;
height
:
180px
;
}
.card
{
position
:
absolute
;
height
:
180px
;
width
:
15vw
;
padding
:
8px
12px
;
text-align
:
left
;
cursor
:
pointer
;
font-size
:
14px
;
margin-left
:
150px
;
}
.time
{
width
:
150px
;
margin-left
:
150px
;
color
:
rgba
(
5
,
95
,
194
,
1
);
font-family
:
Microsoft
YaHei
;
font-size
:
20px
;
font-weight
:
700
;
line-height
:
26px
;
letter-spacing
:
0px
;
text-align
:
justify
;
}
.title
{
color
:
rgba
(
59
,
65
,
75
,
1
);
font-family
:
Microsoft
YaHei
;
font-size
:
20px
;
font-weight
:
700
;
line-height
:
26px
;
letter-spacing
:
0px
;
text-align
:
justify
;
}
.content
{
margin-top
:
10px
;
color
:
rgba
(
95
,
101
,
108
,
1
);
font-family
:
Microsoft
YaHei
;
font-size
:
16px
;
font-weight
:
400
;
line-height
:
24px
;
letter-spacing
:
0px
;
text-align
:
justify
;
}
.card.up
{
bottom
:
20px
;
}
.card.down
{
top
:
20px
;
}
</
style
>
\ No newline at end of file
src/views/companyPages/data/capability.json
0 → 100644
浏览文件 @
7f64a15a
src/views/companyPages/data/movement.json
浏览文件 @
7f64a15a
...
@@ -2,21 +2,21 @@
...
@@ -2,21 +2,21 @@
{
{
"title"
:
"AIWAN解决方案全面升级"
,
"title"
:
"AIWAN解决方案全面升级"
,
"content"
:
"华为在UBBF2025期间发布以AI-Centric全面升级的AIWAN解决方案,重新定义体验感知、算网极限、安全韧性和运维模式。"
,
"content"
:
"华为在UBBF2025期间发布以AI-Centric全面升级的AIWAN解决方案,重新定义体验感知、算网极限、安全韧性和运维模式。"
,
"
dat
e"
:
"2025年5月"
"
tim
e"
:
"2025年5月"
},
},
{
{
"title"
:
"天才少年计划扩展"
,
"title"
:
"天才少年计划扩展"
,
"content"
:
"华为发布“天才少年挑战课题”,覆盖智能联接、基础研究、智能终端、云计算和智能汽车五大领域。"
,
"content"
:
"华为发布“天才少年挑战课题”,覆盖智能联接、基础研究、智能终端、云计算和智能汽车五大领域。"
,
"
dat
e"
:
"2025年5月31日"
"
tim
e"
:
"2025年5月31日"
},
},
{
{
"title"
:
"两项碳化硅散热技术专利公布"
,
"title"
:
"两项碳化硅散热技术专利公布"
,
"content"
:
"华为公布两项采用碳化硅做填料的专利,提高电子设备的导热能力,应用于电子元器件散热和封装芯片。"
,
"content"
:
"华为公布两项采用碳化硅做填料的专利,提高电子设备的导热能力,应用于电子元器件散热和封装芯片。"
,
"
dat
e"
:
"2025年7月23日"
"
tim
e"
:
"2025年7月23日"
},
},
{
{
"title"
:
"新一代5G-A技术突破"
,
"title"
:
"新一代5G-A技术突破"
,
"content"
:
"华为在5G-A技术领域取得重大突破,实现下行万兆、上行千兆的峰值速率,为工业互联网和元宇宙应用奠定基础。"
,
"content"
:
"华为在5G-A技术领域取得重大突破,实现下行万兆、上行千兆的峰值速率,为工业互联网和元宇宙应用奠定基础。"
,
"
dat
e"
:
"2025年10月"
"
tim
e"
:
"2025年10月"
}
}
]
]
src/views/companyPages/index copy.vue
deleted
100644 → 0
浏览文件 @
bee9c823
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论