Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
R
rs-pc
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
翟畅
rs-pc
Commits
5b1bcf91
提交
5b1bcf91
authored
8月 11, 2022
作者:
方远
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改跳转、页首、页脚
上级
2d52e266
显示空白字符变更
内嵌
并排
正在显示
15 个修改的文件
包含
488 行增加
和
131 行删除
+488
-131
common.js
src/api/common.js
+7
-0
xiaoguo_07.png
src/assets/common/xiaoguo_07.png
+0
-0
comFooter.vue
src/components/comFooter.vue
+43
-9
comHeader.vue
src/components/comHeader.vue
+33
-25
levitate.vue
src/components/index/levitate.vue
+4
-3
sidebar.vue
src/components/index/sidebar.vue
+32
-25
main.js
src/main.js
+3
-0
index.js
src/router/index.js
+1
-0
index.vue
src/views/groupProfile/index.vue
+64
-21
index.vue
src/views/home/index.vue
+214
-22
index.vue
src/views/mine/index.vue
+1
-1
index.vue
src/views/pressCenter/index.vue
+1
-0
detail.vue
src/views/productsWorld/detail.vue
+27
-3
index.vue
src/views/productsWorld/index.vue
+25
-10
specialDetFirst.vue
src/views/specialSeries/specialDetFirst.vue
+33
-12
没有找到文件。
src/api/common.js
浏览文件 @
5b1bcf91
...
...
@@ -44,6 +44,13 @@ export function getCopyRightAPI() { // 版权信息
})
}
export
function
getSettingsAPI
()
{
//查询基础参数设置
return
request
({
url
:
`
${
requestPath
.
admin
}
/index/get/settings`
,
method
:
'get'
})
}
export
function
shopCartAPI
(
data
)
{
//添加购物车
return
request
({
url
:
`
${
requestPath
.
resource
}
/shopping-cart/save`
,
...
...
src/assets/common/xiaoguo_07.png
0 → 100644
浏览文件 @
5b1bcf91
2.0 KB
src/components/comFooter.vue
浏览文件 @
5b1bcf91
...
...
@@ -48,12 +48,22 @@
<span
class=
"gapLine"
v-if=
"index != footerList.length - 1"
>
|
</span>
</span>
</div>
<div
class=
"bottomOtherMessage"
v-html=
"dictionaryText"
></div>
<div
class=
"bottomOtherMessage"
>
<p>
温馨提示,为了获得最佳用户体验,建议您使用Chrome,Firefox,IE10+,360浏览器极速模式
</p>
<!--
<div
class=
"bottomOtherMessage"
v-html=
"dictionaryText"
></div>
-->
<div
class=
"bottomOtherMessage bottom_text"
>
<div
class=
"left"
>
<p>
版权所有:中国劳动社会保障出版社有限公司
</p>
<p>
主办单位:中国劳动社会保障出版社有限公司 总经理办公室
</p>
<p>
集团旗舰店 :
<a
href=
"https://ldshbzcbs.tmall.com/"
target=
"blank"
>
中国人事社劳动社旗舰店
</a><a
href=
"https://class.jd.com/"
target=
"blank"
>
京东网
</a><a
href=
"http://store.dangdang.com/573"
target=
"blank"
>
当当网
</a></p>
</div>
<div
class=
"right"
>
<p>
地 址 : 北京市朝阳区惠新东街1号
</p>
<p>
邮 编 : 100029
<a
:href=
"footerLink"
target=
"blank"
>
互联网出版许可证
</a><a
href=
"https://beian.miit.gov.cn/"
target=
"blank"
>
京ICP备09045789号-1
</a><a
href=
"http://www.class.com.cn/fg/news/toNewsDetail.html?newsId=402882175ffd7bcc0160013c6fb10053"
target=
"blank"
><img
src=
"@/assets/common/xiaoguo_07.png"
>
京公安备11010502032447号
</a></p>
<p>
温馨提示,为了获得最佳用户体验,建议您使用Chrome,Firefox,IE11+,360浏览器极速模式
</p>
</div>
</div>
<!--
<div
class=
"bottomOtherMessage"
>
<p>
温馨提示,为了获得最佳用户体验,建议您使用Chrome,Firefox,IE11+,360浏览器极速模式
</p>
</div>
-->
</div>
</div>
</div>
...
...
@@ -61,7 +71,8 @@
<
script
>
import
{
resourceLink
}
from
"@/utils/global.js"
import
{
linksAPI
,
footerAPI
,
getCopyRightAPI
,
linksUpdateAPI
}
from
"@/api/common"
;
import
{
linksAPI
,
footerAPI
,
getSettingsAPI
,
linksUpdateAPI
,
}
from
"@/api/common"
;
import
{
getSignValueAPI
,
}
from
"@/api/home"
;
export
default
{
data
()
{
...
...
@@ -142,12 +153,14 @@ export default {
pageSize
:
6
,
},
dictionaryText
:
null
,
footerLink
:
""
,
};
},
mounted
()
{
this
.
getLink
();
//前台友情链接
this
.
getFooter
();
//页脚
this
.
getdictionary
();
//底部版权
this
.
getFooterLink
()
//获取底部许可证链接
if
(
this
.
$route
.
meta
.
shopBg
)
{
//面包屑整体灰色背景
this
.
shopBg
=
true
}
...
...
@@ -165,6 +178,13 @@ export default {
jgwabUrl
(){
window
.
open
(
'http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=11010202010043'
,
'_blank'
)
},
getFooterLink
(){
getSignValueAPI
({
code
:
"xkz"
}).
then
(
res
=>
{
if
(
res
.
data
.
code
==
0
){
this
.
footerLink
=
res
.
data
.
data
[
0
].
url
}
})
},
getLink
()
{
//友情链接
linksAPI
({
num
:
6
}).
then
((
res
)
=>
{
...
...
@@ -177,7 +197,8 @@ export default {
},
goBottomLink
(
item
)
{
//链接跳转
window
.
open
(
this
.
resourceLink
+
'/fg/index.html#/introductions?id='
+
item
.
id
);
// window.open(this.resourceLink + '/fg/index.html#/introductions?id=' + item.id);
this
.
$linkToRsResource
(
'/introductions?id='
+
item
.
id
)
},
getFooter
()
{
//页脚
...
...
@@ -191,9 +212,9 @@ export default {
},
getdictionary
()
{
//底部版权
get
CopyRight
API
().
then
((
res
)
=>
{
get
Settings
API
().
then
((
res
)
=>
{
if
(
res
.
data
.
code
==
0
)
{
this
.
dictionaryText
=
res
.
data
.
data
.
value
;
this
.
dictionaryText
=
res
.
data
.
data
.
copyrightInformation
;
}
else
{
this
.
$message
.
error
(
"请求数据失败"
);
}
...
...
@@ -383,6 +404,19 @@ export default {
font-size
:
14px
;
line-height
:
40px
;
}
&
.bottom_text
{
align-items
:
flex-start
;
justify-content
:
flex-start
;
a
{
color
:
inherit
;
}
.left
{
margin-right
:
60px
;
}
.right
{
}
}
}
}
}
...
...
src/components/comHeader.vue
浏览文件 @
5b1bcf91
...
...
@@ -4,7 +4,7 @@
<div
class=
"login_top_content"
>
<div
class=
"header_top_left"
>
<img
src=
"@/assets/home/logo.png"
alt=
""
class=
"logoImg"
>
<div
class=
"headerBtn"
@
click=
"
toMall(
)"
>
<div
class=
"headerBtn"
@
click=
"
$linkToRsResource('/'
)"
>
<img
src=
"@/assets/home/ico-produce.png"
alt=
""
class=
"iconImg1"
>
<span>
直通商城
</span>
</div>
...
...
@@ -34,9 +34,9 @@
</div>
<div
class=
"login_bottom"
:class=
"isFixed?'fixedNavStyle':''"
>
<div
class=
"navList"
>
<div
:class=
"(currentNavItem == index || currentUrl == item.routerUrl || (currentUrl.indexOf(item.routerUrl) != -1 && item.routerUrl != '/'))?'navItem navCurrentSelected':'navItem'"
v-for=
"(item,index) in navListData"
:key=
"'nav'+index"
@
mouseenter=
"currentNavItem = index"
>
<div
:class=
"(currentNavItem == index || currentUrl == item.routerUrl || (currentUrl.indexOf(item.routerUrl) != -1 && item.routerUrl != '/'))?'navItem navCurrentSelected':'navItem'"
v-for=
"(item,index) in navListData"
:key=
"'nav'+index"
>
<span
@
click=
"toUrl(item.routerUrl,index)"
class=
"textName"
>
{{
item
.
name
}}
</span>
<div
class=
"navCellList"
v-if=
"
currentNavItem == index &&
item.dropDownList && item.dropDownList.length > 0"
>
<div
class=
"navCellList"
v-if=
"item.dropDownList && item.dropDownList.length > 0"
>
<div
class=
"navCellWrap"
v-for=
"(x,y) in item.dropDownList"
:key=
"'drop'+y"
@
click=
"changePageScroll(index,x)"
>
{{
x
.
title
}}
</div>
</div>
</div>
...
...
@@ -153,7 +153,7 @@ export default {
{
title
:
'数字精品'
,
idUrl
:
'/productsWorld#produce2'
},
{
title
:
'产品分类'
,
idUrl
:
'/productsWorld#produce3'
},
{
title
:
'资源平台'
,
idUrl
:
'/productsWorld#produce4'
},
{
title
:
'资源下载'
,
idUrl
:
'/productsWorld
#produce5
'
},
{
title
:
'资源下载'
,
idUrl
:
'/productsWorld
/resourceDownload
'
},
]
},
{
name
:
'营销服务'
,
val
:
5
,
routerUrl
:
'/marketingService'
,
dropDownList
:[
...
...
@@ -210,9 +210,9 @@ export default {
this
.
isFixed
=
false
}
},
toMall
(){
window
.
open
(
this
.
resourceLink
+
'/fg/mallIndex/index.html'
,
'_blank'
)
},
//
toMall(){
//
window.open(this.resourceLink + '/fg/mallIndex/index.html','_blank')
//
},
marketLogin
(){
window
.
open
(
'http://nps.class.com.cn/dealer/'
,
'_blank'
)
},
...
...
@@ -254,20 +254,24 @@ export default {
}
},
searchLink
(){
if
(
this
.
currentIndex
==
0
){
if
(
!
this
.
searchSelect
||
this
.
searchSelect
==
''
){
window
.
open
(
this
.
resourceLink
+
'/fg/solr/index.html?word='
+
this
.
searchKeyWord
+
'&category=1'
)
}
else
{
window
.
open
(
this
.
resourceLink
+
'/fg/book/book_list.html?'
+
this
.
searchSelect
+
'='
+
this
.
searchKeyWord
)
}
}
else
if
(
this
.
currentIndex
==
1
){
if
(
!
this
.
searchSelect
||
this
.
searchSelect
==
''
){
window
.
open
(
this
.
resourceLink
+
'/fg/solr/index.html?word='
+
this
.
searchKeyWord
+
'&category=3'
)
}
else
{
window
.
open
(
this
.
resourceLink
+
'/fg/book/book_list.html?'
+
this
.
searchSelect
+
'='
+
this
.
searchKeyWord
+
'&showView=2'
)
}
}
else
if
(
this
.
currentIndex
==
2
){
window
.
open
(
this
.
resourceLink
+
'/fg/index/toSearchList.html?searchName=newsTitle&newsTitle='
+
this
.
searchKeyWord
+
'&clickNum=0'
)
if
(
this
.
currentIndex
==
0
){
//产品
// if(!this.searchSelect || this.searchSelect == ''){
// window.open(this.resourceLink + '/fg/solr/index.html?word=' + this.searchKeyWord + '&category=1')
// }else{
// window.open(this.resourceLink + '/fg/book/book_list.html?'+ this.searchSelect + '=' + this.searchKeyWord)
// }
this
.
$linkToRsResource
(
'/resource?name='
+
this
.
searchKeyWord
)
}
else
if
(
this
.
currentIndex
==
1
){
//资源
// if(!this.searchSelect || this.searchSelect == ''){
// window.open(this.resourceLink + '/fg/solr/index.html?word=' + this.searchKeyWord + '&category=3')
// }else{
// window.open(this.resourceLink + '/fg/book/book_list.html?'+ this.searchSelect + '=' + this.searchKeyWord +'&showView=2')
// }
this
.
$linkToRsResource
(
'/digital?name='
+
this
.
searchKeyWord
)
}
else
if
(
this
.
currentIndex
==
2
){
//资讯
// window.open(this.resourceLink + '/fg/index/toSearchList.html?searchName=newsTitle&newsTitle='+ this.searchKeyWord +'&clickNum=0')
this
.
$router
.
push
({
name
:
"pressCenter"
,
query
:{
name
:
this
.
searchKeyWord
}})
this
.
dialogSearchVisible
=
false
}
},
toUrl
(
routerUrl
,
index
){
...
...
@@ -608,14 +612,14 @@ export default {
.navCellList
{
display
:
inline-block
;
overflow
:
hidden
;
animation
:
showNow
0
.5
s
linear
;
animation
:
showNow
1
s
linear
;
}
@keyframes
showNow
{
0
%
{
height
:
0
;
max-
height
:
0
;
}
100
%
{
height
:
100%
;
max-height
:
500px
;
}
}
}
...
...
@@ -624,9 +628,13 @@ export default {
height
:
100%
;
display
:
inline-block
;
}
&
:hover
{
background
:
linear-gradient
(
0deg
,
#164480
0%
,
#0f68f8
100%
);
font-weight
:
800
;
}
}
.navCurrentSelected
{
background
:
linear-gradient
(
0deg
,
#1
A55C3
0%
,
#1768EA
99
%
);
background
:
linear-gradient
(
0deg
,
#1
64480
0%
,
#0f68f8
100
%
);
font-weight
:
800
;
}
.navCellList
{
...
...
src/components/index/levitate.vue
浏览文件 @
5b1bcf91
<
template
>
<div>
<div
class=
"box"
>
<div
class=
"list"
@
click=
"feedback"
>
<
!--
<
div
class=
"list"
@
click=
"feedback"
>
<img
src=
"@/assets/index/ico-yjfk.png"
class=
"icon_message1"
>
<img
src=
"@/assets/index/ico-yjfk-h.png"
class=
"icon_message2"
>
</div>
</div>
-->
<div
class=
"back_list"
@
click=
"goTop"
>
<img
src=
"@/assets/index/back_top.png"
class=
"icon_return"
>
</div>
...
...
@@ -24,7 +24,8 @@ export default {
},
methods
:{
goTop
(){
window
.
scroll
(
0
,
0
)
// window.scroll(0,0)
document
.
querySelector
(
".login_case"
).
scrollIntoView
({
behavior
:
"smooth"
,
block
:
"start"
,
inline
:
"start"
})
},
feedback
(){
window
.
open
(
this
.
resourceLink
+
'/fg/index.html#/feedback'
)
...
...
src/components/index/sidebar.vue
浏览文件 @
5b1bcf91
...
...
@@ -25,38 +25,38 @@ export default {
currentIndex
:
null
,
navListData
:[
{
name
:
'首页'
,
val
:
1
,
routerUrl
:
'/'
,
dropDownList
:[
{
title
:
'动态'
,
idUrl
:
'/#home1'
,
hash
:
'#home1'
},
{
title
:
'图书产品'
,
idUrl
:
'/#home2'
,
hash
:
'#home2'
},
{
title
:
'新书推荐'
,
idUrl
:
'/#home3'
,
hash
:
'#home3'
},
{
title
:
'数字产品'
,
idUrl
:
'/#home4'
,
hash
:
'#home4'
},
{
title
:
'资源平台'
,
idUrl
:
'/#home5'
,
hash
:
'#home5'
},
{
title
:
'动态'
,
idUrl
:
'/#home1'
,
hash
:
'#home1'
,
id
:
'home1'
},
{
title
:
'图书产品'
,
idUrl
:
'/#home2'
,
hash
:
'#home2'
,
id
:
'home2'
},
{
title
:
'新书推荐'
,
idUrl
:
'/#home3'
,
hash
:
'#home3'
,
id
:
'home3'
},
{
title
:
'数字产品'
,
idUrl
:
'/#home4'
,
hash
:
'#home4'
,
id
:
'home4'
},
{
title
:
'资源平台'
,
idUrl
:
'/#home5'
,
hash
:
'#home5'
,
id
:
'home5'
},
// { title:'期刊', idUrl:'/#home6', hash:'#home6' },
]
},
{
name
:
'集团概况'
,
val
:
2
,
routerUrl
:
'/groupProfile'
,
dropDownList
:[
{
title
:
'集团简介'
,
idUrl
:
'/groupProfile#group1'
,
hash
:
'#group1'
},
{
title
:
'集团领导'
,
idUrl
:
'/groupProfile#group2'
,
hash
:
'#group2'
},
{
title
:
'组织机构'
,
idUrl
:
'/groupProfile#group3'
,
hash
:
'#group3'
},
{
title
:
'荣誉长廊'
,
idUrl
:
'/groupProfile#group4'
,
hash
:
'#group4'
},
{
title
:
'企业文化'
,
idUrl
:
'/groupProfile#group5'
,
hash
:
'#group5'
},
{
title
:
'工作活动'
,
idUrl
:
'/groupProfile#group6'
,
hash
:
'#group6'
},
{
title
:
'集团简介'
,
idUrl
:
'/groupProfile#group1'
,
hash
:
'#group1'
,
id
:
'group1'
},
{
title
:
'集团领导'
,
idUrl
:
'/groupProfile#group2'
,
hash
:
'#group2'
,
id
:
'group2'
},
{
title
:
'组织机构'
,
idUrl
:
'/groupProfile#group3'
,
hash
:
'#group3'
,
id
:
'group3'
},
{
title
:
'荣誉长廊'
,
idUrl
:
'/groupProfile#group4'
,
hash
:
'#group4'
,
id
:
'group4'
},
{
title
:
'企业文化'
,
idUrl
:
'/groupProfile#group5'
,
hash
:
'#group5'
,
id
:
'group5'
},
{
title
:
'工作活动'
,
idUrl
:
'/groupProfile#group6'
,
hash
:
'#group6'
,
id
:
'group6'
},
]
},
{
name
:
'新闻中心'
,
val
:
3
,
routerUrl
:
'/pressCenter'
,
dropDownList
:[]},
{
name
:
'产品世界'
,
val
:
4
,
routerUrl
:
'/productsWorld'
,
dropDownList
:[
{
title
:
'产品推介'
,
idUrl
:
'/productsWorld#produce1'
,
hash
:
'#produce1'
},
{
title
:
'数字精品'
,
idUrl
:
'/productsWorld#produce2'
,
hash
:
'#produce2'
},
{
title
:
'产品分类'
,
idUrl
:
'/productsWorld#produce3'
,
hash
:
'#produce3'
},
{
title
:
'资源平台'
,
idUrl
:
'/productsWorld#produce4'
,
hash
:
'#produce4'
},
{
title
:
'资源下载'
,
idUrl
:
'/productsWorld
#produce5'
,
hash
:
'#produce5'
},
{
title
:
'产品推介'
,
idUrl
:
'/productsWorld#produce1'
,
hash
:
'#produce1'
,
id
:
'produce1'
,
},
{
title
:
'数字精品'
,
idUrl
:
'/productsWorld#produce2'
,
hash
:
'#produce2'
,
id
:
'produce2'
,
},
{
title
:
'产品分类'
,
idUrl
:
'/productsWorld#produce3'
,
hash
:
'#produce3'
,
id
:
'produce3'
,
},
{
title
:
'资源平台'
,
idUrl
:
'/productsWorld#produce4'
,
hash
:
'#produce4'
,
id
:
'produce4'
,
},
{
title
:
'资源下载'
,
idUrl
:
'/productsWorld
/resourceDownload'
,
hash
:
'#produce5'
,
id
:
'produce5'
,
},
]
},
{
name
:
'营销服务'
,
val
:
5
,
routerUrl
:
'/marketingService'
,
dropDownList
:[
{
title
:
'营销中心'
,
idUrl
:
'/marketingService#marketing1'
,
hash
:
'#marketing1'
},
{
title
:
'下载服务'
,
idUrl
:
'/marketingService#marketing2'
,
hash
:
'#marketing2'
},
{
title
:
'联系信息'
,
idUrl
:
'/marketingService#marketing3'
,
hash
:
'#marketing3'
},
{
title
:
'经销商服务'
,
idUrl
:
'/marketingService#marketing4'
,
hash
:
'#marketing4'
},
{
title
:
'经销商登陆'
,
idUrl
:
'/marketingService#marketing5'
,
hash
:
'#marketing5'
},
{
title
:
'营销中心'
,
idUrl
:
'/marketingService#marketing1'
,
hash
:
'#marketing1'
,
id
:
'marketing1'
},
{
title
:
'下载服务'
,
idUrl
:
'/marketingService#marketing2'
,
hash
:
'#marketing2'
,
id
:
'marketing2'
},
{
title
:
'联系信息'
,
idUrl
:
'/marketingService#marketing3'
,
hash
:
'#marketing3'
,
id
:
'marketing3'
},
{
title
:
'经销商服务'
,
idUrl
:
'/marketingService#marketing4'
,
hash
:
'#marketing4'
,
id
:
'marketing4'
},
{
title
:
'经销商登陆'
,
idUrl
:
'/marketingService#marketing5'
,
hash
:
'#marketing5'
,
id
:
'marketing5'
,
openUrl
:
'http://nps.class.com.cn/dealer/'
},
]
},
{
name
:
'专题系列'
,
val
:
6
,
routerUrl
:
'/specialSeries'
,
dropDownList
:[]},
...
...
@@ -67,10 +67,10 @@ export default {
// ]
// },
{
name
:
'与我同行'
,
val
:
9
,
routerUrl
:
'/mine'
,
dropDownList
:[
{
title
:
'员工发展'
,
idUrl
:
'/mine#mine1'
,
hash
:
'#mine1'
},
{
title
:
'招聘职位'
,
idUrl
:
'/mine#mine2'
,
hash
:
'#mine2'
},
{
title
:
'招聘流程'
,
idUrl
:
'/mine#mine3'
,
hash
:
'#mine3'
},
{
title
:
'联系我们'
,
idUrl
:
'/mine#mine4'
,
hash
:
'#mine4'
},
{
title
:
'员工发展'
,
idUrl
:
'/mine#mine1'
,
hash
:
'#mine1'
,
id
:
'mine1'
},
{
title
:
'招聘职位'
,
idUrl
:
'/mine#mine2'
,
hash
:
'#mine2'
,
id
:
'mine2'
},
{
title
:
'招聘流程'
,
idUrl
:
'/mine#mine3'
,
hash
:
'#mine3'
,
id
:
'mine3'
},
{
title
:
'联系我们'
,
idUrl
:
'/mine#mine4'
,
hash
:
'#mine4'
,
id
:
'mine4'
},
]
},
],
...
...
@@ -91,7 +91,14 @@ export default {
}
},
changePageScroll
(
item
){
if
(
item
.
openUrl
){
window
.
open
(
item
.
openUrl
,
"_blank"
)
}
if
(
item
.
id
==
"produce5"
){
this
.
$router
.
push
({
path
:
item
.
idUrl
})
}
else
{
document
.
getElementById
(
item
.
id
).
scrollIntoView
({
behavior
:
"smooth"
,
block
:
"start"
,
inline
:
"start"
})
}
}
}
}
...
...
src/main.js
浏览文件 @
5b1bcf91
...
...
@@ -24,6 +24,9 @@ Vue.use(ElementUI);
Vue
.
component
(
"v-distpicker"
,
VDistpicker
);
Vue
.
prototype
.
$filePath
=
"http://test23.zhongdianyun.com/file/file/?fileName="
;
Vue
.
prototype
.
$linkToRsResource
=
(
path
)
=>
{
window
.
open
(
'http://test23.zhongdianyun.com/fg'
+
path
,
'_blank'
)
//资源库地址
};
import
Bus
from
"@/utils/bus"
;
Vue
.
use
(
Bus
);
// //图片地址
...
...
src/router/index.js
浏览文件 @
5b1bcf91
...
...
@@ -95,6 +95,7 @@ const routes = [
];
const
router
=
new
VueRouter
({
mode
:
"history"
,
base
:
process
.
env
.
BASE_URL
,
routes
,
});
...
...
src/views/groupProfile/index.vue
浏览文件 @
5b1bcf91
...
...
@@ -89,12 +89,16 @@
</div>
<div
class=
"honorGalleryDetail"
>
<div
class=
"detailMedal"
>
<div
class=
"leftIcon"
@
click=
"leftPage(leftNum)"
v-if=
"medalList && medalList.length > 4"
></div>
<div
class=
"rightIcon"
@
click=
"rightPage(rightNum)"
v-if=
"medalList && medalList.length > 4"
></div>
<div
class=
"medalPic"
v-for=
"(item,index) in medalListCurrent"
:key=
"''+index"
>
<div
class=
"leftIcon group_swiper_left"
></div>
<div
class=
"rightIcon group_swiper_right"
></div>
<div
class=
"swiper-container group_swiper"
>
<div
class=
"swiper-wrapper"
>
<div
class=
"swiper-slide medalPic"
v-for=
"(item,index) in medalList"
:key=
"''+index"
>
<img
:src=
"coverUrl(item.imgId)"
alt=
""
>
</div>
</div>
</div>
</div>
<div
class=
"detailYears"
>
<div
class=
"leftIcon"
@
click=
"leftYearChange(leftYear)"
v-if=
"yearList && yearList.length > 4"
></div>
<div
class=
"rightIcon"
@
click=
"rightYearChange(rightYear)"
v-if=
"yearList && yearList.length > 4"
></div>
...
...
@@ -350,7 +354,8 @@ export default {
massList
:[
{
name
:
'技工教育和职业培训教材建设工作座谈会暨第31次代理发行站工作会议成功召开'
,
type
:
'1'
,
text
:
'出版集团2017年5月8日讯(营销部 撰稿)5月5日—6日,技工教育和职业培训教材建设工作座谈会暨出版集团第31次代理发行站版集团2017年5月8日讯(营销部 撰稿)5月5日—6日,技工教育和职业培训教材建设工作座谈... '
,
time
:
'2022-06-07'
},
{
name
:
'人社部举办2018年全国人力资源市场高校毕业生就业服务周活动'
,
type
:
'2'
,
text
:
''
,
time
:
'2022-06-06'
}
]
],
mySwiper
:
null
,
};
},
watch
:{
...
...
@@ -448,10 +453,28 @@ export default {
profileHonorImgListAPI
({
columnId
:
id
}).
then
((
res1
)
=>
{
if
(
res1
.
data
.
code
==
0
){
this
.
medalList
=
res1
.
data
.
data
this
.
medalListCurrent
=
this
.
medalList
.
slice
(
0
,
4
)
// this.medalListCurrent = this.medalList
this
.
$nextTick
(()
=>
{
this
.
initSwiper
()
})
}
})
},
initSwiper
(){
let
that
=
this
this
.
mySwiper
=
new
Swiper
(
'.group_swiper'
,
{
autoplay
:
false
,
speed
:
1000
,
slidesPerView
:
4
,
spaceBetween
:
40
,
nextButton
:
'.group_swiper_right'
,
//前进按钮
prevButton
:
'.group_swiper_left'
,
//后退按钮
autoplayDisableOnInteraction
:
false
,
//用户操作swiper之后,是否要禁止autoplay。默认的状态是true,既是禁止的。如果设置成false则代表,用户操作swiper之后自动切换不会停止,每次都会重新启动autoplay。
// onSlideChangeStart: function(swiper){
// that.slideIndex = swiper.activeIndex
// }
})
},
//企业文化
profileQywh
(
id
){
profileDetailAPI
(
id
).
then
((
res
)
=>
{
...
...
@@ -461,23 +484,23 @@ export default {
})
},
//荣誉长廊左边
leftPage
(
leftNum
){
if
(
leftNum
>
0
){
this
.
rightNum
=
this
.
rightNum
-
1
this
.
leftNum
=
this
.
leftNum
-
1
this
.
medalListCurrent
=
this
.
medalList
.
slice
(
this
.
leftNum
,
this
.
rightNum
)
}
},
//
//
荣誉长廊左边
//
leftPage(leftNum){
//
if(leftNum > 0){
//
this.rightNum = this.rightNum - 1
//
this.leftNum = this.leftNum - 1
//
this.medalListCurrent = this.medalList.slice(this.leftNum,this.rightNum)
//
}
//
},
//荣誉长廊右边
rightPage
(
rightNum
){
if
(
rightNum
<
this
.
medalList
.
length
){
this
.
rightNum
=
this
.
rightNum
+
1
this
.
leftNum
=
this
.
leftNum
+
1
this
.
medalListCurrent
=
this
.
medalList
.
slice
(
this
.
leftNum
,
this
.
rightNum
)
}
},
//
//
荣誉长廊右边
//
rightPage(rightNum){
//
if(rightNum
<
this
.
medalList
.
length
){
//
this.rightNum = this.rightNum + 1
//
this.leftNum = this.leftNum + 1
//
this.medalListCurrent = this.medalList.slice(this.leftNum,this.rightNum)
//
}
//
},
//时间点左边
leftYearChange
(
leftYear
){
...
...
@@ -1241,6 +1264,14 @@ export default {
padding: 0 52px;
box-sizing: border-box;
margin-bottom: 60px;
&:hover{
.leftIcon{
display: block;
}
.rightIcon{
display: block;
}
}
.leftIcon{
width: 14px;
height: 23px;
...
...
@@ -1253,6 +1284,7 @@ export default {
background-size: 100% 100%;
background-repeat: no-repeat;
cursor: pointer;
display: none;
}
.rightIcon{
width: 14px;
...
...
@@ -1266,6 +1298,7 @@ export default {
background-size: 100% 100%;
background-repeat: no-repeat;
cursor: pointer;
display: none;
}
.medalPic{
width: 250px;
...
...
@@ -1283,6 +1316,14 @@ export default {
padding: 0 25px;
box-sizing: border-box;
margin-bottom: 30px;
&:hover{
.leftIcon{
display: block;
}
.rightIcon{
display: block;
}
}
.leftIcon{
width: 14px;
height: 23px;
...
...
@@ -1295,6 +1336,7 @@ export default {
background-size: 100% 100%;
background-repeat: no-repeat;
cursor: pointer;
display: none;
}
.rightIcon{
width: 14px;
...
...
@@ -1308,6 +1350,7 @@ export default {
background-size: 100% 100%;
background-repeat: no-repeat;
cursor: pointer;
display: none;
}
.yearLine{
width: 1150px;
...
...
src/views/home/index.vue
浏览文件 @
5b1bcf91
...
...
@@ -59,7 +59,7 @@
<div
class=
"shadeContent"
v-else
>
<div
class=
"shadeName"
>
{{
item
.
showName
}}
</div>
<div
class=
"shadeLabelContent"
>
<span
class=
"labelCell"
v-for=
"(x,y) in item.list"
:key=
"'label'+y"
@
click=
"toDetailLabel(x)"
>
{{
x
.
showName
}}
</span>
<span
class=
"labelCell"
v-for=
"(x,y) in item.list"
:key=
"'label'+y"
@
click=
"toDetailLabel(x
,item
)"
>
{{
x
.
showName
}}
</span>
</div>
</div>
</div>
...
...
@@ -93,6 +93,18 @@
<div
class=
"swiper-button-prev"
><i
class=
"el-icon-arrow-left"
></i></div>
<div
class=
"swiper-button-next"
><i
class=
"el-icon-arrow-right"
></i></div>
</div>
<div
class=
"progress-selector"
>
<input
class=
"input-progress"
:style=
"cssVars"
:value=
"slideIndex+1"
type=
"range"
:max=
"newArrivalsList.length-4"
:min=
"1"
step=
"1"
@
input=
"progressChange($event)"
/>
</div>
</div>
</div>
</div>
...
...
@@ -245,6 +257,9 @@ export default {
digitalLabelList
:[],
resourcePlatformList
:[],
hash
:
null
,
mySwiper
:
null
,
slideIndex
:
0
,
swiperPages
:
1
,
};
},
watch
:{
...
...
@@ -270,6 +285,13 @@ export default {
this
.
getRecommend
()
this
.
getAdsign
()
},
computed
:
{
cssVars
()
{
return
{
"--swiperPages"
:
this
.
swiperPages
+
1
};
}
},
beforeDestroy
(){
},
...
...
@@ -404,44 +426,62 @@ export default {
})
},
//图书产品跳转
toDetailLabel
(
item
){
window
.
open
(
this
.
resourceLink
+
'/#/resource?code='
+
item
.
code
,
'_blank'
)
toDetailLabel
(
item
,
parentItem
){
// window.open(this.resourceLink + '/#/resource?code=' + item.code ,'_blank')
if
(
item
.
parentName
==
"数字产品"
){
this
.
$linkToRsResource
(
'/digital?code='
+
item
.
code
)
}
else
{
this
.
$linkToRsResource
(
'/resource?code='
+
parentItem
.
code
+
","
+
item
.
code
)
}
},
//新书推荐、数字产品
getRecommend
(){
getRecommendAPI
({
code
:
'tjzzs'
,
num
:
8
}).
then
((
res
)
=>
{
this
.
newArrivalsList
=
res
.
data
.
data
.
resourcelist
})
getRecommendAPI
({
code
:
'syjptj'
,
num
:
8
}).
then
((
res
)
=>
{
this
.
digitalLabelList
=
res
.
data
.
data
.
resourcelist
})
setTimeout
(()
=>
{
var
swiper
=
new
Swiper
(
'.swiper-container'
,
{
pagination
:
'.swiper-pagination'
,
this
.
swiperPages
=
Math
.
ceil
(
res
.
data
.
data
.
resourcelist
.
length
-
5
)
||
1
let
that
=
this
this
.
$nextTick
(()
=>
{
this
.
mySwiper
=
new
Swiper
(
'.swiper-container'
,
{
// pagination: '.swiper-pagination',
slidesPerView
:
5
,
paginationClickable
:
true
,
spaceBetween
:
24
,
spaceBetween
:
40
,
nextButton
:
'.swiper-button-next'
,
//前进按钮
prevButton
:
'.swiper-button-prev'
,
//后退按钮
loop
:
true
,
//循环
//
loop: true, //循环
autoplay
:
3000
,
autoplayDisableOnInteraction
:
false
,
onSlideChangeStart
:
function
(
swiper
){
that
.
slideIndex
=
swiper
.
activeIndex
},
});
},
500
)
})
})
getRecommendAPI
({
code
:
'syjptj'
,
num
:
8
}).
then
((
res
)
=>
{
this
.
digitalLabelList
=
res
.
data
.
data
.
resourcelist
})
},
progressChange
(
e
){
//滑动改变滚动条
// console.log(e.target.value,7777)
let
index
=
e
.
target
.
value
-
1
this
.
slideIndex
=
index
this
.
mySwiper
.
slideTo
(
index
,
1000
,
false
);
},
toDetailBook
(
item
){
if
(
item
.
resourceType
==
'1'
){
window
.
open
(
this
.
resourceLink
+
'/#/resource/paperBookDetail?id='
+
item
.
resourceId
,
'_blank'
)
// window.open(this.resourceLink + '/#/resource/paperBookDetail?id=' + item.resourceId ,'_blank')
this
.
$linkToRsResource
(
'/resource/paperBookDetail?id='
+
item
.
resourceId
)
}
else
if
(
item
.
resourceType
==
'2'
){
window
.
open
(
this
.
resourceLink
+
'/#/digital/bookDetail?id='
+
item
.
resourceId
,
'_blank'
)
// window.open(this.resourceLink + '/#/digital/bookDetail?id=' + item.resourceId ,'_blank')
this
.
$linkToRsResource
(
'/digital/bookDetail?id='
+
item
.
resourceId
)
}
},
//数字产品跳转
toDigitalDetail2
(
item
){
window
.
open
(
this
.
resourceLink
+
'/#/digital/annexDetail?id='
+
item
.
resourceId
,
'_blank'
)
// window.open(this.resourceLink + '/#/digital/annexDetail?id=' + item.resourceId ,'_blank')
this
.
$linkToRsResource
(
'/digital/annexDetail?id='
+
item
.
resourceId
)
},
//资源平台列表
...
...
@@ -859,14 +899,18 @@ export default {
}
}
.bottomNewArrivalsDetail{
width: 12
0
0px;
width: 12
6
0px;
height: auto;
margin: 0 auto;
padding: 0 30px;
box-sizing: border-box;
overflow: hidden;
/deep/.swiper-container{
width: 100%;
height: 395px;
padding-top: 50px;
box-sizing: border-box;
overflow: initial;
}
/deep/.swiper-slide{
width: 214px;
...
...
@@ -874,6 +918,7 @@ export default {
transition: all 0.5s;
cursor: pointer;
overflow: hidden;
box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.35);
&:hover{
transform: scale(1.1);
transform-origin: center;
...
...
@@ -886,7 +931,7 @@ export default {
height: 298px;
}
.shadeBookName{
width:
97
%;
width:
100
%;
height: 110px;
display: none;
position: absolute;
...
...
@@ -930,6 +975,11 @@ export default {
right:0;
color: #fff;
}
/deep/ .swiper-button-prev.swiper-button-disabled,
/deep/ .swiper-button-next.swiper-button-disabled{
pointer-events: initial;
cursor: not-allowed;
}
.bottomLineContent{
width: 100%;
height: auto;
...
...
@@ -1030,6 +1080,7 @@ export default {
background-position: 0 0;
background-size: 100% 100%;
background-repeat: no-repeat;
.dpLeftCommon{
display: inline-block;
position: absolute;
...
...
@@ -1041,9 +1092,48 @@ export default {
justify-content: center;
align-items: center;
cursor: pointer;
transition: all 0.8s ease 0s;
transform: scale(1);
::after {
content: "";
display: inline-block;
height: 100%;
width: 100%;
border-radius: 100px;
position: absolute;
top: 0;
left: 0;
z-index: -1;
transition: all .8s ease 0s;
background-color: #fff;
}
// &::after{
// position: absolute;
// content: "";
// display: inline-block;
// border-radius: 50%;
// top: 0;
// right: 0;
// bottom: 0;
// left: 0;
// background: #fff;
// opacity: 1;
// z-index: -1;
// transition: all 1s ease-out 0s;
// }
&:hover{
transform: scale(1.2);
transition: all 1s;
::after {
transform: scale(1.2);
opacity: 0.2;
}
// &::after{
// top: -10px;
// right: -10px;
// bottom: -10px;
// left: -10px;
// opacity: 0.3;
// }
}
img{
width: 30px;
...
...
@@ -1064,8 +1154,8 @@ export default {
.dpLeft1{
width: 140px;
height: 140px;
top:
0
;
right:
0
;
top:
5px
;
right:
5px
;
}
.dpLeft2{
width: 130px;
...
...
@@ -1444,5 +1534,107 @@ export default {
}
}
}
</
style
>
<
style
lang=
"scss"
scoped
>
.progress-selector
{
position
:
relative
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
margin
:
0
auto
0
;
width
:
200px
;
height
:
9px
;
background
:
rgba
(
204
,
204
,
204
,
0
.35
);
border-radius
:
4px
;
}
input
[
type
=
"range"
]
{
-webkit-appearance
:
none
;
width
:
100%
;
position
:
absolute
;
}
input
[
type
=
"range"
]
::-webkit-slider-thumb
{
-webkit-appearance
:
none
;
}
input
[
type
=
"range"
]
::-webkit-slider-runnable-track
{
width
:
200px
;
height
:
0px
;
// border-bottom: 4px solid #EEEEEE;
opacity
:
1
;
cursor
:
pointer
;
}
input
[
type
=
"range"
]
::-moz-range-track
{
width
:
200px
;
height
:
0px
;
// border-bottom: 4px solid #EEEEEE;
opacity
:
1
;
cursor
:
pointer
;
}
input
[
type
=
"range"
]
::-ms-track
{
width
:
200px
;
height
:
0px
;
// border-bottom: 4px solid #EEEEEE;
opacity
:
1
;
cursor
:
pointer
;
}
input
[
type
=
"range"
]
:focus
{
outline
:
none
;
}
input
[
type
=
"range"
]
::-webkit-slider-thumb
{
// width: 60px;
width
:
calc
(
100%
/
var
(
--
swiperPages
));
height
:
9px
;
// border: 3px solid #BB0402;
// border-radius: 50%;
opacity
:
1
;
position
:
relative
;
bottom
:
7px
;
cursor
:
move
;
box-sizing
:
border-box
;
background
:
#BBBBBB
;
border-radius
:
4px
;
}
input
[
type
=
"range"
]
::-moz-range-thumb
{
// width: 60px;
width
:
calc
(
100%
/
var
(
--
swiperPages
));
height
:
9px
;
// border: 3px solid #BB0402;
// border-radius: 50%;
opacity
:
1
;
position
:
relative
;
bottom
:
7px
;
cursor
:
move
;
box-sizing
:
border-box
;
background
:
#BBBBBB
;
border-radius
:
4px
;
}
input
[
type
=
"range"
]
::-ms-thumb
{
// width: 60px;
width
:
calc
(
100%
/
var
(
--
swiperPages
));
height
:
9px
;
// border: 3px solid #BB0402;
// border-radius: 50%;
opacity
:
1
;
position
:
relative
;
bottom
:
7px
;
cursor
:
move
;
box-sizing
:
border-box
;
background
:
#BBBBBB
;
border-radius
:
4px
;
}
.progress-panel
{
width
:
412px
!
important
;
height
:
100px
;
opacity
:
1
;
position
:
absolute
;
bottom
:
0px
;
left
:
calc
(
50%
-
206px
);
z-index
:
10
;
animation
:
fade-up
0
.1s
ease-in-out
0s
1
;
}
.input-progress
{
position
:
absolute
;
top
:
50%
;
left
:
0
;
}
</
style
>
src/views/mine/index.vue
浏览文件 @
5b1bcf91
...
...
@@ -175,7 +175,7 @@
</div>
<levitate
class=
"levitate"
></levitate>
<sidebar
class=
"sidebarBox"
:currentNum=
"
8
"
:currentHash=
"hash"
></sidebar>
<sidebar
class=
"sidebarBox"
:currentNum=
"
7
"
:currentHash=
"hash"
></sidebar>
<com-foot></com-foot>
</div>
</
template
>
...
...
src/views/pressCenter/index.vue
浏览文件 @
5b1bcf91
...
...
@@ -311,6 +311,7 @@ export default {
right: 0;
font-size: 16px;
font-weight: bold;
cursor: pointer;
img{
width: 16px;
height: 16px;
...
...
src/views/productsWorld/detail.vue
浏览文件 @
5b1bcf91
...
...
@@ -30,8 +30,8 @@
<div
class=
"bottomPressCell"
v-for=
"(item,index) in downResourceList"
:key=
"'pd'+index"
>
<div
class=
"cellLeft"
>
<div
class=
"typeImg"
>
<img
src=
"@/assets/productsWorld/
audi
o.png"
alt=
""
v-if=
"item.resourceType == '5'"
>
<img
src=
"@/assets/productsWorld/
vide
o.png"
alt=
""
v-if=
"item.resourceType == '6'"
>
<img
src=
"@/assets/productsWorld/
vide
o.png"
alt=
""
v-if=
"item.resourceType == '5'"
>
<img
src=
"@/assets/productsWorld/
audi
o.png"
alt=
""
v-if=
"item.resourceType == '6'"
>
<img
src=
"@/assets/productsWorld/pic.png"
alt=
""
v-if=
"item.resourceType == '9'"
>
<img
src=
"@/assets/productsWorld/pdf.png"
alt=
""
v-if=
"item.resourceType == '8'"
>
<img
src=
"@/assets/productsWorld/fj.png"
alt=
""
v-if=
"item.resourceType == '12'"
>
...
...
@@ -180,7 +180,30 @@ export default {
//资源下载或者查看
downOrLook
(
item
){
window
.
open
(
this
.
resourceLink
+
'/fg/resource/toResourceDetail.html?resourceId='
+
item
.
id
)
// window.open(this.resourceLink + '/fg/resource/toResourceDetail.html?resourceId=' + item.id)
// console.log(item,9999)
// this.$linkToRsResource('/fg/resource/toResourceDetail.html?resourceId=' + item.id)
let
id
=
item
.
resourceId
||
item
.
id
;
switch
(
item
.
resourceType
*
1
)
{
case
1
:
this
.
$linkToRsResource
(
'/resource/paperBookDetail?id='
+
id
)
break
;
case
2
:
this
.
$linkToRsResource
(
'/digital/bookDetail?id='
+
id
)
break
;
case
5
:
this
.
$linkToRsResource
(
'/digital/videoDetail?id='
+
id
)
break
;
case
6
:
this
.
$linkToRsResource
(
'/digital/audioDetail?id='
+
id
)
break
;
case
9
:
this
.
$linkToRsResource
(
'/digital/pictureDetail?id='
+
id
)
break
;
case
12
:
this
.
$linkToRsResource
(
'/digital/annexDetail?id='
+
id
)
break
;
}
},
//分页
...
...
@@ -303,6 +326,7 @@ export default {
width: 45px;
height: 45px;
margin-right: 16px;
object-fit: contain;
}
span{
font-size: 18px;
...
...
src/views/productsWorld/index.vue
浏览文件 @
5b1bcf91
...
...
@@ -23,7 +23,7 @@
<div
class=
"recommendTop"
>
<div
class=
"searchContent"
>
<el-input
v-model=
"keyWord"
placeholder=
"请输入关键字"
class=
"inputContent"
></el-input>
<img
src=
"@/assets/productsWorld/ico-big.png"
alt=
""
class=
"searchImg"
>
<img
src=
"@/assets/productsWorld/ico-big.png"
alt=
""
class=
"searchImg"
@
click=
"linkToResourceSearch"
>
</div>
<div
class=
"tabContent"
:class=
"currentTabIndex == item.type?'hoverTab':''"
v-for=
"(item,index) in tabList"
:key=
"'tab'+index"
@
click=
"changeTab(item)"
>
<img
:src=
"item.icon"
alt=
""
>
...
...
@@ -130,7 +130,7 @@
<div
class=
"classInfo"
>
<div
class=
"name"
@
click=
"toDetailLabel(item)"
>
{{
item
.
showName
}}
</div>
<div
class=
"itemInfo"
>
<span
v-for=
"(x,y) in item.list"
:key=
"'item'+y"
@
click=
"toDetailLabel(x)"
>
{{
x
.
showName
}}
</span>
<span
v-for=
"(x,y) in item.list"
:key=
"'item'+y"
@
click=
"toDetailLabel(x
,item
)"
>
{{
x
.
showName
}}
</span>
</div>
</div>
</div>
...
...
@@ -377,6 +377,9 @@ export default {
this
.
hash
=
this
.
$route
.
hash
this
.
changePageScroll
(
this
.
$route
.
hash
)
},
linkToResourceSearch
(){
this
.
$linkToRsResource
(
'/resource?name='
+
this
.
keyWord
)
},
//头部导航移动
changePageScroll
(
id
){
...
...
@@ -470,21 +473,31 @@ export default {
//产品推介-图书跳转
toDetailBook
(
item
){
if
(
item
.
resourceType
==
'1'
){
window
.
open
(
this
.
resourceLink
+
'/#/resource/paperBookDetail?id='
+
item
.
resourceId
,
'_blank'
)
}
else
if
(
item
.
resourceType
==
'2'
){
window
.
open
(
this
.
resourceLink
+
'/#/digital/bookDetail?id='
+
item
.
resourceId
,
'_blank'
)
}
console
.
log
(
item
,
11111
)
// if(item.resourceType == '1'){
// window.open(this.resourceLink + '/#/resource/paperBookDetail?id=' + item.resourceId ,'_blank')
let
id
=
item
.
resourceId
||
item
.
id
this
.
$linkToRsResource
(
'/resource/paperBookDetail?id='
+
id
)
// }else if(item.resourceType == '2'){
// window.open(this.resourceLink + '/#/digital/bookDetail?id=' + item.resourceId ,'_blank')
// this.$linkToRsResource('/digital/bookDetail?id=' + item.resourceId)
// }
},
//产品分类--分类跳转
toDetailLabel
(
item
){
window
.
open
(
this
.
resourceLink
+
'/#/resource?code='
+
item
.
code
,
'_blank'
)
toDetailLabel
(
item
,
parentItem
){
// window.open(this.resourceLink + '/#/resource?code=' + item.code ,'_blank')
if
(
item
.
parentName
==
"数字产品"
){
this
.
$linkToRsResource
(
'/digital?code='
+
item
.
code
)
}
else
{
this
.
$linkToRsResource
(
'/resource?code='
+
parentItem
.
code
+
","
+
item
.
code
)
}
},
//图书跳转
toDigitalDetail
(
item
){
window
.
open
(
this
.
resourceLink
+
'/#/digital/annexDetail?id='
+
item
.
resourceId
,
'_blank'
)
// window.open(this.resourceLink + '/#/digital/annexDetail?id=' + item.resourceId ,'_blank')
this
.
$linkToRsResource
(
'/digital/annexDetail?id='
+
item
.
resourceId
)
},
//资源平台列表
...
...
@@ -534,6 +547,7 @@ export default {
font-size
:
14px
;
color
:
#0C4582
;
line-height
:
22px
;
cursor
:
pointer
;
}
.digitalTop
.swiper-slide
.imgBox
{
width
:
92px
;
...
...
@@ -693,6 +707,7 @@ export default {
position: absolute;
bottom: 9px;
right: 11px;
cursor: pointer;
}
}
.tabContent{
...
...
src/views/specialSeries/specialDetFirst.vue
浏览文件 @
5b1bcf91
...
...
@@ -149,18 +149,39 @@ export default {
},
methods
:
{
toSpecialDetail
(
item
){
if
(
item
.
resourceType
==
'16'
){
let
route
=
this
.
$router
.
resolve
({
name
:
'digitalDetail'
,
query
:{
id
:
item
.
resourceId
}})
window
.
open
(
route
.
href
,
'_self'
)
}
else
if
(
item
.
resourceType
==
'6'
){
let
route
=
this
.
$router
.
resolve
({
name
:
'audioDetail'
,
query
:{
id
:
item
.
resourceId
}})
window
.
open
(
route
.
href
,
'_self'
)
}
else
if
(
item
.
resourceType
==
'2'
){
let
route
=
this
.
$router
.
resolve
({
name
:
'bookDetail'
,
query
:{
id
:
item
.
resourceId
}})
window
.
open
(
route
.
href
,
'_self'
)
}
else
if
(
item
.
resourceType
==
'5'
){
let
route
=
this
.
$router
.
resolve
({
name
:
'videoDetail'
,
query
:{
id
:
item
.
resourceId
}})
window
.
open
(
route
.
href
,
'_self'
)
// if(item.resourceType == '16'){
// let route = this.$router.resolve({name:'digitalDetail',query:{id:item.resourceId}})
// window.open(route.href,'_self')
// }else if(item.resourceType == '6'){
// let route = this.$router.resolve({name:'audioDetail',query:{id:item.resourceId}})
// window.open(route.href,'_self')
// }else if(item.resourceType == '2'){
// let route = this.$router.resolve({name:'bookDetail',query:{id:item.resourceId}})
// window.open(route.href,'_self')
// }else if(item.resourceType == '5'){
// let route = this.$router.resolve({name:'videoDetail',query:{id:item.resourceId}})
// window.open(route.href,'_self')
// }
let
id
=
item
.
resourceId
||
item
.
id
;
switch
(
item
.
resourceType
*
1
)
{
case
1
:
this
.
$linkToRsResource
(
'/resource/paperBookDetail?id='
+
id
)
break
;
case
2
:
this
.
$linkToRsResource
(
'/digital/bookDetail?id='
+
id
)
break
;
case
5
:
this
.
$linkToRsResource
(
'/digital/videoDetail?id='
+
id
)
break
;
case
6
:
this
.
$linkToRsResource
(
'/digital/audioDetail?id='
+
id
)
break
;
case
9
:
this
.
$linkToRsResource
(
'/digital/pictureDetail?id='
+
id
)
break
;
case
12
:
this
.
$linkToRsResource
(
'/digital/annexDetail?id='
+
id
)
break
;
}
},
toSpecialTab
(
obj
,
index
){
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论