Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
project-online-pc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
project-online-pc
Commits
06296b8a
提交
06296b8a
authored
5月 07, 2021
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
上级
f4f90b22
隐藏空白字符变更
内嵌
并排
正在显示
26 个修改的文件
包含
92 行增加
和
119 行删除
+92
-119
base.css
assets/css/base.css
+1
-2
Head.vue
components/Head.vue
+5
-2
appFrame.vue
components/appFrame.vue
+1
-1
newsItem.vue
components/news/newsItem.vue
+19
-31
default.vue
layouts/default.vue
+1
-3
normal.vue
layouts/normal.vue
+7
-2
index.vue
modules/letter/index.vue
+0
-1
index.vue
modules/my/application/index.vue
+1
-1
layout.vue
modules/my/layout.vue
+0
-15
course.vue
pages/about/course.vue
+1
-1
teacher.vue
pages/about/teacher.vue
+1
-1
outstanding.vue
pages/alumni/outstanding.vue
+1
-1
_id.vue
pages/alumni/sharing/_id.vue
+6
-12
index.vue
pages/alumni/sharing/index.vue
+9
-4
problem.vue
pages/apply/problem.vue
+1
-1
relevant.vue
pages/apply/relevant.vue
+1
-1
support.vue
pages/apply/support.vue
+1
-1
index.vue
pages/index.vue
+1
-1
_id.vue
pages/news/hot/_id.vue
+6
-13
index.vue
pages/news/hot/index.vue
+8
-6
_id.vue
pages/news/interview/_id.vue
+6
-11
index.vue
pages/news/interview/index.vue
+10
-4
bg.vue
pages/project-intro/bg.vue
+1
-1
certificate.vue
pages/project-intro/certificate.vue
+1
-1
charac.vue
pages/project-intro/charac.vue
+1
-1
routes.js
router/routes.js
+2
-1
没有找到文件。
assets/css/base.css
浏览文件 @
06296b8a
...
...
@@ -22,7 +22,7 @@ body {
'Hiragino Sans GB'
,
'Wenquanyi Micro Hei'
,
sans-serif
;
padding
:
0
;
margin
:
0
;
background
:
#
F9F8F8
;
background
:
#
eee
;
}
p
{
margin
:
0
;
...
...
@@ -171,4 +171,3 @@ img {
a
{
color
:
currentColor
;
}
components/Head.vue
浏览文件 @
06296b8a
...
...
@@ -252,13 +252,13 @@ export default {
getNameActive
()
{
return
item
=>
{
const
currentPath
=
this
.
$route
.
path
if
(
item
.
path
===
currentPath
)
{
if
(
currentPath
.
includes
(
item
.
path
)
)
{
return
'name active'
}
else
{
let
className
=
'name'
if
(
item
.
childern
)
{
item
.
childern
.
map
(
cData
=>
{
c
Data
.
path
===
currentPath
&&
(
className
=
'name active'
)
c
urrentPath
.
includes
(
cData
.
path
)
&&
(
className
=
'name active'
)
})
}
return
className
...
...
@@ -303,6 +303,9 @@ li {
font-style
:
normal
;
padding
:
0
14px
;
}
.logout
{
cursor
:
pointer
;
}
}
.login-btn-box
{
margin-left
:
auto
;
...
...
components/appFrame.vue
浏览文件 @
06296b8a
...
...
@@ -4,7 +4,7 @@
<li
v-for=
"(item, index) in data.slider"
:class=
"item.pathActive.findIndex(path =>
{
return
path === $route.path
return
$route.path.includes(path)
}) !== -1
&&
'active'"
:key="index"
@click="goPage(item.path)"
...
...
components/news/newsItem.vue
浏览文件 @
06296b8a
...
...
@@ -2,8 +2,8 @@
<div
class=
"news-content-box"
>
<ul
class=
"list-content"
>
<template
v-for=
"(item, index) in data"
>
<li
@
click=
"
goDetail
(item)"
:key=
"index"
>
<img
:src=
"item.photo_uri"
alt=
""
>
<li
@
click=
"
handleClick
(item)"
:key=
"index"
>
<img
:src=
"item.photo_uri"
alt=
""
/
>
<div
class=
"right-con"
>
<div
class=
"time"
>
{{
item
.
created_time
}}
</div>
<div
class=
"title"
>
{{
item
.
title
}}
</div>
...
...
@@ -27,64 +27,52 @@ export default {
}
},
methods
:
{
goDetail
(
item
)
{
if
(
item
.
source
===
''
)
{
const
path
=
this
.
$route
.
path
let
routePath
=
''
if
(
path
.
indexOf
(
'alumni'
)
>
-
1
)
{
routePath
=
'/alumni/detail'
}
else
{
routePath
=
this
.
$route
.
path
.
indexOf
(
'hot'
)
===
-
1
?
'/news/interview-detail'
:
'/news/hot-detail'
}
this
.
$router
.
push
({
path
:
routePath
,
query
:
{
id
:
item
.
id
}
})
}
else
{
handleClick
(
item
)
{
if
(
item
.
source
)
{
window
.
open
(
item
.
source
)
}
else
{
this
.
$emit
(
'onClick'
,
item
)
}
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.news-content-box
{
.list-content
{
.news-content-box
{
.list-content
{
width
:
900px
;
margin
:
0
auto
;
background
:
#fff
;
li
{
li
{
display
:
flex
;
flex-wrap
:
wrap
;
border-bottom
:
1px
solid
#
E6E6E
6
;
border-bottom
:
1px
solid
#
e6e6e
6
;
margin-bottom
:
20px
;
padding-bottom
:
36px
;
cursor
:
pointer
;
&
:hover
{
.right-con
{
.text
{
&
:hover
{
.right-con
{
.text
{
color
:
#141414
;
}
}
}
img
{
img
{
width
:
320px
;
height
:
210px
;
display
:
block
;
}
.right-con
{
.right-con
{
width
:
550px
;
margin-left
:
30px
;
.time
{
.time
{
font-size
:
16px
;
font-weight
:
300
;
line-height
:
100%
;
color
:
#
AA
1941
;
color
:
#
aa
1941
;
padding-top
:
13px
;
}
.title
{
.title
{
font-size
:
22px
;
font-weight
:
bold
;
line-height
:
32px
;
...
...
@@ -96,7 +84,7 @@ export default {
-webkit-line-clamp
:
2
;
-webkit-box-orient
:
vertical
;
}
.text
{
.text
{
font-size
:
14px
;
font-weight
:
300
;
line-height
:
24px
;
...
...
layouts/default.vue
浏览文件 @
06296b8a
<
template
>
<div>
<Nuxt
:key=
"$route.fullPath"
/>
</div>
<Nuxt
/>
</
template
>
layouts/
main
.vue
→
layouts/
normal
.vue
浏览文件 @
06296b8a
<
template
>
<div>
<Head
/>
<Nuxt
:key=
"$route.fullPath"
/>
<Foot
/>
<Nuxt
/>
<Foot
v-if=
"hasFooter"
/>
</div>
</
template
>
<
script
>
export
default
{
props
:
{
hasFooter
:
{
Boolean
,
default
:
true
}
}
}
</
script
>
<
style
>
html
{
font-family
:
'Source Sans Pro'
,
-apple-system
,
BlinkMacSystemFont
,
'Segoe UI'
,
Roboto
,
'Helvetica Neue'
,
Arial
,
...
...
modules/letter/index.vue
浏览文件 @
06296b8a
...
...
@@ -61,7 +61,6 @@
import
*
as
api
from
'@/api/my'
export
default
{
layout
:
'normal'
,
name
:
'LetterIndex'
,
data
()
{
return
{
...
...
modules/my/application/index.vue
浏览文件 @
06296b8a
...
...
@@ -94,7 +94,7 @@ export default {
},
handlePageChange
(
value
)
{
this
.
currentActive
=
value
this
.
$router
.
push
({
path
:
this
.
$route
.
path
,
query
:
{
active
:
value
}
})
.
catch
(()
=>
{})
this
.
$router
.
push
({
path
:
this
.
$route
.
path
,
query
:
{
active
:
value
}
})
},
handleTabChange
(
value
)
{
this
.
tabActive
=
value
...
...
modules/my/layout.vue
浏览文件 @
06296b8a
...
...
@@ -13,21 +13,6 @@
</div>
</
template
>
<
script
>
export
default
{
props
:
{},
data
()
{
return
{}
},
mounted
()
{
document
.
body
.
style
=
'background-color:#eee;'
},
destroyed
()
{
document
.
body
.
style
=
''
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.layout
{
max-width
:
1200px
;
...
...
pages/about/course.vue
浏览文件 @
06296b8a
...
...
@@ -24,7 +24,7 @@
<
script
>
import
appFrame
from
'../../components/appFrame'
export
default
{
layout
:
'
main
'
,
layout
:
'
normal
'
,
components
:
{
appFrame
},
...
...
pages/about/teacher.vue
浏览文件 @
06296b8a
...
...
@@ -25,7 +25,7 @@
<
script
>
import
appFrame
from
'../../components/appFrame'
export
default
{
layout
:
'
main
'
,
layout
:
'
normal
'
,
components
:
{
appFrame
},
...
...
pages/alumni/outstanding.vue
浏览文件 @
06296b8a
...
...
@@ -34,7 +34,7 @@
<
script
>
import
appFrame
from
'../../components/appFrame'
export
default
{
layout
:
'
main
'
,
layout
:
'
normal
'
,
components
:
{
appFrame
},
...
...
pages/alumni/
detail
.vue
→
pages/alumni/
sharing/_id
.vue
浏览文件 @
06296b8a
...
...
@@ -31,9 +31,9 @@
</div>
</
template
>
<
script
>
import
appFrame
from
'
../..
/components/appFrame'
import
appFrame
from
'
@
/components/appFrame'
export
default
{
layout
:
'
main
'
,
layout
:
'
normal
'
,
components
:
{
appFrame
},
...
...
@@ -58,7 +58,7 @@ export default {
}
},
async
fetch
()
{
this
.
data
=
await
this
.
$axios
.
get
(
`/api/zws/v1/cms/news/
${
this
.
$route
.
query
.
id
}
`
).
then
(
res
=>
{
this
.
data
=
await
this
.
$axios
.
get
(
`/api/zws/v1/cms/news/
${
this
.
$route
.
params
.
id
}
`
).
then
(
res
=>
{
return
res
})
const
params
=
{
...
...
@@ -76,16 +76,10 @@ export default {
mounted
()
{},
methods
:
{
goPage
(
item
)
{
if
(
item
.
source
===
''
)
{
// this.$router.push({
// path: '/about/news-detail',
// query: {
// id: item.id
// }
// })
window
.
open
(
`
${
window
.
location
.
origin
}
/about/news-detail?id=
${
item
.
id
}
`
)
}
else
{
if
(
item
.
source
)
{
window
.
open
(
item
.
source
)
}
else
{
this
.
$router
.
push
({
name
:
'alumni-sharing-id'
,
params
:
{
id
:
item
.
id
}
})
}
}
}
...
...
pages/alumni/sharing.vue
→
pages/alumni/sharing
/index
.vue
浏览文件 @
06296b8a
<
template
>
<div
class=
"sharing"
>
<app-frame
:data=
"frameParams"
>
<newsItem
:data=
"newsList"
class=
"news-item"
/>
<newsItem
:data=
"newsList"
class=
"news-item"
@
onClick=
"handleClick"
/>
</app-frame>
</div>
</
template
>
<
script
>
import
appFrame
from
'
../..
/components/appFrame'
import
newsItem
from
'
../..
/components/news/newsItem'
import
appFrame
from
'
@
/components/appFrame'
import
newsItem
from
'
@
/components/news/newsItem'
export
default
{
layout
:
'
main
'
,
layout
:
'
normal
'
,
components
:
{
appFrame
,
newsItem
...
...
@@ -44,6 +44,11 @@ export default {
]
}
}
},
methods
:
{
handleClick
(
item
)
{
this
.
$router
.
push
({
name
:
'alumni-sharing-id'
,
params
:
{
id
:
item
.
id
}
})
}
}
}
</
script
>
...
...
pages/apply/problem.vue
浏览文件 @
06296b8a
...
...
@@ -22,7 +22,7 @@
<
script
>
import
appFrame
from
'../../components/appFrame'
export
default
{
layout
:
'
main
'
,
layout
:
'
normal
'
,
components
:
{
appFrame
},
...
...
pages/apply/relevant.vue
浏览文件 @
06296b8a
...
...
@@ -21,7 +21,7 @@
<
script
>
import
appFrame
from
'../../components/appFrame'
export
default
{
layout
:
'
main
'
,
layout
:
'
normal
'
,
components
:
{
appFrame
},
...
...
pages/apply/support.vue
浏览文件 @
06296b8a
...
...
@@ -22,7 +22,7 @@
<
script
>
import
appFrame
from
'../../components/appFrame'
export
default
{
layout
:
'
main
'
,
layout
:
'
normal
'
,
components
:
{
appFrame
},
...
...
pages/index.vue
浏览文件 @
06296b8a
...
...
@@ -29,7 +29,7 @@ import commonProblem from '../components/home/commonProblem'
import
openClass
from
'../components/home/openClass'
import
rightAside
from
'../components/rightAside'
export
default
{
layout
:
'
main
'
,
layout
:
'
normal
'
,
components
:
{
banner
,
projectFeatures
,
...
...
pages/news/hot
-detail
.vue
→
pages/news/hot
/_id
.vue
浏览文件 @
06296b8a
...
...
@@ -31,9 +31,9 @@
</div>
</
template
>
<
script
>
import
appFrame
from
'
../..
/components/appFrame'
import
appFrame
from
'
@
/components/appFrame'
export
default
{
layout
:
'
main
'
,
layout
:
'
normal
'
,
components
:
{
appFrame
},
...
...
@@ -58,7 +58,7 @@ export default {
}
},
async
fetch
()
{
this
.
data
=
await
this
.
$axios
.
get
(
`/api/zws/v1/cms/news/
${
this
.
$route
.
query
.
id
}
`
).
then
(
res
=>
{
this
.
data
=
await
this
.
$axios
.
get
(
`/api/zws/v1/cms/news/
${
this
.
$route
.
params
.
id
}
`
).
then
(
res
=>
{
return
res
})
const
params
=
{
...
...
@@ -73,19 +73,12 @@ export default {
})
})
},
mounted
()
{},
methods
:
{
goPage
(
item
)
{
if
(
item
.
source
===
''
)
{
this
.
$router
.
push
({
path
:
'/news/hot-detail'
,
query
:
{
id
:
item
.
id
}
})
// window.open(`${window.location.origin}/news/hot-detail?id=${item.id}`)
}
else
{
if
(
item
.
source
)
{
window
.
open
(
item
.
source
)
}
else
{
this
.
$router
.
push
({
name
:
'news-hot-id'
,
params
:
{
id
:
item
.
id
}
})
}
}
}
...
...
pages/news/hot.vue
→
pages/news/hot
/index
.vue
浏览文件 @
06296b8a
<
template
>
<div
class=
"hot-content-box"
>
<app-frame
:data=
"frameParams"
>
<newsItem
:data=
"newsList"
class=
"news-item"
/>
<newsItem
:data=
"newsList"
class=
"news-item"
@
onClick=
"handleClick"
/>
</app-frame>
</div>
</
template
>
<
script
>
import
appFrame
from
'
../..
/components/appFrame'
import
newsItem
from
'
../..
/components/news/newsItem'
import
appFrame
from
'
@
/components/appFrame'
import
newsItem
from
'
@
/components/news/newsItem'
export
default
{
layout
:
'
main
'
,
layout
:
'
normal
'
,
components
:
{
appFrame
,
newsItem
...
...
@@ -45,8 +45,10 @@ export default {
}
}
},
mounted
()
{
console
.
log
(
this
.
$route
)
methods
:
{
handleClick
(
item
)
{
this
.
$router
.
push
({
name
:
'news-hot-id'
,
params
:
{
id
:
item
.
id
}
})
}
}
}
</
script
>
...
...
pages/news/interview
-detail
.vue
→
pages/news/interview
/_id
.vue
浏览文件 @
06296b8a
...
...
@@ -31,9 +31,10 @@
</div>
</
template
>
<
script
>
import
appFrame
from
'
../..
/components/appFrame'
import
appFrame
from
'
@
/components/appFrame'
export
default
{
layout
:
'main'
,
layout
:
'normal'
,
watchQuery
:
true
,
components
:
{
appFrame
},
...
...
@@ -76,16 +77,10 @@ export default {
mounted
()
{},
methods
:
{
goPage
(
item
)
{
if
(
item
.
source
===
''
)
{
// this.$router.push({
// path: '/about/news-detail',
// query: {
// id: item.id
// }
// })
window
.
open
(
`
${
window
.
location
.
origin
}
/about/news-detail?id=
${
item
.
id
}
`
)
}
else
{
if
(
item
.
source
)
{
window
.
open
(
item
.
source
)
}
else
{
this
.
$router
.
push
({
name
:
'news-interview-id'
,
params
:
{
id
:
item
.
id
}
})
}
}
}
...
...
pages/news/interview.vue
→
pages/news/interview
/index
.vue
浏览文件 @
06296b8a
<
template
>
<div
class=
"hot-content-box"
>
<app-frame
:data=
"frameParams"
>
<newsItem
:data=
"newsList"
class=
"news-item"
/>
<newsItem
:data=
"newsList"
class=
"news-item"
@
onClick=
"handleClick"
/>
</app-frame>
</div>
</
template
>
<
script
>
import
appFrame
from
'
../..
/components/appFrame'
import
newsItem
from
'
../..
/components/news/newsItem'
import
appFrame
from
'
@
/components/appFrame'
import
newsItem
from
'
@
/components/news/newsItem'
export
default
{
layout
:
'
main
'
,
layout
:
'
normal
'
,
components
:
{
appFrame
,
newsItem
...
...
@@ -44,6 +45,11 @@ export default {
]
}
}
},
methods
:
{
handleClick
(
item
)
{
this
.
$router
.
push
({
name
:
'news-interview-id'
,
params
:
{
id
:
item
.
id
}
})
}
}
}
</
script
>
...
...
pages/project-intro/bg.vue
浏览文件 @
06296b8a
...
...
@@ -85,7 +85,7 @@
</
template
>
<
script
>
export
default
{
layout
:
'
main
'
,
layout
:
'
normal
'
,
data
()
{
return
{
tabActive
:
'zjjy'
,
...
...
pages/project-intro/certificate.vue
浏览文件 @
06296b8a
...
...
@@ -19,7 +19,7 @@
</
template
>
<
script
>
export
default
{
layout
:
'
main
'
,
layout
:
'
normal
'
,
data
()
{
return
{
frameParams
:
{
...
...
pages/project-intro/charac.vue
浏览文件 @
06296b8a
...
...
@@ -17,7 +17,7 @@
</
template
>
<
script
>
export
default
{
layout
:
'
main
'
,
layout
:
'
normal
'
,
data
()
{
return
{
list
:
[
...
...
router/routes.js
浏览文件 @
06296b8a
...
...
@@ -6,7 +6,8 @@ export default (routes, resolve) => {
routes
.
push
(
{
path
:
'/my'
,
component
:
resolve
(
__dirname
,
'../layouts/main.vue'
),
component
:
resolve
(
__dirname
,
'../layouts/normal.vue'
),
props
:
{
hasFooter
:
false
},
children
:
[
{
name
:
'apply'
,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论