提交 5b1bcf91 authored 作者: 方远's avatar 方远

修改跳转、页首、页脚

上级 2d52e266
......@@ -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`,
......
......@@ -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() {
//底部版权
getCopyRightAPI().then((res) => {
getSettingsAPI().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{
}
}
}
}
}
......
......@@ -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.5s linear;
animation: showNow 1s 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, #1A55C3 0%, #1768EA 99%);
background: linear-gradient(0deg, #164480 0%, #0f68f8 100%);
font-weight: 800;
}
.navCellList{
......
<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')
......
......@@ -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){
this.$router.push({ path: item.idUrl })
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"})
}
}
}
}
......
......@@ -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);
// //图片地址
......
......@@ -95,6 +95,7 @@ const routes = [
];
const router = new VueRouter({
mode: "history",
base: process.env.BASE_URL,
routes,
});
......
......@@ -89,10 +89,14 @@
</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">
<img :src="coverUrl(item.imgId)" alt="">
<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">
......@@ -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;
......
差异被折叠。
......@@ -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>
......
......@@ -311,6 +311,7 @@ export default {
right: 0;
font-size: 16px;
font-weight: bold;
cursor: pointer;
img{
width: 16px;
height: 16px;
......
......@@ -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/audio.png" alt="" v-if="item.resourceType == '5'">
<img src="@/assets/productsWorld/video.png" alt="" v-if="item.resourceType == '6'">
<img src="@/assets/productsWorld/video.png" alt="" v-if="item.resourceType == '5'">
<img src="@/assets/productsWorld/audio.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;
......
......@@ -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{
......
......@@ -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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论