提交 dc991d11 authored 作者: 许敬帅's avatar 许敬帅

首页、资源

上级 c42b6257
No preview for this file type
......@@ -48,14 +48,14 @@ export default new Router({
name: 'home',
component: Home,
meta: {
title: "税可知"
title: "财税实操知识技能服务平台"
}
}, {
path: '/index.html',
name: 'home',
component: Home,
meta: {
title: "税可知"
title: "财税实操知识技能服务平台"
}
}, {
path: '/expert',
......
......@@ -143,6 +143,8 @@
color: #666;
word-wrap: break-word;
word-break: break-all;
line-height: 32px;
font-size: 16px;
img{
max-width: 90%;
max-height: 100%;
......
......@@ -202,11 +202,11 @@ $main-color: #0089EE;
background-size: 100% 100%;
}
.icon-jianzhu{
background: url('~@/assets/home_icon_jianzhu.png') center center no-repeat;
background: url('~@/assets/home_icon_xingzheng.png') center center no-repeat;
background-size: 100% 100%;
}
.icon-kuaiji{
background: url('~@/assets/home_icon_kuaiji.png') center center no-repeat;
background: url('~@/assets/home_icon_icon.png') center center no-repeat;
background-size: 100% 100%;
}
.icon-gengduo{
......@@ -848,6 +848,7 @@ $main-color: #0089EE;
display: block;
padding: 5px 10px;
max-height: 34px;
font-size: 14px;
}
a.title:hover{ color: $main-color; }
}
......@@ -856,7 +857,7 @@ $main-color: #0089EE;
/************** 热点解读 **************/
.redian-part{
background: #fff;
padding-bottom: 20px;
padding-bottom: 10px;
padding-top: 31px;
box-shadow:0px 4px 20px 0px rgba(81,163,230,0.1);
.title{
......@@ -883,12 +884,12 @@ $main-color: #0089EE;
.info{
color: #333;
line-height: 24px;
margin-bottom: 32px;
margin-bottom: 12px;
h3.name{
color: #333;
font-size: 16px;
/*margin: 10px 0;*/
margin-bottom: 20px;
margin-bottom: 6px;
@include text-ellipsis;
a:hover{ color: #0089EE; }
}
......
......@@ -101,7 +101,7 @@
</a>
</div>
<div class="down">
<h3 class="title">{{ item.name }}</h3>
<h3 class="title" :title="item.name">{{ item.name }}</h3>
<span class="shortLine"></span>
<!-- <span class="content" v-html="item.synopsis"></span> -->
<span class="content">{{ item.mySynopsis }}</span>
......@@ -182,14 +182,14 @@
<div class="anli-shicao">
<div class="w80p anli-shicao-inner">
<h3 class="topic-title">案例实操</h3>
<ul class="anli-shicao-nav-ul">
<!-- <ul class="anli-shicao-nav-ul">
<li v-for="(item,index) in anliShicaoLabel" :key="index">
<a href="javascript:void(0)" @click="toRsPage(item)">{{ item.labelContent}}</a>
</li>
</ul>
</ul> -->
<div class="anli-shicao-result">
<div class="anli-shicao-result-item" v-for="(item, index) in anliShicaoList" :key="index">
<a href="javascript:void(0)" class="title" @click="toArticalReadPage(item)">{{ item.name }}</a>
<a href="javascript:void(0)" class="title" @click="toArticalReadPage(item)" :title="item.name">{{ item.name }}</a>
<!-- <span class="content">{{ item.synopsis }}</span> -->
<span class="content">{{ item.myText }}</span>
</div>
......@@ -233,7 +233,7 @@
<img :src="`${item.cover}`" v-if="item.cover" />
<img :src="DEFAULTIMG.HOME_INDUSTRY_SMALL" v-else/>
</a>
<a href="javascript:void(0)" @click="toInfoDetail(item)" class="title">{{ item.title }}</a>
<a href="javascript:void(0)" @click="toInfoDetail(item)" class="title" :title="item.title">{{ item.title }}</a>
</div>
</li>
</ul>
......@@ -247,7 +247,7 @@
<img :src="DEFAULTIMG.HOME_HOT" v-else/>
<div class="info-wrapper">
<div class="info" v-for="(item,index) in newsHot" :key="index" @mouseover="handleHotMouseOver($event,index)">
<h3 class="name"><a href="javascript:void(0)" @click="toInfoDetail(item)">{{ item.title }}</a></h3>
<h3 class="name"><a href="javascript:void(0)" @click="toInfoDetail(item)" :title="item.title">{{ item.title }}</a></h3>
<blockquote v-if="item.myContent" :ref="`hot-blo-${index}`">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{ item.myContent }}</blockquote>
</div>
</div>
......@@ -261,7 +261,9 @@
<el-row :gutter="10">
<el-col :span="16">
<div :class="['left', {'visible': !hasAdBL}]">
<a :href="adBL.url" target="_blank" v-if="adBL"><img :src="`${imgPrefix}${adBL.picture}`"/></a>
<!-- <a :href="adBL.url" target="_blank" v-if="adBL"> -->
<img :src="`${imgPrefix}${adBL.picture}`"/>
<!-- </a> -->
<div class="ad-info hide">
<h3>重磅!国家发展改革委产业所推出《中国产业发展报告2018》</h3>
<el-button round size="small">了解详情</el-button>
......@@ -269,7 +271,9 @@
</div>
</el-col>
<el-col :span="8" :class="['right', {'visible': !hasAdBR}]">
<a :href="adBR.url" target="_blank" v-if="adBR"><img :src="`${imgPrefix}${adBR.picture}`"/></a>
<!-- <a :href="adBR.url" target="_blank" v-if="adBR"> -->
<img :src="`${imgPrefix}${adBR.picture}`"/>
<!-- </a> -->
</el-col>
</el-row>
</div>
......@@ -310,11 +314,11 @@
class: 'icon icon-zengzhishui',
},{
id: 0,
name: '城市建设维护税',
name: '行政事业单位',
class: 'icon icon-jianzhu',
},{
id: 0,
name: '会计行业',
name: '建筑',
class: 'icon icon-kuaiji',
},{
id: '',
......
......@@ -106,7 +106,7 @@
<el-col :span="6" v-if="item.myImg" style="width: 185px; margin-right: 30px;">
<div class="left-img-con">
<a href="javascript:void(0)" @click="toArticalReadPage(item)">
<img :src="`${imgPrefix}${item.myImg}`" class="con-img" v-if="!item.imgUrlIsWhole"/>
<img :src="`${item.myImg}`" class="con-img" v-if="!item.imgUrlIsWhole"/>
<img :src="`${item.myImg}`" class="con-img" v-else/>
</a>
</div>
......@@ -497,11 +497,12 @@
// img如果没有则从text里面取第一个图 有一个隐藏bug - 后端将txt做10%截取处理,前端取第一张图有可能出错
// 暂时这么做而已 - 后期还是需要后端把值填到img中
if (this.rsDataType['ARTICAL'].includes(item.resourceType)) { // 文章类型
const imgsArr = item.text?regHtml(item.text):[]
let newImg = void 0;
imgsArr.length > 0 && (newImg = imgsArr[0]);
item['myImg'] = item.img ? item.img : newImg
item['imgUrlIsWhole'] = item.img ? false : true; // 正文中取的图片是完整的连接不需要拼接
// const imgsArr = item.text?regHtml(item.text):[]
// let newImg = void 0;
// imgsArr.length > 0 && (newImg = imgsArr[0]);
item['myImg'] = item.img ? `${item.img}` : (item.imgSrc?`${item.imgSrc}`:undefined)
// item['imgUrlIsWhole'] = item.img ? false : true; // 正文中取的图片是完整的连接不需要拼接
// console.log(item['myImg'],newImg,8899)
}
if (this.rsDataType['WEIKE'].includes(item.resourceType)) { // 微课
// 封面取’img‘,没有则取’imgPath‘
......
......@@ -10,7 +10,7 @@
<img :src="DEFAULTIMG.TOPIC" v-else/>
</a>
<div class="info">
<h3><a href="javascript:void(0)" @click="toDetailPage(item)">{{ item.name }}</a></h3>
<h3><a href="javascript:void(0)" @click="toDetailPage(item)" :title="item.name">{{ item.name }}</a></h3>
<span class="short-line"></span>
<div class="topic-synopsis" :title="item.myContent">{{ item.myContent }}</div>
</div>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论