Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
saturn-scs-mobile
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
yueyang.lv
saturn-scs-mobile
Commits
5c959224
提交
5c959224
authored
10月 21, 2022
作者:
yueyang.lv
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
bufix
上级
07256aa0
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
66 行增加
和
7 行删除
+66
-7
Header.vue
src/components/Header.vue
+57
-0
main.js
src/main.js
+9
-7
index.vue
src/views/aboutUs/index.vue
+0
-0
index.vue
src/views/cooperate/index.vue
+0
-0
index.vue
src/views/homePage/index.vue
+0
-0
index.vue
src/views/publicScs/index.vue
+0
-0
yarn.lock
yarn.lock
+0
-0
没有找到文件。
src/components/Header.vue
0 → 100644
浏览文件 @
5c959224
<
template
>
<div
class=
"header_topBar"
>
<router-link
to=
"/homePage"
style=
"cursor: pointer; display: flex"
>
<img
class=
"tabar_logo"
src=
"../../public/logo.png"
alt=
"土星云"
/>
<span
class=
"tabar_title"
>
土星云
</span>
</router-link>
<div
class=
"navBar"
>
<div
class=
"navBarLine"
></div>
<div
class=
"navBarLine"
></div>
<div
class=
"navBarLine"
></div>
<van-dropdown-menu>
<van-dropdown-item
:value=
"active"
:options=
"list"
@
change=
"toHandler"
/>
</van-dropdown-menu>
</div>
</div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
options
:
[
{
text
:
'首页'
,
to
:
'/'
},
{
text
:
'私有云'
,
to
:
'/'
},
{
text
:
'公有云'
,
to
:
'/publicScs'
},
{
text
:
'生态合作'
,
to
:
'/cooperate'
},
{
text
:
'关于我们'
,
to
:
'/aboutUs'
},
{
text
:
'控制台'
,
to
:
'https://xxyy.co/#/dashboard'
,
target
:
'_blank'
},
],
}
},
computed
:
{
active
()
{
return
this
.
list
.
find
((
item
)
=>
item
.
to
===
this
.
$route
.
path
)?.
value
||
0
},
list
()
{
return
this
.
options
.
map
((
item
,
value
)
=>
({
...
item
,
value
,
}))
},
},
methods
:
{
toHandler
(
ind
)
{
const
path
=
this
.
options
[
ind
].
to
if
(
path
.
startsWith
(
'http'
))
{
window
.
open
(
path
)
}
else
{
this
.
$router
.
push
(
path
)
}
},
},
}
</
script
>
src/main.js
浏览文件 @
5c959224
...
...
@@ -4,16 +4,18 @@ import App from './App.vue'
import
router
from
'./router'
import
'amfe-flexible/index'
import
'./services/vant'
import
ElementUI
from
'element-ui'
;
import
'element-ui/lib/theme-chalk/index.css'
;
import
applyFriendLink
from
'./utils/applyFriendLink'
;
import
ElementUI
from
'element-ui'
import
'element-ui/lib/theme-chalk/index.css'
import
applyFriendLink
from
'./utils/applyFriendLink'
import
Header
from
'./components/Header'
applyFriendLink
()
;
applyFriendLink
()
Vue
.
config
.
productionTip
=
false
;
Vue
.
use
(
ElementUI
);
Vue
.
config
.
productionTip
=
false
Vue
.
use
(
ElementUI
)
Vue
.
component
(
'website-header'
,
Header
)
new
Vue
({
router
,
render
:
h
=>
h
(
App
)
render
:
(
h
)
=>
h
(
App
),
}).
$mount
(
'#app'
)
src/views/aboutUs/index.vue
浏览文件 @
5c959224
差异被折叠。
点击展开。
src/views/cooperate/index.vue
浏览文件 @
5c959224
差异被折叠。
点击展开。
src/views/homePage/index.vue
浏览文件 @
5c959224
差异被折叠。
点击展开。
src/views/publicScs/index.vue
浏览文件 @
5c959224
差异被折叠。
点击展开。
yarn.lock
0 → 100644
浏览文件 @
5c959224
This source diff could not be displayed because it is too large. You can
view the blob
instead.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论