update+title
This commit is contained in:
parent
00408400f2
commit
bb89f65e0f
|
|
@ -8,7 +8,7 @@ import RenderHtml from '../../../components/render-html';
|
|||
import { Breadcrumb } from 'antd';
|
||||
import { getSourceDetail, httpUrl, getSourceList } from '../../api';
|
||||
import { downloadFunc } from '../../../forge/Utils/utils'
|
||||
import { docId, } from '../../../constants/factory'
|
||||
import { docId, standardId } from '../../../constants/factory'
|
||||
import '../../common.scss'
|
||||
import { Base64 } from 'js-base64';
|
||||
|
||||
|
|
@ -61,7 +61,7 @@ function Index(props) {
|
|||
<h3 title={detail.name}>{detail.name}</h3>
|
||||
<p title={detail.summary}>{detail.summary}</p>
|
||||
{
|
||||
detail.keywords === docId &&
|
||||
(detail.keywords === docId || detail.keywords===standardId) &&
|
||||
<button onClick={() => {
|
||||
if (detail.fileIds) {
|
||||
downloadFunc(`${httpUrl}/file/open/download/${detail.fileIds}`)
|
||||
|
|
|
|||
|
|
@ -224,7 +224,7 @@ function Index(props) {
|
|||
<img src={item.extendDataHeadImg || backList[index % backList.length]} alt="" />
|
||||
<div className="chapter-info">
|
||||
<h4>{item.name}</h4>
|
||||
<p>{item.summary}</p>
|
||||
<p title={item.summary}>{item.summary}</p>
|
||||
<div className="chapter-tag">
|
||||
<span>{item.domainName}</span>
|
||||
</div>
|
||||
|
|
@ -269,7 +269,7 @@ function Index(props) {
|
|||
}
|
||||
}} disabled={!item.fileIds} className={ !item.fileIds && 'disabled' } >{item.fileIds ? '下载' : '稍后下载'}</button>
|
||||
</div>
|
||||
<p>{item.summary}</p>
|
||||
<p title={item.summary}>{item.summary}</p>
|
||||
<div className="standard-item-img">
|
||||
<img src={item.extendDataHeadImg || backList[index % backList.length]} alt="" />
|
||||
</div>
|
||||
|
|
@ -315,10 +315,10 @@ function Index(props) {
|
|||
</div>
|
||||
{
|
||||
manualList.slice(0, 2).map((item, index) => {
|
||||
const nameList = item.name.split('软件工厂')
|
||||
// const nameList = item.name.split('软件工厂')
|
||||
return <div className={`manual-${index + 1}`}>
|
||||
<img src={index === 0 ? manual1 : manual2} alt="" />
|
||||
{index === 0 ? <div>{item.name}</div> : <div><span>软件工厂</span><div></div>{nameList[1]}</div>}
|
||||
{index === 0 ? <div>{item.name}</div> : <div><span>{item.name}</span></div>}
|
||||
<p>{item.summary}</p>
|
||||
<button onClick={() => {
|
||||
if (item.fileIds) {
|
||||
|
|
|
|||
|
|
@ -91,10 +91,10 @@ function Index(props) {
|
|||
</div>
|
||||
{
|
||||
manualList.slice(0, 3).map((item, index) => {
|
||||
const nameList = item.name.split('软件工厂')
|
||||
// const nameList = item.name.split('软件工厂')
|
||||
return <div className={`manual-${index + 1}`}>
|
||||
<img src={index === 0 ? manual1 : manual2} alt="" />
|
||||
{index === 0 ? <div>{item.name}</div> : <div><span>软件工厂</span><div></div>{nameList[1]}</div>}
|
||||
{index === 0 ? <div>{item.name}</div> : <div><span>{item.name}</span></div>}
|
||||
<p>{item.summary}</p>
|
||||
<button onClick={() => {
|
||||
if (item.fileIds) {
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ const CommunityDynamic = ({isVisible}) => {
|
|||
<div className="highlight-news">
|
||||
<img src={require('../image/icon1.png')} alt='' width={30} className='mb10 mr10' />
|
||||
<span className='font-24 font-bd'>{firstByList1.name}</span>
|
||||
<p className="opacity8 font-16 task-hide-2 line-normal mt5">
|
||||
<p className="opacity8 font-16 task-hide-2 line-normal mt5" title={firstByList1.summary}>
|
||||
{firstByList1.summary}
|
||||
</p>
|
||||
{rollingButton({href: `/news/${firstByList1.id}`})}
|
||||
|
|
@ -66,12 +66,12 @@ const CommunityDynamic = ({isVisible}) => {
|
|||
{list1.slice(1,5).map((item, index) => (
|
||||
<Fragment key={index}>
|
||||
<div className="news-item-v2">
|
||||
<Link to={`/news/${item.id}`}>
|
||||
<Link title={item.name} to={`/news/${item.id}`}>
|
||||
<HoverUnderline classname='font-20 font-bd task-hide'>
|
||||
{item.name}
|
||||
</HoverUnderline>
|
||||
</Link>
|
||||
<p className='task-hide-2 opacity8' style={{ lineHeight: 'normal' }}>{item.summary}</p>
|
||||
<p className='task-hide-2 opacity8' title={item.summary} style={{ lineHeight: 'normal' }}>{item.summary}</p>
|
||||
</div>
|
||||
{index < 3 && <Divider type="vertical" style={{ height: '60px' }} className="mt20 opacity8" />}
|
||||
</Fragment>
|
||||
|
|
@ -90,7 +90,7 @@ const CommunityDynamic = ({isVisible}) => {
|
|||
{list2_home.map((item, index) => (
|
||||
<li key={index} className={`activity-item-v2 df activity-section-item ${activeId === index ? 'activity-section-item-active' : ''}`}>
|
||||
<span className="font-16 flex1 AlignCenter">
|
||||
<Link to={`/news/${item.id}`} className="title-border-to-right-icon task-hide">{item.summary}</Link>
|
||||
<Link to={`/news/${item.id}`} className="title-border-to-right-icon task-hide" title={item.summary}>{item.summary}</Link>
|
||||
{index === 1 && <span className="hot-tag color-white ml5">HOT</span>}
|
||||
</span>
|
||||
{/* <span className="opacity8 font-15">{moment(item.publishTime).format('MM月DD日')}</span> */}
|
||||
|
|
|
|||
Loading…
Reference in New Issue