提交 32e0ebf1 authored 作者: 翟畅's avatar 翟畅

zc更换分类顺序

上级 5c971019
...@@ -437,10 +437,10 @@ export default { ...@@ -437,10 +437,10 @@ export default {
homeBookClassList(){ homeBookClassList(){
homeBookClassListAPI({name:'电子书分类'}).then((res) => { homeBookClassListAPI({name:'电子书分类'}).then((res) => {
if(res.data.code == 0){ if(res.data.code == 0){
this.bookProduceList = res.data.data[0].list.slice(0,6).reverse() this.bookProduceList = res.data.data[0].list.slice(0,6)
this.bookProduceList.map((item,index) => { this.bookProduceList.map((item,index) => {
this.$set(item,'isShowLabel',false) this.$set(item,'isShowLabel',false)
item.list = item.list.reverse() item.list = item.list
if(item.showName == '数字产品'){ if(item.showName == '数字产品'){
this.digitalClassList = item.list this.digitalClassList = item.list
} }
...@@ -808,7 +808,7 @@ export default { ...@@ -808,7 +808,7 @@ export default {
font-weight: bold; font-weight: bold;
color: #FFFFFF; color: #FFFFFF;
line-height: 40px; line-height: 40px;
margin-bottom: 10px; margin-bottom: 7px;
} }
.shadeLabelContent{ .shadeLabelContent{
width: 100%; width: 100%;
......
...@@ -375,7 +375,7 @@ export default { ...@@ -375,7 +375,7 @@ export default {
//下载服务 //下载服务
downLoadInfo(item){ downLoadInfo(item){
if(item.file){ if(item.file){
window.open(this.fileUrl + '?fileName=' + item.file + '&isOnLine=true','_self') window.open(this.fileUrl + 'download/' + item.file)
}else{ }else{
this.$message.warning('该资源无法下载') this.$message.warning('该资源无法下载')
} }
......
...@@ -113,6 +113,7 @@ export default { ...@@ -113,6 +113,7 @@ export default {
pageNum:1, pageNum:1,
pageSize:20, pageSize:20,
resourceType:null, resourceType:null,
typeView:null,
}, },
tabList:[ tabList:[
{ name:'富媒体',icon: require('@/assets/productsWorld/ico-fumeiti.png'), iconH: require('@/assets/productsWorld/ico-fumeiti-h.png') ,type: 10}, { name:'富媒体',icon: require('@/assets/productsWorld/ico-fumeiti.png'), iconH: require('@/assets/productsWorld/ico-fumeiti-h.png') ,type: 10},
...@@ -171,6 +172,12 @@ export default { ...@@ -171,6 +172,12 @@ export default {
getPressNewsList(){ getPressNewsList(){
this.loadFlag = true this.loadFlag = true
if(this.listQuery.resourceType == 12){
this.listQuery.typeView = '电子课件'
}else if(this.listQuery.resourceType == 10){
this.listQuery.resourceType = 12
this.listQuery.typeView = '富媒体'
}
worldResourceListAPI(this.listQuery).then(res => { worldResourceListAPI(this.listQuery).then(res => {
if(res.data.code == 0){ if(res.data.code == 0){
this.downResourceList = res.data.data.resList ? res.data.data.resList : [] this.downResourceList = res.data.data.resList ? res.data.data.resList : []
......
...@@ -117,24 +117,47 @@ ...@@ -117,24 +117,47 @@
</div> </div>
</div> </div>
<div class="contactUsBottom"> <div class="contactUsBottom">
<div class="classItem" v-for="(item,index) in classAllList" :key="'class'+index"> <div class="bLeft">
<div class="classCell"> <div class="classItem" v-for="(item,index) in classAllList.slice(0,3)" :key="'class'+index">
<div class="className"> <div class="classCell">
<img src="@/assets/productsWorld/ico-she.png" alt="" v-if="item.showName == '人社业务图书'"> <div class="className">
<img src="@/assets/productsWorld/ico-edu.png" alt="" v-if="item.showName == '教育教材'"> <img src="@/assets/productsWorld/ico-she.png" alt="" v-if="item.showName == '人社业务图书'">
<img src="@/assets/productsWorld/ico-peixun.png" alt="" v-if="item.showName == '培训用书'"> <img src="@/assets/productsWorld/ico-edu.png" alt="" v-if="item.showName == '教育教材'">
<img src="@/assets/productsWorld/ico-test.png" alt="" v-if="item.showName == '考试用书'"> <img src="@/assets/productsWorld/ico-peixun.png" alt="" v-if="item.showName == '培训用书'">
<img src="@/assets/productsWorld/ico-dazhong.png" alt="" v-if="item.showName == '大众读物'"> <img src="@/assets/productsWorld/ico-test.png" alt="" v-if="item.showName == '考试用书'">
<img src="@/assets/productsWorld/ico-num.png" alt="" v-if="item.showName == '数字产品'"> <img src="@/assets/productsWorld/ico-dazhong.png" alt="" v-if="item.showName == '大众读物'">
<img src="@/assets/productsWorld/ico-num.png" alt="" v-if="item.showName == '数字产品'">
</div>
<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,item)">{{x.showName}}</span>
</div>
</div>
</div> </div>
<div class="classInfo"> </div>
<div class="name" @click="toDetailLabel(item)">{{item.showName}}</div> </div>
<div class="itemInfo"> <div class="bRight">
<span v-for="(x,y) in item.list" :key="'item'+y" @click="toDetailLabel(x,item)">{{x.showName}}</span> <div class="classItem" v-for="(item,index) in classAllList.slice(3,6)" :key="'class'+index">
<div class="classCell">
<div class="className">
<img src="@/assets/productsWorld/ico-she.png" alt="" v-if="item.showName == '人社业务图书'">
<img src="@/assets/productsWorld/ico-edu.png" alt="" v-if="item.showName == '教育教材'">
<img src="@/assets/productsWorld/ico-peixun.png" alt="" v-if="item.showName == '培训用书'">
<img src="@/assets/productsWorld/ico-test.png" alt="" v-if="item.showName == '考试用书'">
<img src="@/assets/productsWorld/ico-dazhong.png" alt="" v-if="item.showName == '大众读物'">
<img src="@/assets/productsWorld/ico-num.png" alt="" v-if="item.showName == '数字产品'">
</div>
<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,item)">{{x.showName}}</span>
</div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
...@@ -422,9 +445,9 @@ export default { ...@@ -422,9 +445,9 @@ export default {
//获取电子书分类 //获取电子书分类
homeBookClassListAPI({name:'电子书分类'}).then((res) => { homeBookClassListAPI({name:'电子书分类'}).then((res) => {
if(res.data.code == 0){ if(res.data.code == 0){
this.classAllList = res.data.data[0].list.slice(0,6).reverse() this.classAllList = res.data.data[0].list.slice(0,6)
this.classAllList.map((item,index) => { this.classAllList.map((item,index) => {
item.list = item.list.reverse() item.list = item.list
}) })
} }
}) })
...@@ -1177,17 +1200,20 @@ export default { ...@@ -1177,17 +1200,20 @@ export default {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
flex-wrap: wrap; flex-wrap: wrap;
.classItem{ .bLeft{
width: 50%; width: 50%;
height: auto;
box-sizing: border-box; box-sizing: border-box;
&:nth-of-type(1n){ padding-left: 40px;
padding-left: 40px; border-right: 1px solid #ddd;
border-right: 1px solid #ddd; }
} .bRight{
&:nth-of-type(2n){ width: 50%;
padding-left: 40px; box-sizing: border-box;
} padding-left: 40px;
}
.classItem{
width: 100%;
height: auto;
.classCell{ .classCell{
width: 100%; width: 100%;
min-height: 55px; min-height: 55px;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论